Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit cd51e27

Browse files
authored
Merge pull request #59 from aws-robotics/lucahan/add-auto-merge
Add automerge.yml config file
2 parents 88e6492 + 5b9456c commit cd51e27

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/automerge.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Auto merge
2+
3+
on:
4+
pull_request:
5+
branches:
6+
master
7+
pull_request_review:
8+
types:
9+
- submitted
10+
check_suite:
11+
types:
12+
- completed
13+
status: {}
14+
jobs:
15+
# Automatically merge approved and green dependabot PRs.
16+
auto-merge-dependabot:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: pascalgn/[email protected]
20+
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
21+
env:
22+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
23+
MERGE_LABELS: "dependencies"
24+
MERGE_METHOD: "squash" # Sqush and merge
25+
MERGE_COMMIT_MESSAGE: "pull-request-title-and-description"
26+
MERGE_RETRY_SLEEP: "1200000" # Retry after 20m, enough time for check suites to run
27+
UPDATE_RETRIES: "6"
28+
UPDATE_METHOD: "rebase" # Rebase PR on base branch
29+
UPDATE_RETRY_SLEEP: "300000"

0 commit comments

Comments
 (0)