stable

Clone or download

Read-only

refactor: Stop relying on the the god PullRequest/Factory class when the

PR status change Use the dedicated class instead a god factory to retrieve a pull request by its id. Remove the remaining usage of the factory. No functionnal change expected, notification when the status of the pull request changes is still sent Part of request #35473 Stop relying on the god PullRequest/Factory class to retrieve pull request Change-Id: I43bb2df9ae5e8268ed7000256f77a6216f39ba84

Modified Files

Name
M plugins/pullrequest/include/PullRequest/Factory.php +0 −15 Go to diff View file
M plugins/pullrequest/include/PullRequest/Notification/PullRequestNotificationSupport.php +2 −5 Go to diff View file
M plugins/pullrequest/include/PullRequest/StateStatus/PullRequestAbandonedNotificationToProcessBuilder.php +29 −61 Go to diff View file
M plugins/pullrequest/include/PullRequest/StateStatus/PullRequestMergedNotificationToProcessBuilder.php +29 −61 Go to diff View file
M plugins/pullrequest/tests/unit/StateStatus/PullRequestAbandonedNotificationToProcessBuilderTest.php +37 −61 Go to diff View file
M plugins/pullrequest/tests/unit/StateStatus/PullRequestMergedNotificationToProcessBuilderTest.php +38 −63 Go to diff View file