Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Trace git commit to pull-request.

Mike Delaney August 24, 2017

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
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 24, 2017

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
TAGS
AUG Leaders

Atlassian Community Events