Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to get tags and branch from the GET /repositories/{workspace}/{repo_slug}/commits/

jason.tsai
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 29, 2020

Hi,

My goal is to find the tag what a commit can have.

I read the documentation from

https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commits#get

In the documentation, It says that "all branches and tags" are included.

GET /repositories/{workspace}/{repo_slug}/commits/

Returns all commits in the repo in topological order (newest commit first). All branches and tags are included (similar to git log --all and hg log).

 

I wonder if I am using the wrong API because I don't seem to able to find the tag in the response.

 

Thanks,

Jay

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events