Skip to content

Commit 47abaf1

Browse files
committed
Add auto close stalled issues & PRs workflow
- Stales issues & PRs with no activity for 30 days. - Closes stalled issues in 7 days and PRs in 14 days. - Changed lock thread message to reflect the lock is due to issue/PR has been closed for 30 days.
1 parent 53383bd commit 47abaf1

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.github/workflows/close-stale.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Close stale issues and PRs
2+
3+
on:
4+
schedule:
5+
- cron: '*/10 * * * *'
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
stale:
13+
name: Close month old issues and PRs
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/stale@v5
17+
with:
18+
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 in 30 days.'
19+
stale-pr-message: 'This PR is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
20+
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issus is still relevant, linking to this one.'
21+
close-pr-message: 'This PR was closed because it has been stalled for 14 days with no activity. Please open a new PR if the issue is still relevant, linking to this one.'
22+
days-before-issue-stale: 30
23+
days-before-pr-stale: 90
24+
days-before-issue-close: 7
25+
days-before-pr-close: 14
26+
exempt-all-milestones: true
27+
exempt-issue-labels: Pinned
28+
exempt-draft-pr: true

.github/workflows/lock.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
issue-inactive-days: '30'
2323
exclude-any-issue-labels: 'Discussion'
2424
issue-comment: >
25-
This issue has been automatically locked since there has not been any activity over the past 30 days. Please open a new issue for related bugs.
25+
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
2626
2727
Please note this issue tracker is not a help forum. We recommend using [Discussions](https://github.com/Devtography/electron-react-typescript-webpack-boilerplate/discussions) for questions.
2828
2929
pr-inactive-days: '30'
3030
pr-comment: >
31-
This pull request has been automatically locked since there has not been any activity over the past 30 days. Please open a new pull request for related bugs.
31+
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new pull request for related bugs.
3232
3333
Please note this issue tracker is not a help forum. We recommend using [Discussions](https://github.com/Devtography/electron-react-typescript-webpack-boilerplate/discussions) for questions.

0 commit comments

Comments
 (0)