Skip to content

Commit b2a3ebc

Browse files
authored
Merge pull request #2500 from Flow-Launcher/update-stale-workflow
Update stale workflow
2 parents f927f3a + 3280b06 commit b2a3ebc

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/stale.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
schedule:
77
- cron: '30 1 * * *'
88

9+
env:
10+
days-before-stale: 60
11+
days-before-close: 7
12+
exempt-issue-labels: 'keep-fresh'
13+
914
jobs:
1015
stale:
1116
runs-on: ubuntu-latest
@@ -15,12 +20,12 @@ jobs:
1520
steps:
1621
- uses: actions/stale@v9
1722
with:
18-
stale-issue-message: 'This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
19-
days-before-stale: 45
20-
days-before-close: 7
23+
stale-issue-message: 'This issue is stale because it has been open ${{ env.days-before-stale }} days with no activity. Remove stale label or comment or this will be closed in ${{ env.days-before-stale }} days.\n\nAlternatively this issue can be kept open by adding one of the following labels:\n${{ env.exempt-issue-labels }}'
24+
days-before-stale: ${{ env.days-before-stale }}
25+
days-before-close: ${{ env.days-before-close }}
2126
days-before-pr-close: -1
2227
exempt-all-milestones: true
2328
close-issue-message: 'This issue was closed because it has been stale for 7 days with no activity. If you feel this issue still needs attention please feel free to reopen.'
2429
stale-pr-label: 'no-pr-activity'
25-
exempt-issue-labels: 'keep-fresh'
30+
exempt-issue-labels: ${{ env.exempt-issue-labels }}
2631
exempt-pr-labels: 'keep-fresh,awaiting-approval,work-in-progress'

0 commit comments

Comments
 (0)