GitHub Enterprise - Flow and Tech
Flow
Fetch
one/some/allthe orgs (according to thefetchAllOrgsflag) that the credentials have access to from SCM and create an orgs list.Fetch
one/allrepos under the fetched/provided orgs.Fetch the commits for the fetched/provided repo/s and create a Contributors list.
Count the commits for the repo/s by the contributors.
Remove the contributors that were specified in the exclusion file (if
the exclusionFilePathflag was set and a valid path to a text file was provided).Print the results.
GitHub Enterprise API endpoints used
To get the orgs from GitHub Enterprise:
api/v3/organizations(if thefetchAllOrgsflag was set) orapi/v3/user/orgs(if thefetchAllOrgsflag was not set)To get the list of the repo/s that correlate with the fetched/provided orgs list:
api/v3/orgs/{Org}/reposTo get the commits for the fetched/provided repo/s list:
api/v3/repos/{Org}/{Repo}/commits
Last updated
Was this helpful?

