chore: setup stale bot workflow#69
Conversation
🚀 PR Received SuccessfullyHello @psanyalaich, Thank you for taking the initiative to contribute to this project. Please ensure that your PR follows all project guidelines properly before requesting review.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a GitHub Actions workflow (.github/workflows/stale.yml) that runs daily or on manual dispatch to mark issues/PRs stale after 14 days and close them after 7 more days using a pinned actions/stale configuration with write permissions. ChangesAutomated stale issue management workflow
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/stale.yml:
- Line 18: The workflow currently references a floating tag "uses:
actions/stale@v9" which can change unexpectedly; replace that with an immutable
commit SHA from the actions/stale repository (e.g., "uses:
actions/stale@<full-commit-sha>") so the workflow is pinned; locate the
occurrence of "uses: actions/stale@v9" in the workflow and update it to the
chosen full commit SHA, commit the change, and optionally add a brief comment
noting the upstream repo and the pinned commit for future updates.
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: 771af72e-aac4-4ea9-bd95-6a44ce5aaf07
📒 Files selected for processing (1)
.github/workflows/stale.yml
|
@psanyalaich One improvement is still needed before merge. Please look into the CodeRabbit suggestion regarding pinning Take some time to understand the reasoning behind it as well — especially around workflow security, reproducibility, and avoiding unexpected upstream changes in CI/CD pipelines. Once you have analyzed it properly, push the required changes. |
|
@coderabbitai please perform a full review of the PR and check the implementation properly before merge. |
🧩 Analysis chain🏁 Script executed: Length of output: 922
Review:
|
| Check | Status |
|---|---|
| SHA pinned (full 40-char) | ✅ Pass |
| Correct SHA (v9.1.0) | ✅ Pass |
| Daily schedule + manual dispatch | ✅ Pass |
| Minimum permissions (job-level) | ✅ Pass |
| All 4 stale/close messages | ✅ Pass |
| Timing (14 + 7 days) | ✅ Pass |
| SHA version comment | |
Top-level permissions: {} |
|
| Explicit stale labels |
The implementation is ready to merge from a functional and security standpoint. The three items flagged above are optional improvements and not blockers. 🐇
✅ Actions performed
Full review triggered.
|
Well done @psanyalaich |
#63
Summary
Added a stale bot workflow using
actions/stale@v9to manage inactive issues and pull requests automatically.Changes Made
.github/workflows/stale.ymldays-before-stale: 14days-before-close: 7Result
This helps keep the repository cleaner by automatically marking and closing inactive issues and PRs after a period of inactivity.
Notes for Reviewer/Moderator
Please add
gssoc:approvedlabel so that it gets counted for GSSoC'26Edits Made
Updated
actions/stalewith a full commit SHA instead of using@v9Summary by CodeRabbit
Summary by CodeRabbit