Skip to content

fix: run Dependabot auto-merge from default branch - #68

Merged
Kingson4Wu merged 1 commit into
mainfrom
fix/dependabot-auto-merge-trigger
Jul 8, 2026
Merged

fix: run Dependabot auto-merge from default branch#68
Kingson4Wu merged 1 commit into
mainfrom
fix/dependabot-auto-merge-trigger

Conversation

@Kingson4Wu

@Kingson4Wu Kingson4Wu commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • switch the Dependabot auto-merge workflow from pull_request to pull_request_target
  • limit the trigger to opened, synchronized, and reopened PR events

Why
GitHub now sources pull_request_target workflows from the repository default branch, regardless of the PR base branch. Dependabot PRs targeting dev need this workflow to run from main so it can call gh pr merge --auto --squash and enable auto-merge after required checks pass.

Testing

  • workflow-only change; no runtime tests required

@Kingson4Wu
Kingson4Wu enabled auto-merge (squash) July 8, 2026 07:50
@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Kingson4Wu
Kingson4Wu merged commit 7e6c09f into main Jul 8, 2026
17 checks passed
@Kingson4Wu
Kingson4Wu deleted the fix/dependabot-auto-merge-trigger branch July 8, 2026 07:56
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