-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement stale management for Issues and PRs. (#89)
- Loading branch information
1 parent
367364d
commit 01d9ae5
Showing
1 changed file
with
47 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,47 @@ | ||
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. | ||
# | ||
# You can adjust the behavior by modifying this file. | ||
# For more information, see: | ||
# https://github.com/actions/stale | ||
name: Mark stale issues and pull requests | ||
|
||
on: | ||
schedule: | ||
# Scheduled to run at 1.30 UTC everyday | ||
- cron: '30 1 * * *' | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
actions: write | ||
|
||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
days-before-issue-stale: 7 | ||
days-before-issue-close: 7 | ||
stale-issue-label: "status:stale" | ||
close-issue-reason: completed | ||
any-of-labels: "status:awaiting user response,status:more data needed" | ||
stale-issue-message: > | ||
Marking this issue as stale since it has been open for 7 days with no activity. | ||
This issue will be closed if no further activity occurs. | ||
close-issue-message: > | ||
This issue was closed because it has been inactive for 14 days. | ||
Please post a new issue if you need further assistance. Thanks! | ||
days-before-pr-stale: 14 | ||
days-before-pr-close: 14 | ||
stale-pr-label: "status:stale" | ||
stale-pr-message: > | ||
Marking this pull request as stale since it has been open for 14 days with no activity. | ||
This PR will be closed if no further activity occurs. | ||
close-pr-message: > | ||
This pull request was closed because it has been inactive for 28 days. | ||
Please open a new pull request if you need further assistance. Thanks! | ||
# Label that can be assigned to issues to exclude them from being marked as stale | ||
exempt-issue-labels: 'override-stale' | ||
# Label that can be assigned to PRs to exclude them from being marked as stale | ||
exempt-pr-labels: "override-stale" |