summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Pocock <mattpocockvoice@gmail.com>2026-10-06 13:51:45 +0100
committerMatt Pocock <mattpocockvoice@gmail.com>2026-10-06 13:51:45 +0100
commit8e67db21543c1ed62b44913302e4a5a1eb341791 (patch)
treeeb2b13f728f98f16e96f3cca70569ea24233ddf6
parente0efb6e7435ebb420d8a25d6816ed1ebaa2d23d2 (diff)
setup-matt-pocock-skills: tighten #468 fix textfix/468-github-external-pr-list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rw-r--r--.changeset/github-tracker-external-pr-list.md2
-rw-r--r--docs/engineering/triage.md2
-rw-r--r--skills/engineering/setup-matt-pocock-skills/issue-tracker-github.md2
3 files changed, 3 insertions, 3 deletions
diff --git a/.changeset/github-tracker-external-pr-list.md b/.changeset/github-tracker-external-pr-list.md
index 86e5ac1..86f5992 100644
--- a/.changeset/github-tracker-external-pr-list.md
+++ b/.changeset/github-tracker-external-pr-list.md
@@ -2,4 +2,4 @@
"mattpocock-skills": patch
---
-The GitHub issue tracker template that `setup-matt-pocock-skills` writes now lists external PRs for triage with `gh api 'repos/{owner}/{repo}/pulls?state=open'`, because `gh pr list --json` has no `authorAssociation` field and the old command always failed. It also drops `OWNER`/`MEMBER`/`COLLABORATOR` PRs instead of allow-listing first-contribution values, so `FIRST_TIMER` authors are no longer filtered out. Re-run `/setup-matt-pocock-skills` to refresh your `docs/agents/issue-tracker.md`. Thanks @lofi-coding for the report (#468).
+Fixed the GitHub tracker template's external-PR listing, which failed on `authorAssociation` (#468, thanks @lofi-coding). Re-run `/setup-matt-pocock-skills` to refresh `docs/agents/issue-tracker.md`.
diff --git a/docs/engineering/triage.md b/docs/engineering/triage.md
index 07bc5d6..0b20a8e 100644
--- a/docs/engineering/triage.md
+++ b/docs/engineering/triage.md
@@ -64,7 +64,7 @@ All of this work makes one artifact good: the **agent brief**. This is the struc
If the tracker treats external pull requests as a request surface, they go through the same machine, with the same categories, states and transitions. The states apply to the diff. `ready-for-agent` means a brief is attached and an agent should take the next step on the code. `ready-for-human` means a person can merge it. A brief on a PR describes what is left to do to the existing diff, not how to build the thing from nothing.
-Discovery shows only *external* PRs, because a collaborator's in-progress branch is not triage work. That filter applies only to discovery. If you name a PR explicitly, `triage` handles it, whoever wrote it. On GitHub, discovery lists open PRs through the REST pulls endpoint and drops owner, member and collaborator PRs. If your `docs/agents/issue-tracker.md` still asks `gh pr list` for `authorAssociation`, a field `gh` does not expose, re-run `/setup-matt-pocock-skills` to refresh it ([#468](https://github.com/mattpocock/skills/issues/468)).
+Discovery shows only *external* PRs, because a collaborator's in-progress branch is not triage work. That filter applies only to discovery. If you name a PR explicitly, `triage` handles it, whoever wrote it.
## Common questions
diff --git a/skills/engineering/setup-matt-pocock-skills/issue-tracker-github.md b/skills/engineering/setup-matt-pocock-skills/issue-tracker-github.md
index b3df18e..778e850 100644
--- a/skills/engineering/setup-matt-pocock-skills/issue-tracker-github.md
+++ b/skills/engineering/setup-matt-pocock-skills/issue-tracker-github.md
@@ -20,7 +20,7 @@ Infer the repo from `git remote -v`; `gh` does this automatically when run insid
When set to `yes`, PRs run through the same labels and states as issues, using the `gh pr` equivalents:
- **Read a PR**: `gh pr view <number> --comments` and `gh pr diff <number>` for the diff.
-- **List external PRs for triage**: `gh api --paginate 'repos/{owner}/{repo}/pulls?state=open' --jq '.[] | select(.author_association | IN("OWNER","MEMBER","COLLABORATOR") | not) | {number, title, author: .user.login, author_association, labels: [.labels[].name]}'`. This drops `OWNER`/`MEMBER`/`COLLABORATOR` and keeps every other association. (`gh pr list --json` has no `authorAssociation` field, so the REST endpoint is used instead.)
+- **List external PRs for triage**: `gh api --paginate 'repos/{owner}/{repo}/pulls?state=open' --jq '.[] | select(.author_association | IN("OWNER","MEMBER","COLLABORATOR") | not) | {number, title, author: .user.login, author_association, labels: [.labels[].name]}'`.
- **Comment / label / close**: `gh pr comment`, `gh pr edit --add-label`/`--remove-label`, `gh pr close`.
GitHub shares one number space across issues and PRs, so a bare `#42` may be either: resolve with `gh pr view 42` and fall back to `gh issue view 42`.