-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
38 lines (32 loc) · 1.63 KB
/
pr-labeled.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: PR Labeled
on:
pull_request_target:
types: [labeled]
permissions:
contents: read
jobs:
issue-labeled:
permissions:
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: supplement
if: github.event.label.name == 'supplement'
uses: actions-cool/issues-helper@v3
with:
actions: "create-comment"
token: ${{ secrets.DOOCS_BOT_ACTION_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body: |
@${{ 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
@${{ github.event.pull_request.user.login }}, 请补充缺少的 README_EN.md / README.md, 详情参考 https://github.com/doocs/leetcode/pull/2590/files
- name: invalid
if: github.event.label.name == 'invalid'
uses: actions-cool/issues-helper@v3
with:
actions: "create-comment"
token: ${{ secrets.DOOCS_BOT_ACTION_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body: |
@${{ github.event.pull_request.user.login }}, Please refer to the project specifications provided by bot to check your PR. For PRs that have not been modified for a long time, we will close them and you are welcome to resubmit or correct them.
@${{ github.event.pull_request.user.login }}, 请参考 bot 提供的项目规范检查你的 PR,我们会关闭长时间未修改的 PR,欢迎你重新提交或更正。