Skip to content

Add GitHub Action to mark old issues as stale #1

Add GitHub Action to mark old issues as stale

Add GitHub Action to mark old issues as stale #1

Workflow file for this run

name: Mark stale issues

Check failure on line 1 in .github/workflows/stale.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/stale.yml

Invalid workflow file

`issue` is not a valid event name
on:
schedule:
- cron: '0 0 * * *'
issue:
types: [opened, updated]
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
days-before-stale: 60
days-before-close: 7
stale-issue-label: 'stale'
close-issue-label: 'closed due to inactivity'
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.'
close-issue-message: 'This issue has been automatically closed due to inactivity. If you still have this problem, please reopen the issue or create a new one.'