Missed Team ’24? Catch up on announcements here.

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

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

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events