Set GitLab or GitLab Server mode (if a host was provided or not through the
allthe groups that the credentials have access to from the SCM and create a groups list.
allprojects under the fetched/provided groups.
Create an import file for unmonitored repos to use for easily importing repos into your Snyk account (if the
importConfDirflag was set)
Fetch the commits for the fetched/provided project/s and create a Contributors list.
Count the commits for the project/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.
GitLab API endpoints used
To get the groups paths from GitLab if a group/s names were provided:
To get the projects from GitLab if a host url was not provided:
To get the projects from GitLab Server if a host url was provided:
To get the commits for the fetched/provided project/s list: