Skip to content

Trigger renovate-approve-pr.yaml on the labeled event too - #145

Merged
matt-richardson merged 1 commit into
mainfrom
fix-renovate-approve-labeled-event
Jul 28, 2026
Merged

Trigger renovate-approve-pr.yaml on the labeled event too#145
matt-richardson merged 1 commit into
mainfrom
fix-renovate-approve-labeled-event

Conversation

@matt-richardson

Copy link
Copy Markdown
Contributor

Summary

on: pull_request with no types: key defaults to [opened, synchronize, reopened] -- it excludes labeled. Renovate creates a PR, then adds labels (autoapprove, dependencies, etc.) as a separate follow-up call. If the opened webhook fires before the label-adding call lands, the autoapprove-label check sees no labels, evaluates false, and skips -- permanently, since nothing retriggers the workflow afterward.

This is a race condition that can hit any repo running this automerge pattern -- confirmed on OctopusDeploy/OctopusServerBuildHealthMonitor#344.

Changes

  • Added labeled (alongside the existing defaults) to on: pull_request: types:, so a later label-add event re-evaluates the condition with the label actually present.

Part of the team-builds Dependabot -> Renovate migration follow-up: DPT-3088.

🤖 Generated with Claude Code

on: pull_request with no types key defaults to [opened, synchronize,
reopened] -- it excludes labeled. Renovate creates a PR then adds
labels (autoapprove, dependencies, etc.) as a separate follow-up call.
If the opened webhook fires before the label-adding call lands, the
job's autoapprove-label check sees no labels, evaluates false, and
skips -- permanently, since nothing retriggers the workflow afterward.

Adding labeled to the trigger types means a later label-add event
re-evaluates the condition with the label actually present.
@matt-richardson
matt-richardson requested a review from a team as a code owner July 28, 2026 01:01
@matt-richardson
matt-richardson merged commit d2705eb into main Jul 28, 2026
4 checks passed
@matt-richardson
matt-richardson deleted the fix-renovate-approve-labeled-event branch July 28, 2026 02:26
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.

2 participants