Repository navigation
Fix PR triage labeling and skip previously assessed PRs - #3996
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The existing-assessment check misses comments authored by the configured triage token’s identity, allowing duplicate assessments after a maintainer removes the label.
1 open issue
What changed in this PR
This PR restores live labels and comments in the repository’s PR triage automation and adds checks to avoid repeating prior assessments. It does not change MCP tools or APIs.
Changes:
- Use a dedicated verdict output so template checks can activate triage correctly.
- Enable safe-output writes and update the generated workflow permissions.
- Check existing labels and assessment comments before dispatch and agent activation.
| File | Description |
|---|---|
.github/workflows/pr-triage.md |
Fix verdict output, check prior triage, and enable live writes. |
.github/workflows/pr-triage.lock.yml |
Regenerate executable workflow with updated checks, permissions, and output artifacts. |
.github/workflows/pr-triage-dispatch.yml |
Check prior triage before dispatching a run. |
.github/scripts/pr-already-triaged.sh |
Add shared detection of triage labels and assessment comments. |
Review effort: Balanced (adaptive)
almaleksia
previously approved these changes
Dec 1, 2026
| permissions: | ||
| issues: read | ||
| issues: write | ||
| pull-requests: write |
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Enabling live agent-written PR labels and comments changes write permissions, gating, and identity-based idempotency across multiple jobs, warranting human review.
No open issues 🎉
1 resolved since last review
Review effort: Balanced (adaptive)
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.

Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
208b2ca697e9a1c5e4d56f96ff79f0e16eec306b↓ Live safe-output delivery has not been verified.
Summary
Restore live triage labels and comments without repeating an existing assessment.
Why
Run 46439249565 found missing sections but skipped activation.
What changed
GH_AW_GITHUB_TOKENis configured, set the repository variablePR_TRIAGE_WRITER_LOGINto the login that posts its comments.MCP impact
Prompts tested (tool changes only)
Security / limits
Tool renaming
deprecated_tool_aliases.goNote: if you're renaming tools, you must add the tool aliases. For more information on how to do so, please refer to the official docs.
Lint & tests
./script/lint./script/testWorkflow-only change:
gh aw validate pr-triage, local first-pass and repeat-triage fixtures, andbash .github/scripts/pr-already-triaged-test.shpassed. Application lint and tests were not run.Docs
Skills