Skip to content

Commit

Permalink
ci: add pr-check-merge (#30650)
Browse files Browse the repository at this point in the history
* ci: add pr-check-merge

* Update pr-check-merge.yml
  • Loading branch information
xrkffgg committed May 24, 2021
1 parent 352c560 commit 4af786a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pr-check-merge.yml
Original file line number Diff line number Diff line change
@@ -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`**。

0 comments on commit 4af786a

Please sign in to comment.