Mark stale issues and pull requests #365
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. | |
# | |
# You can adjust the behavior by modifying this file. | |
# For more information, see: | |
# https://github.com/actions/stale | |
name: Mark stale issues and pull requests | |
on: | |
schedule: | |
- cron: 0 0 * * * | |
permissions: | |
contents: read | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
stale-issue-message: 'This issue will be automatically closed in a week because it has been inactive for more than 7 days. Please send a message if this issue is still unresolved.' | |
stale-issue-label: stale | |
stale-pr-message: 'This pull-request will be automatically closed in a week because it has been inactive for more than 7 days. Please send a message if you still intend to submit this pull-request.' | |
stale-pr-label: stale | |
days-before-stale: 7 | |
days-before-close: 7 | |
exempt-issue-labels: 'keep-open' |