Skip to content

meta: automatically update PRs that have auto merge enabled #13

meta: automatically update PRs that have auto merge enabled

meta: automatically update PRs that have auto merge enabled #13

Workflow file for this run

name: Automerge PR
on:
pull_request:
types:
- labeled
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
- dismissed
check_suite:
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
automerge:
# restrict the review events that trigger this workflow as all review replies count as pull_request_review
if: ${{ !github.event.review || (github.event.review.state == 'APPROVED' || github.event.review.state == 'DISMISSED') }}
runs-on: ubuntu-latest
steps:
- name: automerge
uses: "pascalgn/automerge-action@58724c982461efbb7865b3762d7bff0d4756f57a" # v0.16.2
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_METHOD: 'squash'
MERGE_COMMIT_MESSAGE: "pull-request-title-and-description"
MERGE_COMMIT_MESSAGE_REGEX: '`\\[BREAKING CHANGES START]`'
MERGE_DELETE_BRANCH: 'true'
MERGE_RETRIES: '0'