Skip to content

fix(deps-dev): bump @semantic-release/github from 11.0.6 to 12.0.1 #142

fix(deps-dev): bump @semantic-release/github from 11.0.6 to 12.0.1

fix(deps-dev): bump @semantic-release/github from 11.0.6 to 12.0.1 #142

Workflow file for this run

name: Dependabot Auto-merge
on:
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
pull-requests: write
contents: write
checks: read
jobs:
dependabot-auto-merge:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Wait for status checks
uses: lewagon/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
check-name: 'Run Tests'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
allowed-conclusions: success
- name: Enable auto-merge for patch/minor updates
if: |
steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
steps.metadata.outputs.update-type == 'version-update:semver-minor'
run: |
gh pr merge --auto --squash "$PR_URL"
gh pr review "$PR_URL" --approve -b "✅ Auto-approving ${{ steps.metadata.outputs.update-type }} update after tests passed"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Label major updates
if: steps.metadata.outputs.update-type == 'version-update:semver-major'
run: |
gh pr comment "$PR_URL" --body "⚠️ Major update detected. Manual review required."
gh pr edit "$PR_URL" --add-label "requires-manual-qa"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}