ci(pr-automation): stale prs and issues, pr heading and body checker, labels - #248
Conversation
Updated stale issue and PR messages, added days before stale and close settings, and exempt labels.
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughAdds GitHub automation: a scheduled stale workflow, PR validation workflow, PR auto-label workflow, labeler configuration, and a small PR template tweak requiring an issue placeholder or Changes
Sequence Diagram(s)sequenceDiagram
participant Contributor
participant GitHub as "GitHub Events"
participant Labeler as "actions/labeler@v6"
participant PRCheck as "PR Validation (github-script)"
participant Stale as "actions/stale@v10"
Contributor->>GitHub: open or update PR
GitHub->>Labeler: trigger pr-auto-label job (reads `.github/labeler.yml`)
Labeler-->>GitHub: apply labels to PR
GitHub->>PRCheck: run title-check and body-check jobs
PRCheck-->>GitHub: report pass/fail statuses
Note over GitHub,Stale: scheduled maintenance (daily)
Stale->>GitHub: mark stale / close issues & PRs per config
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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: 2
🤖 Fix all issues with AI agents
In @.github/workflows/stale.yml:
- Around line 1-4: Run Prettier on the workflow file to fix CI style errors:
format the YAML using your project's Prettier config (e.g., run prettier --write
on the workflow file or use the repo's formatting npm script) and commit the
resulting changes so the CI lint check for the stale workflow passes; the fix
targets the top-level workflow YAML content (the stale workflow header/comments)
that currently fails formatting.
- Line 20: The workflow currently pins the stale action to "uses:
actions/stale@v5" which targets Node 16 and is no longer supported; update that
reference to a supported release (recommend "actions/stale@v9" for Node 20 or
"actions/stale@v10" for Node 24) and then review and adjust any action inputs in
the workflow to match the new input schema/field names from the actions/stale
release notes; locate the literal string "uses: actions/stale@v5" in the
workflow and replace the version, then run a dry workflow or linter to ensure
the updated inputs (if any) for the stale action (e.g., labels, exempt teams,
days-before-stale, etc.) conform to the v9/v10 schema.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.github/workflows/stale.yml:
- Line 29: The workflow uses the deprecated input exempt-labels for
actions/stale@v10; replace it with the new inputs exempt-issue-labels and
exempt-pr-labels and set them to the same CSV values currently used (e.g.,
"pinned,important"). Update the job step referencing exempt-labels to instead
pass exempt-issue-labels: "pinned,important" and exempt-pr-labels:
"pinned,important" so the action accepts exemptions for both issues and PRs.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.github/workflows/pr-auto-label.yml:
- Around line 8-21: The workflow's Labeler step uses actions/labeler@v4 which is
unsupported; update the step in the label job to actions/labeler@v6 (e.g.,
actions/labeler@v6 or v6.0.1) and keep the existing inputs (repo-token) but
after updating, validate and, if needed, adapt your .github/labeler.yml config
to the v5+ schema changes; locate the "label" job and the step that references
actions/labeler@v4 to make this change.
|
@CodeRabbit full review |
✅ Actions performedFull review triggered. |
|
@CodeRabbit where is the review? |
|
✅ Actions performedFull review triggered. |
… labels (#248) * ci(stale.yml): Configure stale workflow with new settings Updated stale issue and PR messages, added days before stale and close settings, and exempt labels. * style(stale-workflow): format properly * deps(stale-workflow): bump to newer v10 * ci(stale.yml): fix label inputs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * docs(PR-template): update PR template * ci: add PR auto-label workflow and labeler config * ci: PR heading and body checker * fix: workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * style(workflows): format new workflow files * ci(deps): bump labeler to v6 * ci(pr-check): fix permissions --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
… labels (#248) * ci(stale.yml): Configure stale workflow with new settings Updated stale issue and PR messages, added days before stale and close settings, and exempt labels. * style(stale-workflow): format properly * deps(stale-workflow): bump to newer v10 * ci(stale.yml): fix label inputs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * docs(PR-template): update PR template * ci: add PR auto-label workflow and labeler config * ci: PR heading and body checker * fix: workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * style(workflows): format new workflow files * ci(deps): bump labeler to v6 * ci(pr-check): fix permissions --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
… labels (#248) * ci(stale.yml): Configure stale workflow with new settings Updated stale issue and PR messages, added days before stale and close settings, and exempt labels. * style(stale-workflow): format properly * deps(stale-workflow): bump to newer v10 * ci(stale.yml): fix label inputs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * docs(PR-template): update PR template * ci: add PR auto-label workflow and labeler config * ci: PR heading and body checker * fix: workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * style(workflows): format new workflow files * ci(deps): bump labeler to v6 * ci(pr-check): fix permissions --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
… labels (#248) * ci(stale.yml): Configure stale workflow with new settings Updated stale issue and PR messages, added days before stale and close settings, and exempt labels. * style(stale-workflow): format properly * deps(stale-workflow): bump to newer v10 * ci(stale.yml): fix label inputs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * docs(PR-template): update PR template * ci: add PR auto-label workflow and labeler config * ci: PR heading and body checker * fix: workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * style(workflows): format new workflow files * ci(deps): bump labeler to v6 * ci(pr-check): fix permissions --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Updated stale issue and PR messages, added days before stale and close settings, and exempt labels.
What was changed & why
Changes
stale.ymlpr-auto-label.ymlpr-check.ymlTesting & Verification
I ran it on a private repository. It worked as expected.
Additional Resources
None.
Summary by CodeRabbit
Chores
Documentation