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

How can I access the merge commit created by Bitbucket Server for a specific PR?

Hakeem Badran February 22, 2021

We recently upgraded from Bitbucket Server 6.9.1 to 7.6.3 in my organization, and it seems that the refspec for information related to PRs may have changed.

For example, on version 6.9.1, I had a CI/CD tool that was setup to use a refspec of `'+refs/pull-requests/*:refs/remotes/origin/pr/*'` which would give me access to references like the following for a given repo:

`git show-ref` to view my local references:


refs/remotes/origin/pr/106/from
refs/remotes/origin/pr/106/merge

 

`git ls-remote` to view remote references:


refs/pull-requests/106/from
refs/pull-requests/106/merge



However, the exact same setup when used on 7.6.3 is missing the `/merge` references. I can't see them in the remote list either, so it doesn't seem to be anything as simple as a refspec change.

Is this expected behavior? And if so, is there a way to access these merge commit references from outside of Bitbucket server on 7.6.3? Maybe some kind of setting I can change in an admin panel?

1 answer

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events