Trace git commit to pull-request.

All,

Does anyone know of a way to look at a git commit, and trace it to the pull-request? Does anyone know if this is possible on Bitbucket Server (5.2.x, or newer).

This is for audit reasons, we need to be able to verify that a commit was reviewed by a peer. Using protected branches, which we're using, is not enough; sadly.

1 answer

This widget could not be displayed.

I don't think it's possible from the commit to figure out which pull request it belongs to, but you can from the pull request get the commits that are part of it. You can use the REST API to iterate over pull requests to search for a specific commit. The REST API documentation can be found here: https://developer.atlassian.com/bitbucket/server/docs/latest/

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,367 views 9 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you