-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0dd76e7
commit f0c9f3b
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: automerge | ||
on: | ||
pull_request_target: | ||
types: | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
- opened | ||
- edited | ||
- ready_for_review | ||
- reopened | ||
- unlocked | ||
pull_request_review: | ||
types: | ||
- submitted | ||
check_suite: | ||
types: | ||
- completed | ||
status: {} | ||
jobs: | ||
automerge: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: automerge | ||
uses: "JakeChampion/automerge-action@e2f6d39bda" | ||
env: | ||
MERGE_LABELS: "" | ||
MERGE_METHOD: "merge" | ||
MERGE_METHOD_LABELS: "automerge=merge,autosquash=squash" | ||
MERGE_METHOD_LABEL_REQUIRED: "true" | ||
# Will automatically update the head branch with | ||
# base branch changes | ||
# At the moment, it needs to be a separate label | ||
UPDATE_LABELS: "autoupdate" | ||
# This is OK because weaveworksbot only has write permissions | ||
# if it were an admin, it might override the checks/reviews | ||
# see pascalgn/automerge-action#65 | ||
GITHUB_TOKEN: "${{ secrets.WEAVEWORKSBOT_TOKEN }}" |