You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi Team,
I am looking for a bitbucket server api which provides details for all the branches in a repo.
For ex:.
The json output should contains details like
- Author of the branch
- Creation date of the branch
- Origin branch if any.
curl -s -u "XXXX":"XXXXX" "https://XXXXXX.com/rest/api/1.0/projects/DEMO/repos/democonfiguration/branches?limit=2000"
Getting this as output
I am using the above api but i am not getting the desired output (author name , creation date)
Can anyone please help as how can i get the creation date and author name of all branches in a repository
We are using 5.13.0 bitbucket server enterprise edition
Bitbucket doesn't track that sort of metadata yet. You will need a plugin to do it.
Git doesn't either but there are some clever ways to find it I guess. Check out https://stackoverflow.com/questions/12055198/find-out-git-branch-creator/19135644 and see if it helps.
Hi jobin,
Thanks for the reply.
From the stackoverflow I tried the solutions mentioned but again we can get only the last committer of the branch since the creator metadata is not stored in git.
Incase you have any other way please let me know
Thanks
Harshit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.