Skip to content

Commit 1174ea6

Browse files
authored
ci(supplement): auto comment tutorial (#2591)
1 parent f4a30de commit 1174ea6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/pr-labeled.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PR Labeled
2+
3+
on:
4+
pull_request_target:
5+
types: [labeled]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
issue-labeled:
12+
permissions:
13+
pull-requests: write # for actions-cool/issues-helper to update PRs
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: supplement
17+
if: github.event.label.name == 'supplement'
18+
uses: actions-cool/issues-helper@v3
19+
with:
20+
actions: "create-comment"
21+
token: ${{ secrets.DOOCS_BOT_ACTION_TOKEN }}
22+
issue-number: ${{ github.event.pull_request.number }}
23+
body: |
24+
@${{ github.event.pull_request.user.login }}, Please add the missing README_EN.md / README.md, please refer to the details for https://github.com/doocs/leetcode/pull/2590/files
25+
26+
@${{ github.event.pull_request.user.login }}, 请补充缺少的 README_EN.md / README.md, 详情参考 https://github.com/doocs/leetcode/pull/2590/files

0 commit comments

Comments
 (0)