-
Notifications
You must be signed in to change notification settings - Fork 156
39 lines (33 loc) · 1.81 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
39
name: PR Labeled
on:
pull_request_target:
types: [labeled]
permissions:
contents: read
jobs:
issue-labeled:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: Need Changelog
if: github.event.label.name == 'Need Changelog'
uses: actions-cool/issues-helper@v3
with:
actions: "create-comment"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body: |
@${{ github.event.pull_request.user.login }} You can run the ```pnpm changeset``` command locally to generate a changelog. Please refer to the operation precautions. https://web3.ant.design/guide/changelog
@${{ github.event.pull_request.user.login }} 可以在本地运行 ```pnpm changeset``` 命令生成 changelog, 操作注意事项参考:https://web3.ant.design/guide/changelog-cn
- name: How to Contribute Icons
if: github.event.label.name == 'Generate Icons'
uses: actions-cool/issues-helper@v3
with:
actions: "create-comment"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body: |
@${{ github.event.pull_request.user.login }} For unified management of icons and a better development experience, we do not recommend adding icons manually. Please refer to the operation precautions. https://web3.ant.design/guide/contribute-icons
@${{ github.event.pull_request.user.login }} 为了 Icon 的统一管理和更好的开发体验,我们不建议手动添加 icon, 请参考以下指引添加新的 icon:https://web3.ant.design/guide/contribute-icons-cn