https://github.com/settings/tokens
create a copy of .env.example as .env and set own values for env variables
cp .env.example .env
vim .env
PLUGIN_GITHUB_OAUTH2_TOKEN=<you git oauth2 token>
$ docker-compose build
$ docker-compose up -d
$ make build
bash ./cmd/daily_import_and_transform.sh
$ ./build/dpe-cli github import pull-request-counts --days=30
$ ./build/dpe-cli github import pull-requests --days=30
$ ./build/dpe-cli github import pull-requests --startDate=2020-11-01 --endDate=2020-11-07
$ ./build/dpe-cli github import teams
$ ./build/dpe-cli github transform pull-requests
$ ./build/dpe-cli github transform pull-request-counts --days=30
$ ./build/dpe-cli github transform team-pull-request-counts --weeks=10
$ ./build/dpe-cli github sync
You can manage dashboards in Grafana by adding one or more YAML config files in the:
.docker/grafana/var/lib/grafana/provisioning/dashboards/
directory. By default, these dashboards cannot be updated from Grafana UI, and an app restart is required to reflect any changes in JSON files. Docs
Check api/routing.go file
Grafana is accessible under the following URL: http://localhost:3002 using the following credentials:
- User: admin
- Password: admin123
https://github.com/cosmtrek/air
<project_root> make lint
<project_root> make lint-fix
<project_root> make test