The tools in this directory are designed to run out of a local clone
of the openshift/enhancements
git repository. The repository can be
cloned from any source, but one of the remotes must point to the
openshift/enhancements
repo on GithHub.
You need to create a ~/.config/ocp-enhancements/config.yml
containing a personal access token:
github:
token: "deadbeefdeadbeefdeadbeefdeadbeef"
From the tools
directory, run:
go run ./main.go report
There are command line options to control the range of time
scanned. Use the -h
option to see the help.
From the tools
directory, run:
go run ./main.go reviewers
To see reviewer contributions on PRs in the last 31 days.
There are command line options to control the number of days and which
repository to scan. Use the -h
option to see the help.
It is common for bot accounts to comment a lot on PRs. To ignore those
comments, use the --ignore
flag, passing the name of the account to
ignore. The option can be repeated. For example
go run ./main.go reviewers --ignore openshift-ci-robot
The list of accounts to ignore can also be included in the configuration file, like this.
github:
token: "deadbeefdeadbeefdeadbeefdeadbeef"
reviewers:
ignore:
- openshift-ci-robot