File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ # ---------------------------------------------------------------
2+ # Workflow File : PR-notify.yml
3+ # File Authors : Aoran Zeng <[email protected] >4+ # Contributors : Nul None <[email protected] >5+ # |
6+ # Created On : <2025-06-19>
7+ # Last Modified : <2025-06-19>
8+ #
9+ # Notify PR
10+ # ---------------------------------------------------------------
11+
12+ name : 告知PR者
13+
14+ on :
15+ pull_request_target :
16+ types : [opened,
17+ ready_for_review, # draft PR 转为正式 PR
18+ review_requested,
19+ reopened]
20+
21+ jobs :
22+ enforce-dev-branch :
23+ name : 强制使用dev分支
24+ runs-on : ubuntu-latest
25+ if : github.event.pull_request_target.base.ref != 'dev'
26+ steps :
27+ - name : 评论
28+ uses : thollander/actions-comment-pull-request@v3
29+ with :
30+ message : |
31+ ❤️ 感谢你的贡献!但请修改使用 dev 分支!
32+ comment_includes : " ❤️ 感谢你的贡献!"
33+ - run : |
34+ echo "::error::❌ Pull Request 必须以 dev 分支为目标!当前是 ${GITHUB_BASE_REF}"
35+ exit 1
36+
37+ welcome :
38+ name : 欢迎PR者
39+ runs-on : ubuntu-latest
40+ if : github.event.pull_request_target.base.ref == 'dev'
41+ steps :
42+ - name : 评论
43+ if : github.event.pull_request.type == 'opened'
44+ uses : peter-evans/create-or-update-comment@v4
45+ with :
46+ issue-number : ${{ github.event.pull_request.number }}
47+ body : |
48+ ❤️ 感谢你的贡献!我们将在5天内阅读该PR并回复你
49+ edit-mode : replace
50+ reactions : heart
You can’t perform that action at this time.
0 commit comments