Skip to content

Add Dependabot auto-merge workflow#54

Merged
Pigbibi merged 1 commit into
mainfrom
chore/dependabot-auto-merge
May 18, 2026
Merged

Add Dependabot auto-merge workflow#54
Pigbibi merged 1 commit into
mainfrom
chore/dependabot-auto-merge

Conversation

@Pigbibi
Copy link
Copy Markdown
Collaborator

@Pigbibi Pigbibi commented May 18, 2026

Summary

  • add a workflow_run gate that merges successful Dependabot dependency PRs after CI passes
  • restrict auto-merge to Dependabot authors with the dependencies label
  • allow both current GitHub author logins seen for Dependabot: dependabot[bot] and app/dependabot

Verification

@Pigbibi Pigbibi merged commit df8c377 into main May 18, 2026
1 check passed
@Pigbibi Pigbibi deleted the chore/dependabot-auto-merge branch May 18, 2026 08:40
Copy link
Copy Markdown

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

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: 97be343c3f

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

GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
BRANCH_NAME="${{ github.event.workflow_run.head_branch }}"
PR_NUMBER=$(gh pr list --state open --head "${BRANCH_NAME}" --json number --jq '.[0].number // empty')
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Provide repo context before calling gh pr

gh pr list is executed without a checked-out repository and without --repo/GH_REPO, so on a fresh workflow_run runner this step can fail before any PR is resolved. GitHub CLI only lets you omit --repo when running inside a local Git repo with a GitHub remote; this workflow has no actions/checkout step, so the auto-merge path can fail for every run instead of merging Dependabot PRs.

Useful? React with 👍 / 👎.

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.

1 participant