mirror of
https://github.com/imjasonh/govulncheck-action
synced 2026-07-18 22:56:04 +00:00
Add Dependabot auto-merge workflow
This workflow automatically enables auto-merge for pull requests created by Dependabot, using squash merge strategy to maintain a clean commit history. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
294e12fa6f
commit
84fba33b7b
1 changed files with 18 additions and 0 deletions
18
.github/workflows/dependabot-auto-merge.yml
vendored
Normal file
18
.github/workflows/dependabot-auto-merge.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
name: Dependabot auto-merge
|
||||
|
||||
on: pull_request
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
dependabot:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Enable auto-merge for Dependabot PRs
|
||||
if: github.actor == 'dependabot[bot]'
|
||||
run: gh pr merge --auto --squash "$PR_URL"
|
||||
env:
|
||||
PR_URL: ${{github.event.pull_request.html_url}}
|
||||
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue