Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Require "Approve" from person who set "Needs work" #58

Closed
artem-zinnatullin opened this issue Nov 18, 2016 · 10 comments
Closed

Comments

@artem-zinnatullin
Copy link
Contributor

If someone has set "Needs work" on a PR, would be great to require "Approve" from this person before merge because currently Bitbucket resets "Needs work" on each push to a PR which can lead to merge without required fix (especially with automerge).

@artem-zinnatullin
Copy link
Contributor Author

One of the suggestions for implementation — lookup PR Activity and block merge if one of the approvers has set "Needs work" but no "Approve" from this person has happened after it.

@monitorjbl
Copy link
Owner

Fixed by #57

@artem-zinnatullin
Copy link
Contributor Author

Wait wait wait! #57 solves another issue #56

@artem-zinnatullin
Copy link
Contributor Author

Lemme try to describe what this feature request is about:

Imagine you have set 3 required reviewers but your team is let's say 6 developers. Then imagine one of them marked PR as Needs work but other 3 marked PR as Approved.

Then author of the PR pushes some changes to PR, BitBucket automatically removes all Needs work statuses.

In current version of Plugin even with #57 PR will be automerged because 3 required approves were gained.

What we would like to do is to block merge until person who did not Approve the PR after he/she marked PR as Needs work.

TL;TR: if after Needs work reviewer did not Approve the PR, merge should be blocked.

Hope that makes sense? :)

@monitorjbl
Copy link
Owner

Hm, so the current code doesn't do that? I didn't test the automerge block before I released this, but I did test the PR veto and it worked. I'm kind of surprised that this line doesn't effectively call this method through the PullRequestService.

@artem-zinnatullin
Copy link
Contributor Author

Well, the problem is that any push to the PR branch removes all Needs work marks and then automerge happily happens :)

@monitorjbl
Copy link
Owner

Interesting...does it not also remove the Approved? We still use Bitbucket 4.3 where I work, so I haven't gotten to mess around with this feature outside of the SDK.

@artem-zinnatullin
Copy link
Contributor Author

Nono, we're on 4.5.2 and it removes only Needs work on every push in our repos and I wasn't able to find any setting for that.

@monitorjbl
Copy link
Owner

Well, that's something of a problem...can we continue this discussion on #56 ?

@artem-zinnatullin
Copy link
Contributor Author

ok!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants