Close Stale Issues #27
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
name: Close Stale Issues | |
on: | |
schedule: | |
- cron: "0 7 * * *" | |
workflow_dispatch: | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
env: | |
stale-days: 30 | |
close-days: 7 | |
stale-label: stale | |
stale-exempt-label: stale-exempt | |
only-label: more info needed | |
steps: | |
- uses: actions/[email protected] | |
with: | |
stale-issue-label: ${{ env.stale-label }} | |
exempt-issue-labels: ${{ env.stale-exempt-label }} | |
only-labels: ${{ env.only-label }} | |
days-before-pr-stale: -1 | |
days-before-pr-close: -1 | |
days-before-stale: ${{ env.stale-days }} | |
stale-issue-message: "This issue is now marked as '${{ env.stale-label }}' due to there being no activity on it for the past ${{ env.stale-days }} days and being labelled '${{ env.only-label }}'. Unless the '${{ env.stale-label }}' label is removed or the issue is commented on, this will be closed in ${{ env.close-days }} days. If you would like to make this issue exempt from getting stale, please remove the '${{ env.only-label }}' and '${{ env.stale-label }}' labels or add the '${{ env.stale-exempt-label }}' label" | |
days-before-close: ${{ env.close-days }} | |
close-issue-message: "This issue is now closed due to there being no activity on it for the past ${{ env.close-days }} days since being marked as '${{ env.stale-label }}'." | |
operations-per-run: 500 | |
close-issue-reason: not_planned | |