Skip to content

Commit e97fd48

Browse files
committed
chore(github): add needs-reply workflows
1 parent 4617908 commit e97fd48

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/needs-reply.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Close old issues that need reply
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Close old issues that need reply
12+
uses: dwieeb/needs-reply@master
13+
with:
14+
repo-token: ${{ secrets.BOT_TOKEN }}
15+
close-message: |
16+
It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.
17+
18+
Have a great day!
19+
20+
Love,
21+
Ionitron 💙
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Remove needs-reply label
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Remove needs-reply label
13+
uses: octokit/request-action@v2.x
14+
continue-on-error: true
15+
with:
16+
route: DELETE /repos/:repository/issues/:issue/labels/:label
17+
repository: ${{ github.repository }}
18+
issue: ${{ github.event.issue.number }}
19+
label: needs-reply
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}

0 commit comments

Comments
 (0)