Salesforce Folder structure as below containing numerous classes and meta xml's:
Project
--src
--classes
-- Class A
-- Class A-Meta.xml
-- Class B
-- Class B-Meta.xml
-- Class N
Problem statement: For each class, I need
- The history within a date range
- Output should contain File name, commit id and author name who have made commits in this file within this date range.
- Export this information in excel/csv/word
Sample output
Classname Author commit
Class A Dev1 abcd
Class A Dev2 pqrs
Class A Dev3 uvwz
Class B Dev9 yuot
Class B Dev1 qwew
I am using VSTS Azure Repos. Open to use git log or any other way of getting this done quickly.
We can use this REST API to retrieve git commits for a project in a date range, we can get commit ID, author and committer Info.
Sample:
We can get the commit Folder name via commit ID
And get the detail commit info with below API
Power shell sample:
Result: