stable

Clone or download

Read-only

feat: Reopen a pull request generates a timeline event

This is part of request #30013 Be able to reopen an abandoned pull request When reopening an abandoned pull request, a "reopen" event must be generated in the timeline so that the corresponding comment is well displayed in the UI. How to test ----------- * Reopen an abandoned PR using the REST API * Go to the UI of this PR => A comment "Has reopened the pull request." must be displayed in the timeline of the PR. Change-Id: I85ebd91b05315919e87cd69a026c15620269df51

Modified Files

Name
M plugins/pullrequest/include/PullRequest/PullRequestReopener.php +6 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +1 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/TimelineEventRepresentation.php +2 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Timeline/TimelineEventCreator.php +11 −10 Go to diff View file
M plugins/pullrequest/include/PullRequest/Timeline/TimelineGlobalEvent.php +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/po/fr_FR.po +3 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/PullRequestCommentPresenter.ts +3 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/gettext-catalog.ts +2 −0 Go to diff View file
M plugins/pullrequest/tests/unit/PullRequestReopenerTest.php +14 −5 Go to diff View file