Files
hi-frontend/.github/workflows/auto-merge.yml
T
shanshanzhong147 14d4c5f36f
PR Check / Lint, Check, Test and Build (push) Has been cancelled
Build and Release / Build (push) Has been cancelled
配置(#54): 前端 PR 质量门禁与 auto-merge 安全加固
2026-05-25 22:08:48 -07:00

30 lines
789 B
YAML

name: Dependabot Auto Merge
on:
pull_request_target:
types: [opened, reopened, synchronize, ready_for_review, labeled]
permissions:
contents: write
pull-requests: write
concurrency:
group: dependabot-auto-merge-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
merge:
if: >
github.actor == 'dependabot[bot]' &&
github.event.pull_request.user.login == 'dependabot[bot]' &&
contains(github.event.pull_request.labels.*.name, 'dependencies')
name: Dependabot Auto Merge
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Enable auto-merge
env:
GH_TOKEN: ${{ github.token }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: gh pr merge "$PR_URL" --auto --merge