2023-07-06 15:28:50 +02:00
|
|
|
name: Close stale issues and PRs # https://github.com/actions/stale
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
2023-10-13 19:04:23 +02:00
|
|
|
- cron: "*/30 * * * *" # Every 30 mins
|
2023-07-06 15:28:50 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
stale:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/stale@v8
|
|
|
|
with:
|
2023-12-01 15:00:56 +01:00
|
|
|
days-before-stale: 330
|
2023-10-13 19:04:23 +02:00
|
|
|
operations-per-run: 1
|
|
|
|
# stale rules for PRs
|
2023-07-06 15:32:11 +02:00
|
|
|
days-before-pr-stale: 7
|
2023-07-06 15:28:50 +02:00
|
|
|
stale-issue-label: stale
|
2023-10-13 19:04:23 +02:00
|
|
|
exempt-pr-labels: pinned,security,roadmap
|
2023-07-06 15:28:50 +02:00
|
|
|
days-before-pr-close: 7
|
2024-01-03 12:32:08 +01:00
|
|
|
days-before-issue-close: 30
|
2023-07-06 15:28:50 +02:00
|
|
|
|
2023-10-13 19:04:23 +02:00
|
|
|
- uses: actions/stale@v8
|
|
|
|
with:
|
|
|
|
operations-per-run: 3
|
|
|
|
# stale rules for high priority bugs
|
|
|
|
days-before-stale: 30
|
|
|
|
only-issue-labels: bug,High priority
|
|
|
|
stale-issue-label: warn
|
2024-01-03 12:32:08 +01:00
|
|
|
days-before-close: 30
|
2023-10-13 19:04:23 +02:00
|
|
|
|
|
|
|
- uses: actions/stale@v8
|
|
|
|
with:
|
|
|
|
operations-per-run: 3
|
|
|
|
# stale rules for medium priority bugs
|
|
|
|
days-before-stale: 90
|
|
|
|
only-issue-labels: bug,Medium priority
|
|
|
|
stale-issue-label: warn
|
2024-01-03 12:32:08 +01:00
|
|
|
days-before-close: 30
|
2023-07-06 15:28:50 +02:00
|
|
|
|
2023-10-13 19:04:23 +02:00
|
|
|
- uses: actions/stale@v8
|
|
|
|
with:
|
|
|
|
operations-per-run: 3
|
|
|
|
# stale rules for all bugs
|
|
|
|
days-before-stale: 180
|
|
|
|
stale-issue-label: stale
|
|
|
|
only-issue-labels: bug
|
|
|
|
stale-issue-message: "This issue has been automatically marked as stale because it has not had any activity for six months."
|
|
|
|
days-before-close: 30
|