2024-07-06 22:25:38 +02:00
|
|
|
name: Close stale issues
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "30 0 * * *"
|
|
|
|
workflow_dispatch:
|
|
|
|
|
2024-12-21 13:28:35 +01:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2024-07-06 22:25:38 +02:00
|
|
|
jobs:
|
|
|
|
stale:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
issues: write
|
|
|
|
pull-requests: write
|
|
|
|
steps:
|
2024-12-21 13:28:35 +01:00
|
|
|
- name: Harden Runner
|
|
|
|
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
|
|
|
|
with:
|
|
|
|
egress-policy: audit
|
|
|
|
|
2024-07-06 22:25:38 +02:00
|
|
|
- name: 30 days stale issues
|
2024-12-21 13:28:35 +01:00
|
|
|
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
|
2024-07-06 22:25:38 +02:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
days-before-stale: 30
|
|
|
|
days-before-close: 7
|
|
|
|
stale-issue-message: >
|
|
|
|
This issue has been automatically marked as stale because it has had no recent activity.
|
|
|
|
It will be closed if no further activity occurs. Thank you for your contributions.
|
|
|
|
close-issue-message: >
|
|
|
|
This issue has been automatically closed because it has had no recent activity after being marked as stale.
|
|
|
|
Please reopen if you need further assistance.
|
|
|
|
stale-issue-label: "Stale"
|
|
|
|
remove-stale-when-updated: true
|
|
|
|
only-issue-labels: "more-info-needed"
|
|
|
|
days-before-pr-stale: -1 # Prevents PRs from being marked as stale
|
|
|
|
days-before-pr-close: -1 # Prevents PRs from being closed
|
|
|
|
start-date: '2024-07-06T00:00:00Z' # ISO 8601 Format
|