RestAPI to check if the branch contains the changes of master

pari February 3, 2020

Hi ,

Is there a rest API to check if the specific branch of the repository contains latest changes of the master branch ?

 

Thanks

1 answer

0 votes
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 3, 2020

@pari  This is not directly possible, as a workaround,

  • you first need to fetch top commits from each branch
  • and compare these two commits (you can compare api)
pari February 10, 2020

Thanks DPK J for your quick response and will try and update. 

pari February 17, 2020

http:///rest/api/latest/projects/<proj name>/repos/<repo name>/changes?since=<tag>&until=<commit-id>

I have tested this, but it gives changes since the SINCE value mentioned. but I want to check if the UNTILL value contains SINCE<tag> changes

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events