Skip to content

Label bot PRs skip-changelog #28

Label bot PRs skip-changelog

Label bot PRs skip-changelog #28

name: Dependabot auto-merge
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]' }}
steps:
- name: Label bot PRs
run: gh pr edit --add-label "ci,skip-changelog" ${{ github.event.pull_request.html_url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Auto-approve
uses: hmarr/auto-approve-action@v4
- name: Enable auto-merge
run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}