Skip to content

ci: merge Dependabot PRs only at the checked commit - #192

Merged
Mzack9999 merged 1 commit into
mainfrom
dwisiswant0/ci/merge-dependabot-prs-only-at-the-checked-commit
Nov 21, 2026
Merged

Mzack9999 merged 1 commit into
mainfrom
dwisiswant0/ci/merge-dependabot-prs-only-at-the-checked-commit

Conversation

@dwisiswant0

@dwisiswant0 dwisiswant0 commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

auto-merge.yaml ran when the compatibility checks completed and merged
the pull request's head as it was at that moment, so a commit pushed to
a Dependabot branch after the checks started could merge unchecked.

Replace compat-checks.yaml and auto-merge.yaml with one caller of the
reusable dependabot-auto-merge workflow from projectdiscovery/workflows.
It runs the same compatibility checks on the pull request's head commit
and merges only that commit; when the head has moved, the merge fails
and the pull request stays open.

When go.mod is out of sync, the checks now fail instead of pushing a go
mod tidy commit to the Dependabot branch. No Dependabot pull request
merged since compat-checks.yaml was added needed that commit.

Closes: #194
Refs: projectdiscovery/workflows#10

auto-merge.yaml ran when the compatibility checks completed and merged
the pull request's head as it was at that moment, so a commit pushed to
a Dependabot branch after the checks started could merge unchecked.

Replace compat-checks.yaml and auto-merge.yaml with one caller of the
reusable dependabot-auto-merge workflow from projectdiscovery/workflows.
It runs the same compatibility checks on the pull request's head commit
and merges only that commit; when the head has moved, the merge fails
and the pull request stays open.

When go.mod is out of sync, the checks now fail instead of pushing a go
mod tidy commit to the Dependabot branch. No Dependabot pull request
merged since compat-checks.yaml was added needed that commit.

Closes: #194
Refs: projectdiscovery/workflows#10
Signed-off-by: Dwi Siswanto <git@dw1.io>
@dwisiswant0
dwisiswant0 force-pushed the dwisiswant0/ci/merge-dependabot-prs-only-at-the-checked-commit branch from f8e8857 to 6e17797 Compare November 20, 2026 19:43
@Mzack9999
Mzack9999 merged commit 8e8b532 into main Nov 21, 2026
8 checks passed
@Mzack9999
Mzack9999 deleted the dwisiswant0/ci/merge-dependabot-prs-only-at-the-checked-commit branch November 21, 2026 16:47
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.

Merge Dependabot PRs only at the commit the compatibility checks passed

2 participants