Rest API - How to fetch commits between two branch tags

amunro_92
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!
June 12, 2014

Hey there, I'm trying to create a deploy script which includes pulling down
commits in the current version and emailing it around.

When we deploy, we create a version tag on the repository. I see that you
can request commits using the API by specifying the branch tag in the {revision} parameter, however this fetches all commits up until the specified tag, including branch tags that occured before it.

Essentially, how could I fetch all commits between two specifed branch tags such as
"v2.2" and "v2.1".

I could also potentially try and filter through the commits in the script and check their tags, but unfortunately no branch tags are sent down with the commits.

1 answer

0 votes
amunro_92
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!
June 15, 2014

Any ideas anyone? I am still unsure as how to go about this.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events