feat: support pull_request.labeled action for track_progress#1015
Open
0x-JP wants to merge 1 commit intoanthropics:mainfrom
Open
feat: support pull_request.labeled action for track_progress#10150x-JP wants to merge 1 commit intoanthropics:mainfrom
0x-JP wants to merge 1 commit intoanthropics:mainfrom
Conversation
Add "labeled" to the supported PR actions in detectMode() and validateTrackProgressEvent(), enabling label-gated PR reviews with track_progress enabled. Fixes anthropics#418 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fusionrace
approved these changes
Mar 5, 2026
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
"labeled"to the supported PR actions in bothdetectMode()andvalidateTrackProgressEvent()insrc/modes/detector.tstrack_progressenabledpull_request.labeledwithtrack_progress: trueContext
Fixes #418
Currently, using
track_progress: "true"withpull_request: types: [labeled]throws:The downstream code (tag mode, prompt construction, branch setup, comment creation) is entirely action-agnostic for PR events, so the restriction was unnecessarily narrow. This change adds
"labeled"to both validation arrays, enabling label-gated workflows like:Test plan
pull_request.labeledwithtrack_progress: truebun test)bun run typecheck)bun run format:check)🤖 Generated with Claude Code