Skip to content

actions: smoother labelling triggers - #10388

Open
dogi wants to merge 1 commit into
masterfrom
claude/labels-workflow-skip-duplicate-6p68ih
Open

actions: smoother labelling triggers#10388
dogi wants to merge 1 commit into
masterfrom
claude/labels-workflow-skip-duplicate-6p68ih

Conversation

@dogi

@dogi dogi commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary

Removes the edited event type from the pull_request_target trigger in the planet labels workflow and simplifies the conditional logic that was working around it.

Changes

  • Removed edited from workflow trigger types: The workflow now only runs on opened, synchronize, reopened, and ready_for_review events. The edited event was causing excessive workflow runs whenever CodeRabbit or other tools rewrote PR titles/descriptions, leading to cascading cancellations and skipped labelling checks.
  • Removed conditional guard: Deleted the if: ${{ github.event.action != 'edited' || github.event.changes.base }} condition that was attempting to skip runs on edits (except retargeting). This is no longer needed since the trigger itself excludes the edited event.

Rationale

The edited event fires on every title or description rewrite. CodeRabbit rewrites PR descriptions multiple times, which queued multiple workflow runs that cancelled each other and resulted in PRs remaining unlabelled. Manual relabelling via workflow_dispatch is available for retargeted PRs (which change the diff without a push).

https://claude.ai/code/session_01CsgFLJCRY6VhZrkN27EBib

`edited` fires on every title or description rewrite, so coderabbit's
walkthrough alone queued several extra runs per pull request. Each one
entered the labels-<pr> concurrency group, cancelled the labelling run
still in flight, and then skipped on the base-change guard -- leaving a
push unlabelled behind a row of skipped checks.

Label on the events that change the diff instead, and drop the guard the
`edited` trigger needed. Retargeting a pull request still changes its
diff without a push; the workflow_dispatch input relabels it by hand.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CsgFLJCRY6VhZrkN27EBib
@github-actions github-actions Bot added the small up to 60 reviewable lines label Sep 3, 2026
@dogi dogi changed the title ci: remove edited trigger from planet labels workflow actions: smoother labelling triggers Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small up to 60 reviewable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants