Forums

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

How to get latest commit date for the number of files using Bitbucket rest api or any other way?

Machindra Dharmadhikari
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!
September 29, 2021

I am trying to retrieve latest commit date on multiple files(around 66K) for which I have Stash link only. Please suggest how can I get this latest commit date for this respective files.

Below is the sample for 1 file:

 

https://[Node name]:8081/projects/{Project Name}/repos/{Repo Name}/browse/{folders}/xyz/xyz-xml.xml

1 answer

0 votes
John Lawlor September 29, 2021

You could get it using using the rest api:

 

curl -u fred:fred http://localhost:7990/rest/api/1.0/projects/WORK/repos/my-repo/commits/?until=master

 

https://developer.atlassian.com/server/bitbucket/how-tos/command-line-rest/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events