-
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
Conversation
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.
Pull Request Overview
This PR adds a new GitHub Actions workflow to automatically manage stale issues and pull requests by marking them inactive after a period of no activity and eventually closing them.
Key Changes
- Introduces a scheduled workflow that runs daily at 14:17 UTC using the actions/stale@v5 action
- Configures basic stale detection with custom labels ('no-issue-activity' and 'no-pr-activity')
- Sets up appropriate permissions for issue and PR management
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 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' |
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 stale workflow is missing critical timing parameters. Without specifying days-before-stale and days-before-close, the action will use its default values (60 days before stale, 7 days before close). These defaults may not match your project's needs and should be explicitly configured for clarity and maintainability.
Consider adding these parameters:
days-before-stale: 30
days-before-close: 7| stale-pr-label: 'no-pr-activity' | |
| stale-pr-label: 'no-pr-activity' | |
| days-before-stale: 30 | |
| days-before-close: 7 |
| stale-issue-message: 'Stale issue, will close soon.' | ||
| stale-pr-message: 'Stale pull request, will close soon.' |
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 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:
stale-issue-message: 'This issue has been automatically marked as stale due to inactivity. It will be closed in 7 days if no further activity occurs. Please comment if this issue is still relevant.'
stale-pr-message: 'This pull request has been automatically marked as stale due to inactivity. It will be closed in 7 days if no further activity occurs. Please update or comment if this PR is still relevant.'| stale-issue-message: 'Stale issue, will close soon.' | |
| stale-pr-message: 'Stale pull request, will close soon.' | |
| stale-issue-message: 'This issue has been automatically marked as stale due to inactivity. It will be closed in 7 days if no further activity occurs. Please comment if this issue is still relevant.' | |
| stale-pr-message: 'This pull request has been automatically marked as stale due to inactivity. It will be closed in 7 days if no further activity occurs. Please update or comment if this PR is still relevant.' |
| 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' |
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 |
No description provided.