ci: actively strip major/minor labels from dependabot PRs - #8
Closed
Mirasii wants to merge 1 commit into
Closed
Conversation
Setting labels: [] in dependabot.yml does not suppress GitHub's auto-application of major/minor/patch labels — that behaviour fires whenever those labels exist in the repository, regardless of the labels: configuration. The previous workflow only added `patch` without removing the auto-applied `major`/`minor`, so dependency PRs ended up multi-labelled and would have driven the wrong version-bump in deploy.yml's release logic. - dependabot-auto-label.yml: also fires on `labeled` events and actively removes `major` and `minor` before adding `patch`, so the patch label ends up as the only version label. - deploy-develop-dependabot.yml (Quote only): remove the `labeled` trigger added in the previous fix. That workflow has no label check, so the extra trigger only caused parallel smoke-test runs that raced on the bun.lock fast-forward push. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Mirasii
force-pushed
the
dependabot-label-cleanup
branch
from
May 2, 2026 01:45
96423d1 to
de65f75
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
The previous attempt set
labels: []independabot.ymland added an auto-label workflow that appliedpatch. That did not fully fix the problem because GitHub auto-appliesmajor/minor/patchlabels to dependabot PRs whenever those labels exist in the repo — independent ofdependabot.yml'slabels:setting. PRs were ending up withminor,patchetc.This PR extends the auto-label workflow to actively remove
majorandminorbefore applyingpatch, and also fires onlabeledevents so it cleans up labels Dependabot adds shortly after PR creation.Changes
.github/workflows/dependabot-auto-label.yml— also triggers onlabeled; removesmajorandminorbefore addingpatch..github/workflows/deploy-develop-dependabot.yml— revert thelabeledtrigger added previously. That workflow has no label check, so the trigger only spawned parallel smoke-test runs racing on thebun.lockpush.Test plan
patchlabel (notminorormajor).🤖 Generated with Claude Code