Skip to content

Close Stale Issues and PRs Automatically #317

Close Stale Issues and PRs Automatically

Close Stale Issues and PRs Automatically #317

name: Close Stale Issues and PRs Automatically
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *' # run once a day as it also removes labels.
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9.0.0
id: stale
with:
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. Thank you
for your contributions.
days-before-issue-stale: 60
days-before-issue-close: 7
exempt-issue-labels: after-vacations,will-fix
exempt-pr-labels: dependencies
stale-issue-label: stale
stale-pr-message: >
This PR has been automatically marked as stale because it has not had
recent activity from the author. It will be closed if no further activity occurs.
If the PR was closed and you want it re-opened, let us know
and we'll re-open the PR so that you can continue the contribution!
days-before-pr-stale: 14
days-before-pr-close: 7
exempt-pr-labels: after-vacations,will-fix

Check failure on line 30 in .github/workflows/automate-stale.yml

View workflow run for this annotation

GitHub Actions / Close Stale Issues and PRs Automatically

Invalid workflow file

The workflow is not valid. .github/workflows/automate-stale.yml (Line: 30, Col: 11): 'exempt-pr-labels' is already defined
stale-pr-label: stale
operations-per-run: 100