Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create Pull Request for branch/commits pushed by someone else, then select yourself as reviewer

Jos Helming
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 27, 2018

(BitBucket Server)

Sometimes a colleague has pushed a feature branch, but has not created a pull request (simply forgotten or some other task came up). On such occasions, another user can create a pull request. However, that user cannot select itself as reviewer, even though s/he has not created the branch nor the commits.

I recognize the point of view that one should be unable to approve one's own pull request when one has made the branch or perhaps commits in it. But the scenario above is not the same (no creation of branch nor commits of the user who created the pull request). 

Is this something that can be addressed, or not? 

Alternatively, is it possible to have a pull request automatically created when one pushes a branch (and no open pull request exists for that branch)? Or perhaps there is another way to address this situation? 

Thanks for any insights. 

1 answer

0 votes
Rodrigo M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 24, 2018

Hey Jos

You can create your own Post Receive Hook for this purpose - there is no built-in functionality for this in Bitbucket Server.

You can also take a look at some add-ons available in Marketplace in order to require a PR on pushes:


King Regards
Rodrigo

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events