The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Identify commits introduced by a pull request into the master branch via REST API

cosscat
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!
May 8, 2024

Hi,

I need to identify the commits introduced by a pull request into the master branch (or any destination branch if possible)

The scenario is this:

1) someone opens a pull request that has let's say 3 commits in it.

2) the destination branch is master so in the meanwhile there are other people commiting there

3) the pull request is approved and is merged into master branch

4) because of fast fw mechanism, the hashes of commits that get to master is not the same as those in the initial pull request

Question:

How can i identify via Bitbucket Server REST API 2.0 what commits (hashes) were introduced by a pull request? (or if not possible via rest api, an other mechanism?)

 

Thank you :),

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 12, 2024

Hi @cosscat,

Welcome to the community.

You can check out this REST API 2.0 endpoint and see if it works for your workflow: List commits on a pull request

Regards,
Mark C

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events