Skip to content

Commit e920b79

Browse files
authored
Update stale.yml
1 parent 379d9f2 commit e920b79

1 file changed

Lines changed: 21 additions & 19 deletions

File tree

.github/workflows/stale.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2-
#
3-
# You can adjust the behavior by modifying this file.
4-
# For more information, see:
5-
# https://github.com/actions/stale
6-
name: Mark stale issues and pull requests
1+
name: "Mark and Close Stale Issues/PRs"
72

83
on:
94
schedule:
10-
- cron: '26 10 * * *'
5+
- cron: "0 0 * * *" # runs daily at midnight
6+
workflow_dispatch: # allows manual triggering
117

128
jobs:
139
stale:
14-
1510
runs-on: ubuntu-latest
16-
permissions:
17-
issues: write
18-
pull-requests: write
19-
2011
steps:
21-
- uses: actions/stale@v5
22-
with:
23-
repo-token: ${{ secrets.GITHUB_TOKEN }}
24-
stale-issue-message: 'Stale issue message'
25-
stale-pr-message: 'Stale pull request message'
26-
stale-issue-label: 'no-issue-activity'
27-
stale-pr-label: 'no-pr-activity'
12+
- name: Run stale action
13+
uses: actions/stale@v9
14+
with:
15+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
16+
stale-issue-message: "This issue has been automatically marked as stale due to inactivity. If you'd like to keep it open, please leave a comment in the next 7 days."
17+
stale-pr-message: "This pull request has been automatically marked as stale due to inactivity. If you’d still like to see it merged, please comment within the next 7 days."
18+
stale-issue-label: "stale"
19+
stale-pr-label: "stale"
20+
days-before-stale: 30
21+
days-before-close: 7
22+
days-before-pr-stale: 30
23+
days-before-pr-close: 7
24+
exempt-issue-labels: "bug,enhancement"
25+
exempt-pr-labels: "WIP"
26+
operations-per-run: 50
27+
delete-branch-on-close: false
28+
env:
29+
TZ: Europe/Zurich

0 commit comments

Comments
 (0)