nemccarthy / stash-pullrequest-builder-plugin

A Jenkins plugin for Building Stash Pull Requests
https://wiki.jenkins-ci.org/display/JENKINS/Stash+pullrequest+builder+plugin
Other
64 stars 130 forks source link

Option to mark the pull-request “needs work” on build failures #105

Closed sabberworm closed 7 years ago

sabberworm commented 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.

sabberworm commented 7 years ago

Duplicate of #107