-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Add config for the stale action. #14836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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: '00 05 * * *' | ||
|
|
||
| jobs: | ||
| stale: | ||
| permissions: | ||
| issues: write | ||
| pull-requests: write | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: gorzelinski/stale@add-reaction-updates | ||
| with: | ||
| repo-token: ${{ secrets.GH_BOT_TOKEN }} | ||
| stale-issue-label: status:stale | ||
| close-issue-label: resolution:expired | ||
| stale-issue-message: "There has been no activity on this issue for the past five years. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue." | ||
| stale-pr-message: "There has been no activity on this PR for the past five years. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the contribution, leave a comment or reaction under this PR." | ||
| close-issue-message: "We've closed your issue due to inactivity over the last five years. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it)." | ||
| close-pr-message: "We've closed your PR due to inactivity over the last five years. While time has passed, the core of your contribution might still be relevant. If you're able, consider reopening a similar PR." | ||
| days-before-stale: 1825 | ||
| days-before-close: 30 | ||
| exempt-issue-labels: support,domain:accessibility | ||
| exempt-pr-labels: support,domain:accessibility | ||
| ignore-reactions: false | ||
| operations-per-run: 60 | ||
| ascending: true | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I understand correctly that all issues closed by this bot will have this label?
I need to be able to identify (search) all issues that were automatically closed.
In fact, I'd also apply this label resolution:expiredThis issue was closed due to lack of feedback.
to the closed issues. Can we do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not exactly. The label is for stale issues. I can add another one for closed issues like the mentioned
resolution: expired. Both labels will be visible in the closed issue.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Osom. Let's do this :)