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

REST Api - getting commits of branch with multiple path elements

gioravered March 22, 2020

Hi,

I'm trying to get commits for a branch the is names: "releases/version_1.0.0"

According to the docs, we can get commits on rev by:

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

 

trying to get GET /repositories/{workspace}/{repo_slug}/commits/releases/version_1.0.0 returns an error as it counts version_1.0.0 as a commit on branch releases.

 

Is there a way to solve this issue?

 

UPDATE

Sorry, this is working fine: /repositories/{workspace}/{repo_slug}/commits/releases/version_1.0.0 

 

Thank you very much,

Giora.

1 answer

1 accepted

0 votes
Answer accepted
gioravered March 22, 2020

It appears that  using the branch name is working, even with path elements.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events