Better notification for PR

This commit is contained in:
Aoran Zeng 2025-06-28 16:27:59 +08:00
parent 9f679383c8
commit 007465c996
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -29,7 +29,9 @@ jobs:
uses: thollander/actions-comment-pull-request@v3
with:
message: |
❤️ 感谢你的贡献!你的 PR 当前基于 ${{github.base_ref}} 分支,请修改使用 `dev` 分支!
Hi @${{github.event.pull_request.user.login}},
❤️ 感谢你的贡献!你的 PR 当前基于 `${{github.base_ref}}` 分支,请修改使用 `dev` 分支
comment-tag: "❤️ 感谢你的贡献!"
- run: |
echo "::error::❌ PR 必须以 dev 分支为目标!当前是 ${GITHUB_BASE_REF}"
@ -45,10 +47,8 @@ jobs:
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Hi @${{github.event.pull_request.user.login}},
❤️ 感谢你的贡献我们将在5天内阅读此 PR 并回复你
edit-mode: replace
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}}]"