ci: add pr-check-merge (#30650)

* ci: add pr-check-merge

* Update pr-check-merge.yml
This commit is contained in:
xrkffgg 2021-05-24 21:42:51 +08:00 committed by GitHub
parent 352c560f9a
commit 4af786a203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
.github/workflows/pr-check-merge.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: PR Check Merge
on:
pull_request_target:
types: [opened]
jobs:
comment:
runs-on: ubuntu-latest
if: (github.event.pull_request.head.ref == 'feature' && github.event.pull_request.base.ref == 'master') || (github.event.pull_request.base.ref == 'feature' && github.event.pull_request.head.ref == 'master')
steps:
- uses: actions-cool/issues-helper@v2.2.1
with:
actions: 'create-comment'
issue-number: ${{ github.event.number }}
body: |
Hi @${{ github.event.pull_request.user.login }}。
**请注意**,当前 PR 是分支间的互相合并,请使用 `BranchAutoMerge` 标签来进行自动合并。切记**不要、不要、不要使用 `Squash`**。