Skip to content

Add workflow for auto-merging Dependabot pull requests#123

Merged
mahata merged 3 commits intomainfrom
feat/auto-merge
Mar 25, 2026
Merged

Add workflow for auto-merging Dependabot pull requests#123
mahata merged 3 commits intomainfrom
feat/auto-merge

Conversation

@mahata
Copy link
Copy Markdown
Owner

@mahata mahata commented Mar 25, 2026

Implement a GitHub Actions workflow that automatically approves and merges Dependabot pull requests, excluding major version updates.

Copilot AI review requested due to automatic review settings March 25, 2026 12:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 Dependabot pull requests while skipping semver-major updates.

Changes:

  • Introduces a pull_request_target workflow gated to Dependabot PRs.
  • Fetches Dependabot metadata to detect update type and skip major bumps.
  • Uses gh CLI to approve the PR and enable auto-merge (squash).

Comment thread .github/workflows/dependabot-auto-merge.yml Outdated
Comment thread .github/workflows/dependabot-auto-merge.yml Outdated
Comment thread .github/workflows/dependabot-auto-merge.yml
mahata and others added 2 commits March 25, 2026 22:39
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mahata mahata merged commit 19b2f77 into main Mar 25, 2026
2 checks passed
@mahata mahata deleted the feat/auto-merge branch March 25, 2026 13:54
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