I would like to create a daily report for each Stash repository that specifies which files each developer has committed to a Stash Git repository.
It might be formatted like:
Committor Timestamp Files (added or modified)
------------- ------------- ------------------------------------
What is the best way to go about acquiring that information from Stash?
I played around with the Stash REST API and was able to get contributor commit data; but, I have not figured out how to get the files that were part of a commit.
Q. Given a commit SHA, how can you find the files contained within a commit via the Stash REST API? Or, some other way?
BTW, to get the commit information, I have done the following:
curl -u user:password -X GET -H "Content-Type: application/json" http://stash.mycompany.com/rest/api/1.0/projects/TES/repos/frm4/commits/bc85af83645141449e34697e5d1c0405d939b6d8 > c:\json-commit.out
But, not sure how to determine the committed files in the JSON output.
Thanks,
Bob