chore: Add auto merge action (#28167)

* feat: Add auto merge action

* clean up

* add check suite

* auto merge without label

* rollback
This commit is contained in:
二货机器人 2020-12-03 16:49:20 +08:00 committed by GitHub
parent 273ab186da
commit 3dace91da2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
.github/workflows/label-merge.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Automatic Merge by label
on:
pull_request:
types:
- labeled
jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == 'ant-design/ant-design' && (github.event.pull_request.head.ref == 'master' || github.event.pull_request.head.ref == 'feature')
steps:
- name: automerge
uses: "pascalgn/automerge-action@v0.12.0"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: "BranchAutoMerge"
MERGE_REMOVE_LABELS: "BranchAutoMerge"