viewPr.sh scans the configured GitHub repositories, checks pull request approvals, groups PRs by ticket, and can generate a clickable HTML report.
Tickets are detected in PR titles, PR bodies, branch names, and commit messages. Supported ticket format:
[CM-1234][F]
Supported projects: DI, CM, VIV, ABMAT, AB, BRIEFD, LK.
Supported types:
HhotfixBbugfixFfeature
Hotfixes and bugfixes are listed before features.
Use one of these:
gh auth loginOr:
export GITHUB_TOKEN=your_token_hereThe token needs read access to the repositories.
Run from the repository root:
cd /Users/tadej/web_dev/di
./viewPr.sh --format html --output pr-report.htmlOpen pr-report.html in your browser.
If pr-report.html already exists, it is overwritten on the next run. Generated report files are ignored by git.
Create a clickable HTML report:
./viewPr.sh --format html --output pr-report.htmlShow only PRs with at least 2 approvals:
./viewPr.sh --only-ready --format html --output pr-report.htmlShow PRs authored by you that do not have 2 approvals yet:
./viewPr.sh --my-prs-pending-approval --format html --output my-pending-prs.htmlUse a specific GitHub login instead of the authenticated user:
./viewPr.sh --my-prs-pending-approval --author your-github-login --format html --output my-pending-prs.htmlShow PRs that do not have 2 approvals and where you have not approved or requested changes yet. Plain comments do not hide PRs from this list, and comments after approval do not remove that approval:
./viewPr.sh --needs-my-review --format html --output my-review-prs.htmlUse a specific GitHub login instead of the authenticated user:
./viewPr.sh --needs-my-review --reviewer your-github-login --format html --output my-review-prs.htmlCreate a markdown report:
./viewPr.sh > pr-report.mdCreate a JSON report:
./viewPr.sh --format json --output pr-report.jsonHide progress messages:
./viewPr.sh --quiet --format html --output pr-report.htmlScan only specific repositories:
./viewPr.sh Preskok/core Preskok/backend --format html --output pr-report.htmlUse a custom repo file:
./viewPr.sh --repos-file repos.txt --format html --output pr-report.htmlrepos.txt can contain one repo per line:
Preskok/core
git@github.com:Preskok/backend.git
https://github.com/Preskok/account
The HTML report includes:
- ticket groups
- clickable repository links
- clickable pull request links
- approval count
- approving reviewer names
- change-request reviewer names
- unresolved feedback reviewer names
ReadyorWaitingstatusChanges Requestedstatus when a review requested changesWaiting For Feedbackstatus when your unresolved review-thread comments still need a response- repository errors, if any
Progress is printed to stderr, so redirecting the report still works:
./viewPr.sh --format html > pr-report.html