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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.