Skip to content

Commit b660d39

Browse files
Add GitHub action to close inactive Issues and PRs
Signed-off-by: Keval Morabia <[email protected]>
1 parent 4b522e0 commit b660d39

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Ref: https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues
2+
name: Close inactive issues and PRs
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 3 * * *"
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/stale@v10
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
stale-issue-message: "Issue has not received an update in over 14 days. Adding stale label."
19+
stale-pr-message: "PR has not received an update in over 14 days. Adding stale label."
20+
close-issue-message: "This issue was closed because it has been 14 days without activity since it has been marked as stale."
21+
close-pr-message: "This PR was closed because it has been 14 days without activity since it has been marked as stale."
22+
days-before-issue-stale: 14
23+
days-before-close: 14
24+
only-labels: "waiting for feedback"
25+
labels-to-add-when-unstale: "investigating"
26+
labels-to-remove-when-unstale: "stale,waiting for feedback"
27+
stale-issue-label: "stale"
28+
stale-pr-label: "stale"
29+
operations-per-run: 1000

0 commit comments

Comments
 (0)