Skip to content

ci: Add auto-approve workflow for owner PRs without review #14

ci: Add auto-approve workflow for owner PRs without review

ci: Add auto-approve workflow for owner PRs without review #14

# Auto-enable squash merge for Dependabot PRs
# GitHub will automatically merge once all required checks pass
name: Dependabot Auto-merge
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Update branch if behind
run: gh pr update-branch --rebase "$PR_URL" || true
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}