Skip to content

fix: use REST API for author_association in triage skill - #571

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-570
May 21, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-570

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Problem

plugins/tend-ci-runner/skills/triage/SKILL.md instructed the triage agent to fetch author_association with gh issue view $ARGUMENTS --json author,authorAssociation --jq '.authorAssociation'. That field is not exposed by gh issue view --json (or gh pr view --json); the command always errors with Unknown JSON field: "authorAssociation". Every triage run hit this when it reached the closer-template step.

Solution

Swap the broken gh issue view --json recipe for the REST form, which does expose author_association:

gh api "repos/$GITHUB_REPOSITORY/issues/$ARGUMENTS" --jq '.author_association'

Added a one-line gloss next to it explaining why the --json shape doesn't work, to discourage future "cleanups" back to the broken form.

Testing

Ran the original broken command in this CI session and got the same Unknown JSON field error the issue describes. Ran the replacement against this issue (#570) and it returned NONE — matching the REST API.


Closes #570 — automated triage

The recipe used `gh issue view --json author,authorAssociation --jq
'.authorAssociation'`, but `--json` does not expose `authorAssociation` —
the field is reachable only via the REST API. Every triage run errored
when it reached the closer-template step.

Closes #570

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit ffabccd into main May 21, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/issue-570 branch May 21, 2026 14:59
@max-sixty max-sixty mentioned this pull request May 23, 2026
2 of 3 tasks
max-sixty added a commit that referenced this pull request May 23, 2026
## Summary

- Bumps generator version to 0.1.0 and syncs lockfile.

7 commits since 0.0.25:
- fix: jitter outage-issue dedup to handle concurrent matrix-leg
failures (#586)
- fix: install-test default-branch probe on shallow checkout (#583)
- fix: pin install-tend badge link to max-sixty/tend (#585)
- skills(review-reviewers): call out commenter-self-edit filters as a
non-issue (#581)
- triage: skip on tend-outage labeled issues (#579)
- fix: use REST API for author_association in triage skill (#571)
- skills(running-in-ci): catch already-merged sibling PRs in dedup
(#569)

## Test plan
- [x] `wt test` passes
- [x] `pre-commit run --all-files` passes
- [ ] CI green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

triage skill: gh issue view --json authorAssociation is not a valid field

2 participants