Skip to content

Commit d1bb182

Browse files
authored
chore: re-implement workflow for stable issues (#1540)
1 parent e4f5200 commit d1bb182

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

.github/workflows/no-response.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,38 @@
11
name: No Response
22

33
# **What it does**: Closes issues where the original author doesn't respond to a request for information.
4-
# **Why we have it**: To remove the need for maintainers to remember to check back on issues periodically to see if contributors have responded.
5-
# **Who does it impact**: Everyone that works on docs or docs-internal.
4+
# **Why we have it**: To remove the need for maintainers to check back on issues periodically to see if contributors have responded.
5+
# **Who does it impact**: Everyone that works on this repository.
66

77
on:
8-
issue_comment:
9-
types: [created]
108
schedule:
11-
# Schedule for five minutes after the hour, every hour
9+
# Run once daily at midnight UTC
1210
- cron: '0 0 * * *'
11+
workflow_dispatch:
12+
13+
permissions:
14+
issues: write
15+
pull-requests: write
1316

1417
jobs:
1518
noResponse:
1619
runs-on: ubuntu-latest
1720
steps:
18-
- uses: lee-dohm/[email protected]
21+
- uses: actions/stale@v9
1922
with:
20-
token: ${{ github.token }}
21-
daysUntilClose: 14 # Number of days of inactivity before an Issue is closed for lack of response
22-
responseRequiredLabel: "needs more info" # Label indicating that a response from the original author is required
23-
closeComment: >
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
# Only process issues with "needs more info" label
25+
only-labels: 'needs more info'
26+
# Don't mark as stale, just close directly after days-before-close
27+
days-before-stale: -1
28+
# Close after 14 days of inactivity
29+
days-before-close: 14
30+
# Message when closing
31+
close-issue-message: >
2432
This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further.
33+
# Don't close if there are recent comments
34+
remove-issue-stale-when-updated: true
35+
# Exempt certain labels from being closed
36+
exempt-issue-labels: 'pinned,security'
37+
# Only process issues, not PRs
38+
enable-statistics: true

0 commit comments

Comments
 (0)