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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

I want to find the sqush commit done in my repo using Rest API call

Hi, 
I want to hit the REST API and find the different types of commits i.r Normal commit, Mrege commit, Squash commit, etc. But there is no direct way to do it hence need help from the community to find a solution

1 answer

0 votes
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 22, 2023

Hi @Sourabh Kulkarni 

Welcome to the Atlassian Community!

I don't think that can be done. The commit/ merge type you perform is something that happens at the moment the commit is performed.

Those types are not Bitbucket specific. They happen at the git level. GIT does not track which type of commit you performed as far as I know.

@Charlie Misonne totally agrees with you but when I saw some answers on the internet saw that we can find Commit and merge commit from the parent array of the API response from bitbucket. Can we do something like this for Squash Commits too?

Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 22, 2023

Apparently someone had the same question. Atlassian created a feature request for it. Currently it is not possible

You can find the answer on https://community.atlassian.com/t5/Bitbucket-questions/Is-there-an-api-for-getting-the-squash-commits-from-bitbucket/qaq-p/2471768#M97405

@Charlie Misonne Cool Thank you for your time. 

Suggest an answer

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

Atlassian Community Events