For some on-prem customers we are not able to count committers in the system because they are using cron triggers to run their pipelines. That's why this script was written.
gcr.io/codefresh-inc/codefresh/committers-counter:master
gcr.io/codefresh-enterprise/codefresh/committers-counter:master
quay.io/codefresh/committers-counter:master
codefresh/committers-counter:master
# with minimal config (from start to the end of this month)
# result is printed to logs
docker run \
-e GIT_TOKEN=... \
-e GIT_REPOSITORIES=codefresh-io/argo-platform \
gcr.io/codefresh-inc/codefresh/committers-counter:master
# with dates
# result is printed to logs
docker run \
-e GIT_TOKEN=... \
-e GIT_REPOSITORIES=codefresh-io/argo-platform \
-e DATE_START=2022-05-08 \
-e DATE_END=2022-09-08 \
gcr.io/codefresh-inc/codefresh/committers-counter:master
# with dates
# result is printed to logs
# and can be found in path /tmp/result.json
docker run \
-e GIT_TOKEN=... \
-e GIT_REPOSITORIES=codefresh-io/cli,codefresh-io/cf-api \
-e DATE_START=2022-05-08 \
-e DATE_END=2022-09-08 \
-v /tmp:/tmp \
gcr.io/codefresh-inc/codefresh/committers-counter:master
GIT_TOKEN
and GIT_REPOSITORIES
are required parameters.
GIT_TOKEN
must have repos:read
scope
GIT_REPOSITORIES
should be the list of repo names separated by comma
DATE_START
and DATE_END
are optional parameters -- by default script
will try to take committers in dates between start and the end of current
month (f.e. 01.09
and 31.09
for September)
Mount some folder to /tmp
inside container to be able to find result.json
file inside your filesystem.