Skip to content

Commit c5c395c

Browse files
authored
chore: Update stale config (#423)
Details: - Action update v8 -> v9 - Increase stale days 14 -> 60 - Do not stale issues with labels "on-hold", "pinned" or "good first issue" Signed-off-by: Marco Maurer <[email protected]>
1 parent a281575 commit c5c395c

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/stale.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
1+
## Reference: https://github.com/actions/stale
12
name: 'Close stale Issues/PRs'
23
on:
34
schedule:
45
- cron: '30 12 * * *'
56

7+
permissions:
8+
contents: read
9+
610
jobs:
711
stale:
12+
permissions:
13+
issues: write # for actions/stale to close stale issues
14+
pull-requests: write # for actions/stale to close stale PRs
815
runs-on: ubuntu-latest
916
steps:
10-
- uses: actions/stale@v8
17+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
1118
with:
1219
repo-token: ${{ secrets.GITHUB_TOKEN }}
13-
days-before-stale: 14
20+
days-before-stale: 60
1421
days-before-close: 10
1522
# Issue settings
16-
stale-issue-message: 'This issue is stale because of a lack of response from the original author. Please provide the requested feedback or this will be closed in 10 days.'
17-
any-of-issue-labels: 'answered,cannot-reproduce,invalid,needs-more-info'
23+
stale-issue-message: >
24+
This issue has been automatically marked as stale because it has not had
25+
recent activity. It will be closed if no further activity occurs. Thank you
26+
for your contributions.
27+
exempt-issue-labels: "on-hold,pinned,good first issue"
1828
# PR Settings
19-
stale-pr-message: 'This pr is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
29+
stale-pr-message: >
30+
This pull request has been automatically marked as stale because it has not had
31+
recent activity. It will be closed if no further activity occurs. Thank you
32+
for your contributions.
33+
exempt-pr-labels: "on-hold,pinned"

0 commit comments

Comments
 (0)