-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
33 lines (33 loc) · 1.02 KB
/
automerge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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'