chore: add auto-triage workflow for new issues#328
Merged
danstepanov merged 1 commit intomainfrom Apr 17, 2026
Merged
Conversation
480eeb5 to
c56e949
Compare
Tier 1 of a multi-tier triage system. Triggers on every new issue (and supports workflow_dispatch for re-triaging existing issues). Runs Claude Opus 4.7 to: 1. Parse the issue and identify version, repo, and bug type 2. Look for a reproduction URL in the body 3. Generate a minimal Jest test reproduction for CSS/compiler bugs 4. Run the test against HEAD to confirm the bug reproduces 5. Post a structured triage comment with findings 6. Apply labels based on the outcome (confirmed, needs-reproduction, needs-more-info, needs-deep-triage) Tier 1 is Linux-based and handles compilation, type, and config issues. Runtime/interaction/memory bugs get flagged with `needs-deep-triage` for a future Tier 2 workflow (self-hosted macOS runner + Argent). The prompt explicitly loads CLAUDE.md (which imports DEVELOPMENT.md and CONTRIBUTING.md) so Claude has the architecture overview, test conventions, and common pitfalls before triaging. Setup and ops docs in .github/AUTO_TRIAGE.md.
c56e949 to
cc95a71
Compare
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.
Summary
Adds a Tier 1 auto-triage workflow that runs on every new issue. Uses Claude Opus 4.7 via the Claude Code base action to:
Tier system
needs-deep-triagelabel.Authentication
Uses
CLAUDE_CODE_OAUTH_TOKEN(Claude Max subscription, free under the Anthropic OSS program) instead of a pay-per-use API key. Generate locally withclaude setup-token.If the Max subscription ever goes away, swap the secret reference in the workflow for
ANTHROPIC_API_KEY.Test plan
claude setup-tokenlocally and copy the outputgh secret set CLAUDE_CODE_OAUTH_TOKEN --repo nativewind/react-native-cssworkflow_dispatchon issuegroup-disabled:(and likely other group attribute variants) is always applied #297 (known CSS compiler bug that reproduces):gh workflow run "Auto Triage" --repo nativewind/react-native-css -f issue_number=297triage-*.test.tsxfiles are left behindissues: openedtrigger handles new issues automaticallySetup and ops docs in
.github/AUTO_TRIAGE.md.