File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed
Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments