mirror of
https://gh.wpcy.net/https://github.com/verygoodplugins/mcp-freescout.git
synced 2026-07-18 18:09:49 +08:00
Some checks failed
CI / test (push) Failing after 0s
Security / CodeQL Analysis (push) Failing after 1s
Release Please / release-please (push) Failing after 2s
Release Please / npm-publish (push) Has been skipped
Release Please / mcp-registry-publish (push) Has been skipped
Release Please / announce (push) Has been skipped
Security / Dependency Audit (push) Successful in 7m8s
35 lines
940 B
YAML
35 lines
940 B
YAML
name: Dependabot auto-merge
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- ready_for_review
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
auto-merge:
|
|
if: github.event.pull_request.user.login == 'dependabot[bot]'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Fetch Dependabot metadata
|
|
id: meta
|
|
uses: dependabot/fetch-metadata@v2
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Approve and enable auto-merge
|
|
if: |
|
|
steps.meta.outputs.update-type != 'version-update:semver-major' ||
|
|
steps.meta.outputs.package-ecosystem == 'github_actions'
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
|
run: |
|
|
gh pr review --approve "$PR_URL" 2>/dev/null || true
|
|
gh pr merge --auto --squash "$PR_URL"
|