Skip to content

Commit 7f9ceda

Browse files
author
Mikachu2333
authored
Merge branch 'dev' into feat/support_upper
2 parents 2a6f023 + e500140 commit 7f9ceda

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.github/workflows/PR-notify.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Contributors : Nul None <[email protected]>
55
# |
66
# Created On : <2025-06-19>
7-
# Last Modified : <2025-06-28>
7+
# Last Modified : <2025-08-07>
88
#
99
# Notify PR
1010
# ---------------------------------------------------------------
@@ -40,15 +40,27 @@ jobs:
4040
welcome:
4141
name: 欢迎PR者
4242
runs-on: ubuntu-latest
43-
if: github.event.pull_request.base.ref == 'dev'
43+
# 仅在 opened 时欢迎,其他情况都不再重复欢迎了
44+
if: github.event.pull_request.base.ref == 'dev' && github.event.action == 'opened'
4445
steps:
45-
- name: 评论
46+
- name: 查看 GitHub Actions 环境
47+
run: |
48+
echo "Event 类型: ${{ github.event.action }}"
49+
echo "Event 名: ${{ github.event_name }}"
50+
51+
- name: 对 PR 描述点赞
52+
uses: peter-evans/create-or-update-comment@v4
53+
with:
54+
issue-number: ${{ github.event.pull_request.number }}
55+
body: '' # 空body,只添加reaction
56+
reactions: '+1'
57+
58+
- name: 添加评论欢迎 PRer
4659
uses: peter-evans/create-or-update-comment@v4
4760
with:
4861
issue-number: ${{ github.event.pull_request.number }}
4962
body: |
50-
Hi @${{github.event.pull_request.user.login}},
63+
Hi @${{github.event.pull_request.user.login}}
5164
52-
❤️ 感谢你的贡献!我们将在5天内阅读此 PR 并回复你
65+
❤️ 感谢你的贡献!我们将在最少半小时,最多5天内阅读此 PR 并回复你
5366
edit-mode: replace
54-
reactions: heart

0 commit comments

Comments
 (0)