-
Notifications
You must be signed in to change notification settings - Fork 4
Update stale messages in workflow configuration #12
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,27 @@ | ||||||||||||||||||||||||
| # 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: | ||||||||||||||||||||||||
| - cron: '17 14 * * *' | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||
| stale: | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||||
| issues: write | ||||||||||||||||||||||||
| pull-requests: write | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||
| - uses: actions/stale@v5 | ||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||||||
| stale-issue-message: 'Stale issue, will close soon.' | ||||||||||||||||||||||||
| stale-pr-message: 'Stale pull request, will close soon.' | ||||||||||||||||||||||||
| stale-issue-label: 'no-issue-activity' | ||||||||||||||||||||||||
| stale-pr-label: 'no-pr-activity' | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
| stale-pr-label: 'no-pr-activity' | |
| stale-pr-label: 'no-pr-activity' | |
| days-before-stale: 30 | |
| days-before-close: 7 |
Copilot
AI
Nov 7, 2025
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.
The workflow lacks important configuration options that would make the stale bot more useful:
- No
exempt-issue-labelsorexempt-pr-labelsto protect certain issues/PRs from being marked stale - No
close-issue-messageorclose-pr-messageto inform users when items are actually closed - No
operations-per-runlimit (defaults to 30, which may be too low for repositories with many stale items)
Consider adding these options to provide better control and user experience:
exempt-issue-labels: 'pinned,security,bug'
exempt-pr-labels: 'pinned,work-in-progress'
close-issue-message: 'This issue was automatically closed due to inactivity.'
close-pr-message: 'This pull request was automatically closed due to inactivity.'| stale-pr-label: 'no-pr-activity' | |
| stale-pr-label: 'no-pr-activity' | |
| exempt-issue-labels: 'pinned,security,bug' | |
| exempt-pr-labels: 'pinned,work-in-progress' | |
| close-issue-message: 'This issue was automatically closed due to inactivity.' | |
| close-pr-message: 'This pull request was automatically closed due to inactivity.' | |
| operations-per-run: 100 |
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.
The stale messages are not informative or helpful. Users should be given clear guidance on what actions they can take to prevent closure and why the issue/PR is being marked as stale.
Consider more descriptive messages like: