generated from pabio/github-actions-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 952 Bytes
/
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
34
35
name: Merge PRs
on:
pull_request:
types:
- labeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: Automerge
uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GH_PAT }}"
MERGE_LABELS: "merge,!work in progress,!wip"
MERGE_REMOVE_LABELS: "merge"
MERGE_METHOD: "merge"
MERGE_COMMIT_MESSAGE: ":twisted_rightwards_arrows: Merge #{pullRequest.number} ({pullRequest.title})"
MERGE_FORKS: false
UPDATE_LABELS: "merge"
UPDATE_METHOD: "merge"
- name: Delete merged branch
uses: koj-co/delete-merged-action@master
with:
branches: "!master, !production, *"
env:
GITHUB_TOKEN: "${{ secrets.GH_PAT }}"