-
Notifications
You must be signed in to change notification settings - Fork 21
35 lines (35 loc) · 984 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: automerge
on:
pull_request:
types:
- labeled
check_suite:
types:
- completed
status: {}
jobs:
auto-approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: github.event.label.name == 'automerge' && github.event.sender.login == 'broadbot'
steps:
- uses: "hmarr/auto-approve-action@v3"
with:
review-message: "This PR was automatically approved"
automerge:
runs-on: ubuntu-latest
needs: auto-approve
steps:
- name: automerge
uses: "broadinstitute/automerge-action@v0.12.0"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_METHOD: squash
MERGE_FORKS: false
MERGE_RETRIES: 180 # Retry for 3 hours
MERGE_RETRY_SLEEP: 60000 # 60 seconds
UPDATE_METHOD: rebase
UPDATE_RETRIES: 180 # Retry for 3 hours
UPDATE_RETRY_SLEEP: 60000 # 60 seconds
MERGE_REQUIRED_APPROVALS: 0