ci(dependabot): comment on a major bump once, not on every push - #153
Merged
Conversation
The step had no event filter, so it ran on `synchronize` as well as `opened`, and Dependabot pushes a rebase moments after opening a pull request. Three of the five majors opened on 2026-09-01 carry the comment twice, and a long-lived pull request would collect one per rebase for as long as it stayed open. The auto-merge step above it stays on every event on purpose: `gh pr merge --auto` is idempotent, so re-running it re-arms a pull request whose auto-merge has been cleared.
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.
The major-bump comment step has no event filter, so it runs on every push Dependabot makes to a branch it has already opened, not only when the pull request opens. Three of the five major bumps opened on Sep 1 carry the comment twice, and one left open would collect another on each rebase. This limits the step to the opening event.
Closes #152.