Add Dependabot auto-merge workflow#229
Conversation
There was a problem hiding this comment.
Pull Request Overview
Adds a GitHub Actions workflow to automatically approve and merge Dependabot pull requests using a merge commit for clean history.
- Introduces a new workflow file auto-dependabot.yaml.
- Configures a job gated by actor check for dependabot[bot].
- Uses a third-party action to auto-approve and merge PRs with merge-method set to merge.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
The workflow relies on GITHUB_TOKEN to approve and merge, but no explicit permissions block is set; GitHub defaults may be read-only and cause the action to fail. Add a top-level permissions section: permissions: contents: write, pull-requests: write to ensure the action can approve and merge.
There was a problem hiding this comment.
[nitpick] This configuration will auto-merge every Dependabot PR regardless of update type (major/minor/patch), which can introduce breaking changes automatically. Consider adding logic (e.g., fetch metadata action + conditional) to restrict merges to patch/minor versions only.
|
|
||
| on: | ||
| pull_request: | ||
|
|
There was a problem hiding this comment.
[nitpick] Triggering on all pull_request event types can create unnecessary workflow runs; specify types (e.g., types: [opened, synchronize, reopened]) to reduce redundant executions.
| types: [opened, synchronize, reopened] |
7302d94 to
2798df9
Compare
2798df9 to
e05eeda
Compare
e05eeda to
7b92c62
Compare
Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
7b92c62 to
209adc2
Compare
Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
Summary
mergemethod for clean commit history