Skip to content

Commit e2b1907

Browse files
authored
Merge pull request #485 from tinymce/feature/INT-3259
INT-3259: Added github action for labeling and closing stale issues
2 parents 8e844d2 + 40df779 commit e2b1907

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/stale.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Stale"
2+
3+
# This uses Github actions minutes. To learn more: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions
4+
5+
on:
6+
schedule:
7+
- cron: "0 0 * * *"
8+
9+
jobs:
10+
stale:
11+
name: Close stale issues
12+
runs-on: ubuntu-latest
13+
permissions:
14+
# contents: write # only for delete-branch option
15+
issues: write
16+
# pull-requests: write # only makes issues stale, not PRs
17+
18+
steps:
19+
- uses: actions/stale@v8
20+
with:
21+
stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity. Respond with a comment or this will be closed in 7 days.'
22+
days-before-stale: 30 # Days before an issue becomes stale
23+
days-before-close: 7 # Days before a stale labelled issue is closed
24+
any-of-labels: 'needs: more info'
25+
labels-to-remove-when-unstale: 'needs: more info'
26+

0 commit comments

Comments
 (0)