Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Hakeem Badran
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

0 votes
Hakeem Badran
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 23, 2021

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events