Skip to content

Commit 52a7d21

Browse files
authored
Manage stale issues and PRs
1 parent 0083238 commit 52a7d21

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/stale-issues.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
permissions:
2+
contents: write
3+
issues: write
4+
pull-requests: write
5+
6+
name: 'Close stale issues and PRs'
7+
on:
8+
workflow_dispatch:
9+
schedule:
10+
- cron: '30 1 * * *'
11+
12+
jobs:
13+
stale:
14+
name: Close Stale Issues
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/stale@v9
18+
with:
19+
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed.'
20+
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed.'
21+
close-issue-message: 'Thank you for your submission. If you encounter this issue with the latest version of CF CLI, please open a new ticket with the necessary information as per our issue template.'
22+
close-pr-message: 'Thank you for your submission. If your change is still relevant, please update and reopen it.'
23+
days-before-issue-stale: 30
24+
days-before-pr-stale: 45
25+
days-before-issue-close: 365
26+
days-before-pr-close: 365
27+
stale-issue-label: 'no-issue-activity'
28+
exempt-issue-labels: 'awaiting-approval,work-in-progress'
29+
stale-pr-label: 'no-pr-activity'
30+
exempt-pr-labels: 'awaiting-approval,work-in-progress'
31+
# only-labels: 'awaiting-feedback,awaiting-answers'

0 commit comments

Comments
 (0)