stable

Clone or download

Read-only

A notification is sent when a pull request is abandoned

This contribution comes with the introduction of the "owners" of a pull request. Owners are the users creating the pull-request or updating it and the users listed as reviewers. They are the ones receiving a notification when the a pullrequest is abandoned. Part of story #14190: get email notifications on pull requests - first stage Change-Id: I626266320f419a095f6591f6e933bd97e77cc472

Modified Files

Name
A plugins/pullrequest/include/PullRequest/Notification/FilterUserFromCollection.php +39 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/Notification/OwnerRetriever.php +72 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Notification/PullRequestNotificationSupport.php +113 −40 Go to diff View file
M plugins/pullrequest/include/PullRequest/PullRequestCloser.php +13 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +4 −9 Go to diff View file
M plugins/pullrequest/include/PullRequest/Reviewer/ReviewerRetriever.php +1 −1 Go to diff View file
A plugins/pullrequest/include/PullRequest/StateStatus/PullRequestAbandonedContentPresenter.php +64 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/StateStatus/PullRequestAbandonedEvent.php +81 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/StateStatus/PullRequestAbandonedNotification.php +128 −0 Go to diff View file
A plugins/pullrequest/include/PullRequest/StateStatus/PullRequestAbandonedNotificationToProcessBuilder.php +107 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Timeline/Dao.php +12 −1 Go to diff View file
M plugins/pullrequest/include/pullrequestPlugin.php +2 −1 Go to diff View file
A plugins/pullrequest/phpunit/Notification/FilterUserFromCollectionTest.php +46 −0 Go to diff View file
A plugins/pullrequest/phpunit/Notification/OwnerRetrieverTest.php +109 −0 Go to diff View file
M plugins/pullrequest/phpunit/PullRequestCloserTest.php +15 −2 Go to diff View file
A plugins/pullrequest/phpunit/StateStatus/PullRequestAbandonedEventTest.php +67 −0 Go to diff View file
A plugins/pullrequest/phpunit/StateStatus/PullRequestAbandonedNotificationTest.php +78 −0 Go to diff View file
A plugins/pullrequest/phpunit/StateStatus/PullRequestAbandonedNotificationToProcessBuilderTest.php +143 −0 Go to diff View file
M plugins/pullrequest/site-content/fr_FR/LC_MESSAGES/tuleap-pullrequest.po +10 −0 Go to diff View file
A plugins/pullrequest/templates/state-status/pull-request-abandoned-mail-content.mustache +9 −0 Go to diff View file