-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add Stale Action for specifically labeled issues and PRs (#12488)
- Loading branch information
Showing
2 changed files
with
51 additions
and
1 deletion.
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,41 @@ | ||
# https://github.com/actions/stale | ||
name: Mark stale issues and pull requests | ||
|
||
on: | ||
schedule: | ||
- cron: '0 2 * * *' # once a day at 2am | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
stale: | ||
permissions: | ||
issues: write # for commenting on an issue and editing labels | ||
pull-requests: write # for commenting on a PR and editing labels | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
# timing | ||
days-before-stale: 14 # 2 weeks of inactivity | ||
days-before-close: 14 # 2 more weeks of inactivity | ||
# labels to watch for, add, and remove | ||
only-labels: 'more information needed' # only mark issues/PRs as stale if they have this label | ||
labels-to-remove-when-unstale: 'more information needed' # remove label when unstale -- should be manually added back if information is insufficient | ||
stale-issue-label: 'stale' | ||
stale-pr-label: 'stale' | ||
# automated messages to issue/PR authors | ||
stale-issue-message: > | ||
This issue has been automatically marked as stale because it has not had recent activity and needs more information. | ||
It will be closed if no further activity occurs. | ||
stale-pr-message: > | ||
This PR has been automatically marked as stale because it has not had recent activity and needs further changes. | ||
It will be closed if no further activity occurs. | ||
close-issue-message: > | ||
This issue has been closed due to inactivity and lack of information. | ||
If you still encounter this issue, please add the requested information and re-open. | ||
close-pr-message: | ||
This PR has been closed due to inactivity and lack of changes. | ||
If you would like to still work on this PR, please address the review comments and re-open. |
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