Skip to content

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

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

Mzack9999 merged 1 commit into
devfrom
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. One Dependabot pull request
merged since compat-checks.yaml was added needed that commit (#6198).

Closes: #8217
Refs: projectdiscovery/workflows#10

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 2

  • .github/workflows/auto-merge.yaml is excluded by !**/*.yaml
  • .github/workflows/compat-checks.yaml is excluded by !**/*.yaml

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: dc718bb8-d4f9-4497-8c91-48b673eff53f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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. One Dependabot pull request
merged since compat-checks.yaml was added needed that commit (#6198).

Closes: #8217
Refs: projectdiscovery/workflows#10
Signed-off-by: Dwi Siswanto <[email protected]>
@dwisiswant0
dwisiswant0 force-pushed the dwisiswant0/ci/merge-dependabot-prs-only-at-the-checked-commit branch from 461d332 to 5492c9b Compare November 20, 2026 19:43
@Mzack9999
Mzack9999 merged commit 5e17cc6 into dev Nov 21, 2026
4 checks passed
@Mzack9999
Mzack9999 deleted the dwisiswant0/ci/merge-dependabot-prs-only-at-the-checked-commit branch November 21, 2026 16:46
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