Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branches API call does not expose ID number #2

Open
martin9700 opened this issue Jan 13, 2018 · 3 comments
Open

Branches API call does not expose ID number #2

martin9700 opened this issue Jan 13, 2018 · 3 comments

Comments

@martin9700
Copy link

Not sure if this is the right place to mention this, but! When calling the

$server/rest/api/1.0/projects/$ProjectKey/repos/$Repo/branches

API call, it does not expose the branch ID number, making it impossible to correlate commits to the branch. It looks like commits does expose the "parent ID" and I'm assuming this would be the ID number of the branch.

Alternative would be to add a branch search to the commits API call.

@lipkau
Copy link
Member

lipkau commented Jan 13, 2018

Good catch. Did you fix this in your PR?

@martin9700
Copy link
Author

martin9700 commented Jan 13, 2018 via email

@lipkau
Copy link
Member

lipkau commented Jan 13, 2018

I found this API that can list all commits of a specific branch:
https://docs.atlassian.com/bitbucket-server/rest/5.6.2/bitbucket-rest.html#idm46036344406192

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants