Skip to content

Commit a6c1b4b

Browse files
committed
ci(issue): add issue helper
1 parent bbd7295 commit a6c1b4b

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

.github/workflows/auto-reply.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Auto Reply
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
pull_request:
7+
types: [opened, closed]
8+
9+
jobs:
10+
auto-reply:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Auto-reply
14+
uses: wow-actions/auto-comment@v1
15+
with:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
issuesOpened: |
18+
👋 @{{ author }}, Thanks for submitting your issue. We'll look into it and keep you updated on our progress. Let us know if you have any questions.
19+
pullRequestOpened: |
20+
👋 @{{ author }}, Thanks for opening the PR. We'll review your PR as soon as possible.
21+
pullRequestMerged: |
22+
🎉 @{{ author }}, The PR is merged. Thanks for your contribution.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Issue Helper
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/[email protected]
14+
with:
15+
actions: 'create-comment'
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
issue-number: ${{ github.event.issue.number }}
18+
body: |
19+
👋 @${{ github.event.issue.user.login }}. We totally like your proposal/feedback, welcome PR。
20+
21+
- name: need reproduce
22+
if: github.event.label.name == 'need reproduce'
23+
uses: actions-cool/[email protected]
24+
with:
25+
actions: 'create-comment'
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
issue-number: ${{ github.event.issue.number }}
28+
body: |
29+
👋 @${{ github.event.issue.user.login }}. Thank you for reporting this issue. In order for us to address it effectively, could you please provide a minimal reproducible demo or step? This will help us better understand the problem and work towards a solution. Thank you!

.github/workflows/issue-inactive.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Issue Check Inactive
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 1 * *"
6+
7+
jobs:
8+
check-inactive:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: check-inactive
12+
uses: actions-cool/issues-helper@v2
13+
with:
14+
actions: 'check-inactive'
15+
inactive-day: 90

0 commit comments

Comments
 (0)