Skip to content

Commit b58a85a

Browse files
authored
Add a no response action to auto-close issues (#723)
Copied from https://github.com/flutter/flutter-intellij/blob/master/.github/workflows/no-response.yaml, which I created a few years ago. I added a new label `waiting for response`. Add that to an issue when asking for more info, and if there's no response in two weeks, it will be closed.
1 parent 2f450e2 commit b58a85a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/no-response.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: No Response
2+
3+
# Both `issue_comment` and `scheduled` event types are required for this Action
4+
# to work properly.
5+
on:
6+
issue_comment:
7+
types: [created]
8+
schedule:
9+
# Schedule for five minutes after midnight, every day
10+
- cron: '5 0 * * *'
11+
12+
# By specifying the access of one of the scopes, all of those that are not
13+
# specified are set to 'none'.
14+
permissions:
15+
issues: write
16+
17+
jobs:
18+
noResponse:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb
22+
with:
23+
token: ${{ github.token }}
24+
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
25+
closeComment: >
26+
Without additional information we're not able to resolve this issue,
27+
so it will be closed at this time. You're still free to add more info
28+
and respond to any questions above, though. We'll reopen the case
29+
if you do. Thanks for your contribution!
30+
# Number of days of inactivity before an issue is closed for lack of response.
31+
daysUntilClose: 14
32+
# Label requiring a response.
33+
responseRequiredLabel: "waiting for response"

0 commit comments

Comments
 (0)