Skip to content

CI: Auto-merge Sourcery AI bot PRs #1

CI: Auto-merge Sourcery AI bot PRs

CI: Auto-merge Sourcery AI bot PRs #1

name: Auto-merge Sourcery AI Bot PRs
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: write
env:
GH_TOKEN: ${{ secrets.USER_TOKEN }}
jobs:
merge-sourcery-pr:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'sourcery-ai[bot]'
steps:
- name: Merge Pull Request
run: |
gh pr merge "${{ github.event.pull_request.number }}" \
--squash \
--auto \
--delete-branch \
--repo "${{ github.repository }}"