pr-harmony
pr-harmony copied to clipboard
Turning auto-merge ON/OFF in a Pull Request
Hi,
I've explored the auto merge options provided in PR Harmony and it works fine. We have a requirement in our team which I think PR Harmony doesn't support currently.
- We are looking for "Auto Merge this PR" option on all Pull Requests that can be turned ON/OFF by the creator of PR.
- PR Harmony will still use the to/from branch filters at the repo level, but will check for the automerge flag set by the creator of PR.
Request you folks to provide ideas as to how atlassian sdk can be extended to achieve this ?
While this can be done, it's not directly supported by the Atlassian SDK. You cannot modify the PullRequest object to add extra attributes. You could store the details about the PR in the plugin's property file and check to see if the PR is flagged to automerge or not. You'd have to be pretty careful to cleanup after yourself though.
I'm not sure if this is something I'm going to have to time to implement anytime soon, but pull requests are always welcome if you're interested enough to implement it!