Skip to content

ci: auto-merge minor and patch Dependabot updates - #151

Merged
polaz merged 3 commits into
mainfrom
ci/#150-dependabot-auto-merge
Oct 19, 2026
Merged

polaz merged 3 commits into
mainfrom
ci/#150-dependabot-auto-merge

Conversation

@polaz

@polaz polaz commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Dependabot pull requests stayed open after CI passed (e.g. #146) because nothing enabled auto-merge. This adds the dependabot-auto-merge.yml workflow the other structured-world repositories use:

  • On a Dependabot pull request with a semver-minor or semver-patch update, it approves the inspected head and enables squash auto-merge with --match-head-commit, so the merge waits for the required checks and refuses a moved head.
  • A push to the branch by anyone else disarms auto-merge. A manual rerun keeps the original event's role: a rerun of a foreign push disarms again, a rerun of a Dependabot run retries the approval. Reopening an unchanged pull request arms it again.
  • Auto-merge is enabled only while the pull request is Dependabot's single commit, so one carrying someone else's commits is left for manual review.
  • Major updates are left for manual review.
  • It runs on pull_request_target (Dependabot pull_request runs get no Actions secrets) and never checks out pull request code; third-party actions are pinned to commit SHAs. The token comes from the organisation's release App (RELEASER_APP_*, already used by release-plz).

Testing

pull_request_target runs the workflow from the base branch, so it takes effect only after this is merged. Already-open Dependabot pull requests pick it up on their next event (a rebase or @dependabot rebase).

Closes #150

- approve and enable squash auto-merge on Dependabot pull requests
  for semver-minor and semver-patch updates, bound to the inspected head
- a push by anyone else disarms auto-merge; major updates stay manual
- runs on pull_request_target without checking out pull request code,
  with the organisation's release App token

Closes #150
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: a178d373-cb57-44be-abb5-0dd373bbacc9
📥 Commits

Reviewing files that changed from the base of the PR and between 48df816 and 016ae8f.

📒 Files selected for processing: 1
  • .github/workflows/dependabot-auto-merge.yml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T09:19:25.247388Z 7699950 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0b2e122adc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/dependabot-auto-merge.yml Outdated
@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[High impact] No identified issues block merging this change.

Summary

Updates the Dependabot auto-merge workflow:

  • Minor and patch Dependabot updates are approved and queued for squash merge.
  • A non-Dependabot push can disarm an update’s queued merge.

No actionable issues were established. No blocking findings remain.

Reviews (3) · Last reviewed commit: "ci: key Dependabot auto-merge on the eve..." · Reviewed by Greptile

A manual "Re-run jobs" keeps the actor as Dependabot but makes the
maintainer the triggering actor, so the metadata step was skipped and
the rerun approved nothing. A later attempt of a run Dependabot caused
now runs it too; --match-head-commit still refuses a moved head.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 016ae8f4df

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/dependabot-auto-merge.yml Outdated
Comment thread .github/workflows/dependabot-auto-merge.yml
Comment thread .github/workflows/dependabot-auto-merge.yml Outdated
- disarm only on a synchronize event caused by someone else; a rerun
  keeps the original actor, so a failed disarm can be retried and a
  rerun of a Dependabot run never disarms
- a reopened pull request goes through the metadata check and is armed
  again
- arm only while the pull request is a single commit: fetch-metadata
  verifies the first commit alone, so one carrying someone else's
  commits is left for manual review
- note why the App token needs no workflows permission
@polaz
polaz enabled auto-merge (squash) October 19, 2026 09:17
@polaz
polaz merged commit a21b257 into main Oct 19, 2026
10 checks passed
@polaz
polaz deleted the ci/#150-dependabot-auto-merge branch October 19, 2026 09:38
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.

ci: auto-merge minor and patch Dependabot updates

1 participant