Check Backported
Scans the downstream repo's git history and merged PRs to detect which upstream bugfixes have already been backported.
Detection Methods
- SHA match —
git log --grep="cherry picked from commit"on the downstream branch - Title match —
gh pr list --state merged --base <branch>title contains#<number>
Usage
bash scripts/check-backported.sh \
--input artifacts/backport-triage/filtered.json \
--downstream /path/to/downstream-repo \
--branch rhai/0.13.0 \
--output artifacts/backport-triage/candidates.json
Output
candidates.json — same as input with already_backported: true/false added
to each PR object. Prints match counts to stderr.