Skip to content

Commit b003797

Browse files
authored
ci: create pr labeled
1 parent a448e57 commit b003797

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/pr-labeled.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: PR Labeled
2+
3+
on:
4+
pull_request_target:
5+
types: [labeled]
6+
7+
jobs:
8+
reply:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Usage
12+
if: github.event.label.name == 'Usage'
13+
uses: actions-cool/[email protected]
14+
with:
15+
actions: 'create-comment, close-issue'
16+
issue-number: ${{ github.event.pull_request.number }}
17+
body: |
18+
Hello @${{ github.event.issue.user.login }}, we use GitHub PR to build and perfect of Ant Design Vue. So, please don't ask usage questions here. You can try to open a new discussion in [antdv discussions](https://github.com/vueComponent/ant-design-vue/discussions), select `Q&A` to ask questions, also can ask questions on [Stack Overflow](http://stackoverflow.com/questions/) or [Segment Fault](https://segmentfault.com).
19+
20+
你好 @${{ github.event.issue.user.login }},Ant Design Vue PR 是用于建设、完善项目的地方。请勿询问如何使用的问题,你可以试着在 [antdv discussions](https://github.com/vueComponent/ant-design-vue/discussions) 新开一个 discussion,选择 `Q&A` 类别进行提问,也可以在 [Stack Overflow](http://stackoverflow.com/questions/) 或者 [Segment Fault](https://segmentfault.com/) 中提问。

0 commit comments

Comments
 (0)