feat(github): gh-prs PR triage board (gl-mrs twin)#276
Merged
Conversation
Mirror gl-mrs as gh-prs in the github preset. Lists PRs (default author=@me), sorted failing-first then stalest, each annotated with check rollup (a failure shows the failing check name), approval (reviewDecision), age, diff size, watch-state cross-reference, and draft/conflict/threads flags. Footer points at the first failing-and-unwatched PR. Unlike GitLab, gh pr list --json returns statusCheckRollup + reviewDecision in one call, so the core board costs a single request; only unresolved review-thread counts enrich in a second parallel wave (skip with nopipe). Reuses _gh and _fetch_review_threads from github/pr.py. Filters: author/reviewer/assignee/label/state/per. Flags: nopipe, iids, failed. iids feeds watch-mine.sh: watch-mine.sh 'gh-prs:failed,iids' github-pr. 47 unit tests for the pure helpers + main() watch contract. Docs: github.md row, watch.md caveat dropped, CHANGELOG. Co-Authored-By: Max <noreply>
…ntext) Cover the branchiest rollup helper explicitly — in-flight CheckRun (status), pending StatusContext (state incl. EXPECTED, a valid GraphQL StatusState), and terminal states. Review follow-up. Co-Authored-By: Max <noreply>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #274.
What
gh-prs— a GitHub PR triage board, the symmetric twin ofgl-mrs. Lists PRs (defaultauthor=@me), sorted failing-first then stalest, each annotated with:gh-jobcall)reviewDecision)draft/conflict/threadsflagsKey asymmetry vs gl-mrs
gh pr list --json statusCheckRollup,reviewDecisionreturns checks + approval in one call (GitLab needed a per-MR pipeline fetch). So the core board costs a single request; only unresolved review-thread counts enrich in a second parallel wave, skippable withnopipe. Reuses_gh+_fetch_review_threadsfromgithub/pr.py.Surface
Filters:
author/reviewer/assignee/label/state/per. Flags:nopipe,iids,failed.Feeds the supervisor:
bash presets/watch/watch-mine.sh 'gh-prs:author=@me,failed,iids' github-prTests
tests/test_github_prs.py— 47 tests (arg parse, cmd build, rollup reduction, annotate, enrich, watch-state, render, sort, footer, main() watch contract). Full preset suite green.Acceptance (#274)
gh-prs:failed,iidsemits a clean number listwatch-mine.sh 'gh-prs:author=@me,failed,iids' github-prspawns watchers