Application to check Github for Pull Requests, that are not Drafts, in repos the user cares about.
The program is configured via a YAML file located at $HOME/.config/ghreport/config.yaml
.
- token: Should be set to a Github API Token with access to the repos you are checking
- One of subscribedRepos, autoDiscover.organizations, or autoDiscover.users must be set if you wish to have any results. You can set all three if you wish.
- topic limits what is returned from organizations and users to just that topic, this is an optional field.
Here's an example configuration:
autoDiscover:
organizations:
- name: your_organization_name
topic: topic_to_watch
users:
- name: your_username
topic: topic_to_watch
subscribedRepos:
- Jmainguy/ghreport
- Jmainguy/bible
- Jmainguy/ghReview
- Jmainguy/bak
token: e0e9eac4e84446df6f3db180d07bfb222e91234
Running the progam
ghreport [-output=<format>]
jmainguy@fedora:~/Github/ghreport$ ./ghreport
https://github.com/Jmainguy/statuscode/pull/32
author: renovate
Age: 3 days
reviewDecision: ❌
mergeable ✅
https://github.com/Jmainguy/statuscode/pull/33
author: renovate
Age: 3 days
reviewDecision: ✅
mergeable ✅
https://github.com/Standouthost/Multicraft/pull/9
author: TheWebGamer
Age: 3321 days
reviewDecision: ✅
mergeable ❌
https://github.com/Standouthost/Multicraft/pull/28
author: ungarscool1
Age: 2700 days
reviewDecision: 😅
mergeable ✅
jmainguy@fedora:~/Github/ghreport$ ./ghreport -output singleline
https://github.com/Jmainguy/coastie-operator/pull/2 author: dependabot Age: 409 days reviewDecision: 🔍 mergeable: ✅
https://github.com/Jmainguy/coastie-operator/pull/3 author: dependabot Age: 384 days reviewDecision: 🔍 mergeable: ✅
https://github.com/Jmainguy/coastie-operator/pull/4 author: renovate Age: 354 days reviewDecision: 🔍 mergeable: ✅
https://github.com/Standouthost/Multicraft/pull/9 author: TheWebGamer Age: 3321 days reviewDecision: ✅ mergeable: ❌
jmainguy@fedora:~/Github/ghreport$ ./ghreport -output json
{"url":"https://github.com/Jmainguy/k8sCapcity/pull/50","author":"github-actions","age":"24 days","review_decision":"😅","mergeable":"✅"}
{"url":"https://github.com/Jmainguy/k8sDrainReport/pull/27","author":"github-actions","age":"8 days","review_decision":"😅","mergeable":"✅"}
{"url":"https://github.com/Standouthost/Multicraft/pull/9","author":"TheWebGamer","age":"3321 days","review_decision":"✅","mergeable":"❌"}
jmainguy@fedora:~/Github/ghreport$ ./ghreport -output=json | jq '. | select(.url | contains("k8sCapcity"))'
{
"url": "https://github.com/Jmainguy/k8sCapcity/pull/50",
"author": "github-actions",
"age": "24 days",
"review_decision": "😅",
"mergeable": "✅"
}
jmainguy@fedora:~/Github/ghreport$ ./ghreport -output=json | jq '. | select(.author == "github-actions")'
{
"url": "https://github.com/Jmainguy/k8sDrainReport/pull/27",
"author": "github-actions",
"age": "8 days",
"review_decision": "😅",
"mergeable": "✅"
}
{
"url": "https://github.com/Jmainguy/k8sCapcity/pull/50",
"author": "github-actions",
"age": "24 days",
"review_decision": "😅",
"mergeable": "✅"
}
We currently build releases for RPM, DEB, macOS, and Windows.
Grab Release from The Releases Page
export GO111MODULE=on
go build