Skip to content

fix(ci): repair Dependabot auto-merge workflow - #34

Merged
sozercan merged 2 commits into
mainfrom
fix/dependabot-auto-merge
Aug 2, 2026
Merged

fix(ci): repair Dependabot auto-merge workflow#34
sozercan merged 2 commits into
mainfrom
fix/dependabot-auto-merge

Conversation

@sozercan

@sozercan sozercan commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • replace unsupported gh pr checks JSON fields with the supported workflow and bucket fields
  • wait for every non-auto-merge check to finish and reject failed or cancelled checks
  • remove the unnecessary approval command, which repository Actions settings do not permit
  • identify Dependabot PRs by author and branch prefix rather than the event actor
  • cancel stale per-PR workflow runs and require the merged head SHA to match the commit that was checked

Root cause

The workflow requested the unsupported status and conclusion fields from gh pr checks. GitHub CLI exited during argument validation, so the polling loop never ran and the merge step was always skipped. After correcting that query, the subsequent gh pr review --approve command would also have failed because Actions is not allowed to approve pull requests in this repository.

Impact

Dependabot PRs with successful CI can be merged automatically again. Stale runs cannot merge a newer, untested revision of a PR.

Validation

Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Copilot AI balanced review requested due to automatic review settings August 2, 2026 21:13

Copilot AI 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.

Pull request overview

Repairs Dependabot auto-merging while preventing stale workflow runs from merging untested revisions.

Changes:

  • Corrects CI-check polling and failure handling.
  • Detects Dependabot PRs reliably and cancels stale runs.
  • Removes approval and verifies the checked head SHA before merging.
Show a summary per file
File Description
.github/workflows/auto-merge.yml Updates Dependabot validation, check polling, concurrency, and merge safeguards.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread .github/workflows/auto-merge.yml Outdated

@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: 139712b26c

ℹ️ 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/auto-merge.yml Outdated
Comment thread .github/workflows/auto-merge.yml
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>

sozercan commented Aug 2, 2026

Copy link
Copy Markdown
Owner Author

@codex review

Copilot AI 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.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 06b1fc5b07

ℹ️ 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".

@sozercan
sozercan merged commit 8e3ed7e into main Aug 2, 2026
9 checks passed
@sozercan
sozercan deleted the fix/dependabot-auto-merge branch August 2, 2026 21:55
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.

2 participants