mirror of
https://github.com/RubyMetric/chsrc
synced 2025-07-01 00:52:43 +08:00
Better notification for PR
This commit is contained in:
parent
9f679383c8
commit
007465c996
10
.github/workflows/PR-notify.yml
vendored
10
.github/workflows/PR-notify.yml
vendored
@ -29,7 +29,9 @@ jobs:
|
|||||||
uses: thollander/actions-comment-pull-request@v3
|
uses: thollander/actions-comment-pull-request@v3
|
||||||
with:
|
with:
|
||||||
message: |
|
message: |
|
||||||
❤️ 感谢你的贡献!你的 PR 当前基于 ${{github.base_ref}} 分支,请修改使用 `dev` 分支!
|
Hi @${{github.event.pull_request.user.login}},
|
||||||
|
|
||||||
|
❤️ 感谢你的贡献!你的 PR 当前基于 `${{github.base_ref}}` 分支,请修改使用 `dev` 分支
|
||||||
comment-tag: "❤️ 感谢你的贡献!"
|
comment-tag: "❤️ 感谢你的贡献!"
|
||||||
- run: |
|
- run: |
|
||||||
echo "::error::❌ PR 必须以 dev 分支为目标!当前是 ${GITHUB_BASE_REF}"
|
echo "::error::❌ PR 必须以 dev 分支为目标!当前是 ${GITHUB_BASE_REF}"
|
||||||
@ -45,10 +47,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
issue-number: ${{ github.event.pull_request.number }}
|
issue-number: ${{ github.event.pull_request.number }}
|
||||||
body: |
|
body: |
|
||||||
|
Hi @${{github.event.pull_request.user.login}},
|
||||||
|
|
||||||
❤️ 感谢你的贡献!我们将在5天内阅读此 PR 并回复你
|
❤️ 感谢你的贡献!我们将在5天内阅读此 PR 并回复你
|
||||||
edit-mode: replace
|
edit-mode: replace
|
||||||
reactions: heart
|
reactions: heart
|
||||||
- run: |
|
|
||||||
echo "github.event.pull_request.type = [${{github.event.pull_request.type}}]"
|
|
||||||
echo "github.event_name = [${{github.event_name}}]"
|
|
||||||
echo "github.event.action = [${{github.event.action}}]"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user