Skip to content

Commit 9b4bcf7

Browse files
authored
chore: issue help (#250)
* chore: issue help * chore: issue help
1 parent 9d7d87e commit 9b4bcf7

File tree

6 files changed

+76
-63
lines changed

6 files changed

+76
-63
lines changed

.github/auto-comment.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/auto_assign.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/auto-assign.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/gitleaks.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: gitleaks
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
gitleaks:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: wget
11+
uses: wei/wget@v1
12+
with:
13+
args: -O .gitleaks.toml https://raw.githubusercontent.com/ycjcl868/gitleaks/master/.gitleaks.toml
14+
- name: gitleaks-action
15+
uses: gitleaks/gitleaks-action@v1.6.0
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Issue Close Require
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
close-issues:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: need reproduce
12+
uses: actions-cool/issues-helper@v3
13+
with:
14+
actions: 'close-issues'
15+
labels: '🤔 Need Reproduce'
16+
inactive-day: 3
17+
18+
- name: needs more info
19+
uses: actions-cool/issues-helper@v3
20+
with:
21+
actions: 'close-issues'
22+
labels: 'needs more info'
23+
inactive-day: 7
24+
body: |
25+
Since the issue was labeled with `needs more info`, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
26+
由于该 issue 被标记为需要更多信息,却 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

.github/workflows/issue-reply.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Issue Reply
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
jobs:
8+
reply-helper:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: help wanted
12+
if: github.event.label.name == 'help wanted'
13+
uses: actions-cool/issues-helper@v3
14+
with:
15+
actions: 'create-comment'
16+
issue-number: ${{ github.event.issue.number }}
17+
body: |
18+
Hello @${{ github.event.issue.user.login }}. We totally like your proposal/feedback, welcome to [send us a Pull Request](https://help.github.com/en/articles/creating-a-pull-request) for it. Please send your Pull Request to proper branch (feature branch for the new feature, master for bugfix and other changes), fill the [Pull Request Template](https://github.com/alibaba/hooks/blob/master/.github/PULL_REQUEST_TEMPLATE.md) here, provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!
19+
20+
你好 @${{ github.event.issue.user.login }},我们完全同意你的提议/反馈,欢迎直接在此仓库 [创建一个 Pull Request](https://help.github.com/en/articles/creating-a-pull-request) 来解决这个问题。请将 Pull Request 发到正确的分支(新特性发到 feature 分支,其他发到 master 分支),务必填写 Pull Request 内的[预设模板](https://github.com/alibaba/hooks/blob/master/.github/PULL_REQUEST_TEMPLATE.md),提供改动所需相应的 changelog、TypeScript 定义、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。
21+
22+
![giphy](https://user-images.githubusercontent.com/507615/62342668-4735dc00-b51a-11e9-92a7-d46fbb1cc0c7.gif)
23+
24+
- name: 🤔 Need Reproduce
25+
if: github.event.label.name == '🤔 Need Reproduce'
26+
uses: actions-cool/issues-helper@v3
27+
with:
28+
actions: 'create-comment'
29+
issue-number: ${{ github.event.issue.number }}
30+
body: |
31+
Hello @${{ github.event.issue.user.login }}. Please provide a online reproduction by forking this link https://codesandbox.io/p/devbox/vue-hooks-plus-reproduction-dm8h76 or a minimal GitHub repository. Issues labeled by `Need Reproduce` will be closed if no activities in 3 days.
32+
33+
你好 @${{ github.event.issue.user.login }}, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 [此处](https://codesandbox.io/p/devbox/vue-hooks-plus-reproduction-dm8h76) 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。
34+
35+
![](https://gw.alipayobjects.com/zos/antfincdn/y9kwg7DVCd/reproduce.gif)

0 commit comments

Comments
 (0)