generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 43
29 lines (28 loc) · 917 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
name: Auto merge
on:
pull_request:
branches:
master
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}
jobs:
# Automatically merge approved and green dependabot PRs.
auto-merge-dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
steps:
- uses: pascalgn/automerge-action@v0.16.4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: "dependencies"
MERGE_METHOD: "squash" # Sqush and merge
MERGE_COMMIT_MESSAGE: "pull-request-title-and-description"
MERGE_RETRY_SLEEP: "1200000" # Retry after 20m, enough time for check suites to run
UPDATE_RETRIES: "6"
UPDATE_METHOD: "rebase" # Rebase PR on base branch
UPDATE_RETRY_SLEEP: "300000"