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

0 votes

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 Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

433 views 6 9
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