stable
Clone or download
Read-only
closes story #32992 Allow user who submitted a PR to edit it's title and description
How to test: Have a repository where you do not have permissions on target repo (fork or fine grained) On a PR you are owner: Use rest route to update title Use rest route to update description => you can update Have A PR you are not owner You can no update title and description Go on UI, you must be able to update description of PR you have submitted (first comment) Change-Id: Idb3f6f3bd06b3c40c1e6919213d293e200ea0183
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/pullrequest/include/PullRequest/REST/v1/Info/PullRequestInfoUpdater.php | +74 | −0 | Go to diff View file |
A | plugins/pullrequest/include/PullRequest/REST/v1/Permissions/PullRequestIsMergeableChecker.php | +52 | −0 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/REST/v1/PullRequestPATCHRepresentation.php | +11 | −0 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/REST/v1/PullRequestRepresentation.php | +11 | −8 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/REST/v1/PullRequestRepresentationFactory.php | +5 | −4 | Go to diff View file |
M | plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php | +11 | −56 | Go to diff View file |
M | plugins/pullrequest/scripts/lib/rest-api-types/src/pull-request.ts | +1 | −0 | Go to diff View file |
M | plugins/pullrequest/scripts/pullrequest-overview/src/components/Threads/DescriptionCommentPresenterBuilder.test.ts | +2 | −1 | Go to diff View file |
M | plugins/pullrequest/scripts/pullrequest-overview/src/components/Threads/DescriptionCommentPresenterBuilder.ts | +2 | −1 | Go to diff View file |
M | plugins/pullrequest/scripts/pullrequest-overview/src/components/Title/PullRequestEditTitleModal.test.ts | +2 | −2 | Go to diff View file |
M | plugins/pullrequest/scripts/pullrequest-overview/src/components/Title/PullRequestEditTitleModal.vue | +3 | −1 | Go to diff View file |
A | plugins/pullrequest/tests/unit/REST/v1/Info/PullRequestInfoUpdaterTest.php | +106 | −0 | Go to diff View file |
A | plugins/pullrequest/tests/unit/REST/v1/Permissions/PullRequestIsMergeableCheckerTest.php | +73 | −0 | Go to diff View file |
A | plugins/pullrequest/tests/unit/REST/v1/PullRequestRepresentationFactoryTest.php | +139 | −0 | Go to diff View file |