Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughA new GitHub Actions workflow was added to automatically mark issues and pull requests as stale after 30 days of inactivity and close them 5 days after being marked stale; it runs daily at 01:00 UTC. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/workflows/stale.yml (1)
11-14: Consider adding stale labels, messages, and exempt labels.The current configuration is minimal. For better user experience and to protect important issues, consider adding:
- Stale labels to visually identify stale items
- Messages to notify users when items are marked stale or closed
- Exempt labels to prevent auto-closure of important issues (e.g., security, pinned, help-wanted)
📋 Proposed enhancement with labels and messages
- uses: actions/stale@v10 with: days-before-stale: 30 days-before-close: 5 + stale-issue-label: 'stale' + stale-pr-label: 'stale' + stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs.' + stale-pr-message: 'This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs.' + close-issue-message: 'This issue was automatically closed due to inactivity.' + close-pr-message: 'This pull request was automatically closed due to inactivity.' + exempt-issue-labels: 'pinned,security,help-wanted' + exempt-pr-labels: 'pinned,security,work-in-progress'🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/stale.yml around lines 11 - 14, The stale action config (actions/stale@v10) is minimal—add clearer labels and messages plus exempt labels to improve UX and protect important issues: update the workflow entry for actions/stale@v10 to include keys like stale-label (e.g., "stale"), days-before-stale, days-before-close, exempt-labels (e.g., "security", "pinned", "help-wanted"), stale-message (notify authors when marked stale) and close-message (notify when closed); keep the existing days-before-stale and days-before-close values but add these label and message fields so stale items are visibly labeled, users are informed, and critical issues are exempted from auto-closing.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/stale.yml:
- Around line 7-11: The workflow's stale job uses actions/stale@v10 but lacks an
explicit permissions block; add a top-level permissions mapping to grant the
workflow the needed write rights (for example, add permissions: issues: write
and pull-requests: write, and any additional read permissions you need such as
contents: read) so the stale action can comment/label/close issues and PRs;
update the workflow YAML by inserting the permissions block at the root of the
workflow (affects the stale job using actions/stale@v10).
---
Nitpick comments:
In @.github/workflows/stale.yml:
- Around line 11-14: The stale action config (actions/stale@v10) is minimal—add
clearer labels and messages plus exempt labels to improve UX and protect
important issues: update the workflow entry for actions/stale@v10 to include
keys like stale-label (e.g., "stale"), days-before-stale, days-before-close,
exempt-labels (e.g., "security", "pinned", "help-wanted"), stale-message (notify
authors when marked stale) and close-message (notify when closed); keep the
existing days-before-stale and days-before-close values but add these label and
message fields so stale items are visibly labeled, users are informed, and
critical issues are exempted from auto-closing.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 519695d9-cf58-4fb7-be7e-2527cb22eceb
📒 Files selected for processing (1)
.github/workflows/stale.yml
Add permissions for issues and pull requests in stale workflow
This pull request adds a GitHub Actions workflow to automatically close stale issues and pull requests. The workflow is scheduled to run daily and will mark items as stale after 30 days of inactivity, then close them 5 days later if there is no further activity.
Workflow automation:
.github/workflows/stale.ymlthat uses theactions/staleGitHub Action to manage stale issues and PRs, scheduling it to run every day at 1:00 AM UTC.Summary by CodeRabbit