Close stale issues and PRs #2
This file contains hidden or 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
name: 'Close stale issues and PRs' | |
on: | |
schedule: | |
# Run every Monday at 1:30 AM UTC | |
- cron: '30 1 * * 1' | |
workflow_dispatch: | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 | |
with: | |
egress-policy: audit | |
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e | |
with: | |
# Issues configuration | |
days-before-issue-stale: 90 | |
days-before-issue-close: 14 | |
stale-issue-message: > | |
This issue has been automatically marked as stale because it has not had | |
recent activity. It will be closed if no further activity occurs. | |
To keep it open either add a comment or the label `do-not-expire`. | |
close-issue-message: > | |
This issue has been automatically closed due to inactivity. | |
stale-issue-label: 'stale' | |
exempt-issue-labels: 'do-not-expire,help-wanted' | |
only-issue-labels: 'question' | |
# Pull requests configuration | |
days-before-pr-stale: 60 | |
days-before-pr-close: 14 | |
stale-pr-message: > | |
This pull request has been automatically marked as stale because it has not had | |
recent activity. It will be closed if no further activity occurs. You may re-open | |
it if you need more time. | |
close-pr-message: > | |
This pull request has been automatically closed due to inactivity. You may re-open | |
it if you need more time. We really appreciate your contribution and we are sorry | |
that this has not been completed. | |
stale-pr-label: 'stale' | |
exempt-pr-labels: 'do-not-expire' | |
# General configuration | |
operations-per-run: 100 | |
remove-stale-when-updated: true |