mirror of
https://github.com/imjasonh/govulncheck-action
synced 2026-07-08 08:45:48 +00:00
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>
18 lines
No EOL
424 B
YAML
18 lines
No EOL
424 B
YAML
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}} |