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.
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.