Skip to content

Commit ad9f1d8

Browse files
authored
Add GitHub stale issues bot (#3253)
* Switch from GH doc issue feedback to new feedback control * Add GitHub stale issues bot
1 parent 446b697 commit ad9f1d8

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/stale-issues.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# See https://github.com/marketplace/actions/close-stale-issues
2+
# Mark issues as stale if they're open with no activity for 1 day
3+
# Closed marked issues after 3 days.
4+
5+
name: close-stale-issues
6+
7+
on:
8+
schedule:
9+
- cron: "0 0 * * 4"
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
stale:
17+
permissions:
18+
issues: write # for actions/stale to close stale issues
19+
pull-requests: write # for actions/stale to close stale PRs
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/stale@v9
23+
with:
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}
25+
stale-issue-message: 'Thanks for sharing your feedback. We apologize for our delayed response. Due to the sheer volume of feedback in our repo, we have decided to prioritize the newest issues and are automatically closing our oldest issues with an Issues bot. If you believe your feedback is still actionable, then either respond directly in this issue or open a new documentation issue and we’ll review. If no activity occurs in the next 14 days, this issue will be closed.'
26+
close-issue-message: 'This issue is closed. If you feel this issue has been closed in error, please submit a new comment on the issue, and we will review it.'
27+
stale-issue-label: 'stale'
28+
close-issue-label: 'auto-close'
29+
exempt-issue-labels: 'exempt'
30+
remove-stale-when-updated: true
31+
days-before-close: 14
32+
days-before-issue-stale: 180
33+
days-before-pr-stale: -1
34+
operations-per-run: 500

0 commit comments

Comments
 (0)