Skip to content

Commit f6f9cb9

Browse files
authored
Added workflow permissions and updated days and labels (alexjustesen#2199)
1 parent fc6e9f2 commit f6f9cb9

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/stale_issues.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
name: Close Stale Issues
1+
name: 'Close stale issues'
22

33
on:
44
schedule:
55
- cron: '0 10 * * *' # Runs daily at 10:00 AM UTC
66
workflow_dispatch:
77

8+
permissions:
9+
issues: write
10+
811
jobs:
912
manage-stale-issues:
1013
runs-on: ubuntu-24.04
@@ -15,9 +18,6 @@ jobs:
1518
with:
1619
repo-token: ${{ secrets.GITHUB_TOKEN }}
1720

18-
# Only apply to issues, not PRs
19-
only-issues: true
20-
2121
# Stale messaging
2222
stale-issue-message: >
2323
👋 This issue has been automatically marked as stale due to inactivity.
@@ -26,15 +26,14 @@ jobs:
2626
2727
close-issue-message: >
2828
🔒 This issue has been automatically closed due to prolonged inactivity.
29-
Feel free to reopen if the issue is still valid.
29+
Feel free to open a new issue if you have further questions or concerns.
3030
3131
# Timing
32-
days-before-issue-stale: 7
32+
days-before-issue-stale: 14
3333
days-before-issue-close: 7
3434

3535
# Label management
36-
stale-issue-label: 'no-issue-activity'
37-
close-issue-label: 'closed-no-issue-activity'
36+
stale-issue-label: 'stale'
3837
remove-stale-when-updated: true
3938

4039
# Targeting only `question`-labeled issues
@@ -47,4 +46,3 @@ jobs:
4746
# Skip assigned or milestone-tracked issues
4847
exempt-assignees: true
4948
exempt-milestones: true
50-

0 commit comments

Comments
 (0)