Forums

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

Return all commits between two release numbers

Jim Gust
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!
August 25, 2022

Is there an equivalent of "git log $($lastProd)..$($curr)"?

In an old post somewhere one solution was to use [since] and [until] filters but that suggestion was for api 1.0. I tried the following but all commits were being returned:

https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/commits/main?since="Rel_1.0.48.004"&until="Rel_1.0.50.2"&fields=values.hash,values.message,next&pagelen=100

1 answer

1 accepted

0 votes
Answer accepted
Jim Gust
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!
August 27, 2022

It looks like the solution is to use the include and exclude filters.

https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/commits/?include=Rel_1.0.50.2&exclude=Rel_1.0.48.0&fields=values.hash,values.message,next&pagelen=100

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events