Skip to content

ci: add auto-merge workflow for dependency PRs - #51

Merged
CybotTM merged 1 commit into
mainfrom
chore/add-auto-merge
Mar 30, 2026
Merged

ci: add auto-merge workflow for dependency PRs#51
CybotTM merged 1 commit into
mainfrom
chore/add-auto-merge

Conversation

@CybotTM

@CybotTM CybotTM commented Mar 30, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds .github/workflows/auto-merge-deps.yml to automatically approve and merge dependency update PRs from dependabot[bot] and renovate[bot]
  • Detects the repo's preferred merge strategy (squash/merge/rebase) at runtime
  • Uses pull_request_target to ensure the workflow has write permissions even for fork-based dependency PRs

Test plan

  • Verify workflow triggers on the next Dependabot or Renovate PR
  • Confirm the PR is approved and auto-merge is enabled automatically

@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@CybotTM
CybotTM requested a review from Copilot March 30, 2026 10:05
@CybotTM
CybotTM merged commit 4640005 into main Mar 30, 2026
14 checks passed
@CybotTM
CybotTM deleted the chore/add-auto-merge branch March 30, 2026 10:07

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

Adds a GitHub Actions workflow to automatically approve and enable auto-merge for dependency update pull requests created by Dependabot and Renovate.

Changes:

  • Introduce .github/workflows/auto-merge-deps.yml to auto-approve and enable auto-merge for PRs authored by dependabot[bot] and renovate[bot].
  • Determine a merge method at runtime via the GitHub API and pass it to gh pr merge --auto.

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

Comment thread .github/workflows/auto-merge-deps.yml
Comment thread .github/workflows/auto-merge-deps.yml
Comment thread .github/workflows/auto-merge-deps.yml
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