-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a Github action that checks for stale issues and PRs using https://github.com/actions/stale, which is Github's officially supported action for stale checks. To run this in a dry run mode, I've turned on Github logging for the repo, and set `debug-only: true` for the action. The docs on https://github.com/actions/stale#debugging suggest this means the action will not be run, and only be logged. This should allow us to watch how this would effect our repo.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: 'Close stale issues and PRs' | ||
on: | ||
schedule: | ||
- cron: '* */8 * * *' | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v3 | ||
with: | ||
stale-issue-message: 'π Hey there. This issue hasn''t had any activity for 180 days. We''ll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.' | ||
stale-pr-message: 'π Hey there. This PR hasn''t had any activity for 90 days. We''ll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.' | ||
close-issue-message: 'β We''re automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.' | ||
close-pr-message: 'β We''re automatically closing this PR due to lack of activity. Please comment if you feel this was done in error.' | ||
days-before-pr-stale: 90 | ||
days-before-issue-stale: 180 | ||
days-before-close: 7 | ||
stale-issue-label: 'stale-issue' | ||
close-issue-label: 'stale-issue-closed' | ||
exempt-issue-labels: 'bug,skip-stale-check' | ||
stale-pr-label: 'stale-pr' | ||
close-pr-label: 'stale-pr-closed' | ||
exempt-pr-labels: 'skip-stale-check' | ||
operations-per-run: 1000 | ||
remove-stale-when-updated: true | ||
debug-only: true | ||
enable-statistics: true |
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