Skip to content

[CI/Build] Add bot to close stale issues and PRs #1

[CI/Build] Add bot to close stale issues and PRs

[CI/Build] Add bot to close stale issues and PRs #1

Workflow file for this run

name: 'Close inactive issues and PRs'

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

Invalid `steps` value - steps should be list of `uses` or `run` items
on:
schedule:
# Daily at 1:30 AM UTC
- cron: '30 1 * * *'
jobs:
close-issues-and-pull-requests:
permissions:
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
days-before-issue-stale: 90
days-before-issue-close: 30
stale-issue-label: 'stale'
stale-issue-message: >
This issue has been automatically marked as stale because it has not
had any activity within 90 days. It will be automatically closed if no
further activity occurs within 30 days. Leave a comment if
you feel this issue should remain open. Thank you!
close-issue-message: >
This issue has been automatically closed due to inactivity. Please
feel free to reopen if you feel it is still relevant. Thank you!
days-before-pr-stale: 90
days-before-pr-close: 30
stale-pr-label: 'stale'
stale-pr-message: >
This pull request has been automatically marked as stale because it
has not had any activity within 90 days. It will be automatically
closed if no further activity occurs within 30 days. Leave a comment
if you feel this pull request should remain open. Thank you!
close-pr-message: >
This pull request has been automatically closed due to inactivity.
Please feel free to reopen if you intend to continue working on it.
Thank you!