Closed sabberworm closed 7 years ago
The 4.2 API provides PUT on /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants/{userSlug} to change a user’s approval status.
If the configured user would add itself as a reviewer and set its status to "NEEDS_WORK" before building and approve only on successful builds, it would be an easy way to disable the merge buttons until the build has succeeded.
"NEEDS_WORK"
Duplicate of #107
The 4.2 API provides PUT on /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants/{userSlug} to change a user’s approval status.
If the configured user would add itself as a reviewer and set its status to
"NEEDS_WORK"
before building and approve only on successful builds, it would be an easy way to disable the merge buttons until the build has succeeded.