ci: skip code jobs on docs-only changes#3295
Conversation
Add a `changes` job using dorny/paths-filter to detect whether any non-documentation files were modified. All heavy jobs (lint, docker, test, docker-tests, proto) are gated behind this check and skipped when the PR only touches docs/** or markdown files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @auricom's task in 1m 40s —— View job Code Review
The approach is sound and well-motivated — using job-level Security:
- uses: dorny/paths-filter@v3Third-party actions should be pinned to a specific commit SHA instead of a mutable tag (e.g. Minor: unnecessary Lines 21–22: - uses: actions/checkout@v6.0.2
- uses: dorny/paths-filter@v3For Heads-up: push to The workflow triggers on if: github.event_name == 'pull_request' && needs.changes.outputs.code != 'true' || needs.changes.outputs.code == 'true'or simply not apply the gate on What works well
The SHA pinning issue is worth addressing before merging given this is a CI security surface. Everything else looks good. |
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ 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. ✨ 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 |
|
The latest Buf updates on your PR. Results from workflow CI / buf-check (pull_request).
|
| code: ${{ steps.filter.outputs.code }} | ||
| steps: | ||
| - uses: actions/checkout@v6.0.2 | ||
| - uses: dorny/paths-filter@v3 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3295 +/- ##
==========================================
+ Coverage 62.45% 62.48% +0.02%
==========================================
Files 122 122
Lines 13047 13047
==========================================
+ Hits 8149 8152 +3
+ Misses 4012 4009 -3
Partials 886 886
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add a `changes` job using dorny/paths-filter to detect whether any non-documentation files were modified. All heavy jobs (lint, docker, test, docker-tests, proto) are gated behind this check and skipped when the PR only touches docs/** or markdown files. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Summary
changesdetection job identify whether any non-documentation files were modified