Skip to content

codefresh-io/committers-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codefresh Committers Counter

Purpose

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.

Usage

Images

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

Example Commands

# 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 

Params (envs)

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)

Note:

Mount some folder to /tmp inside container to be able to find result.json file inside your filesystem.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published