[skip ci] Add auto-merge action (#1908)

* [skip ci] Add auto-merge action

Signed-off-by: jinhai <hai.jin@zilliz.com>

* [skip ci] Update auto-merge action

Signed-off-by: jinhai <hai.jin@zilliz.com>

* [skip ci] Update auto-merge action

Signed-off-by: jinhai <hai.jin@zilliz.com>
pull/1917/head
Jin Hai 2020-04-11 17:00:22 +08:00 committed by GitHub
parent ad4645fce0
commit d0a01c4e59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 36 additions and 0 deletions

36
.github/workflows/automerge.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: automerge
on:
pull_request:
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: Merge pull requests
uses: pascalgn/automerge-action@v0.8.0
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: "automerge,!work in progress"
MERGE_REMOVE_LABELS: "automerge"
MERGE_METHOD: "squash"
MERGE_COMMIT_MESSAGE: "pull-request-description"
MERGE_FORKS: "true"
MERGE_RETRIES: "6"
MERGE_RETRY_SLEEP: "10000"
UPDATE_LABELS: ""
UPDATE_METHOD: "merge"