ci: add PR conventional commits validation#305
Conversation
WalkthroughAdds a GitHub Actions workflow configuration file that enforces conventional commit conventions for pull request titles. The workflow triggers on PR events and validates that PR titles match allowed commit types (feat, fix, docs, test, refactor, ci, perf, chore, revert) using the pr-conventional-commits action. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 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)
📝 Coding Plan
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 Tip CodeRabbit can use OpenGrep to find security vulnerabilities and bugs across 17+ programming languages.OpenGrep is compatible with Semgrep configurations. Add an |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #305 +/- ##
============================================
- Coverage 38.03% 38.02% -0.02%
+ Complexity 1258 1257 -1
============================================
Files 198 198
Lines 7643 7643
Branches 885 885
============================================
- Hits 2907 2906 -1
Misses 4598 4598
- Partials 138 139 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/pr-title-check.yml (1)
3-7: Consider removingsynchronizefrom event types.The
synchronizeevent fires when commits are pushed to the PR branch, not when the title changes. For PR title validation, onlyopened,reopened, andeditedare relevant. Keeping it causes unnecessary workflow runs on every push.Suggested fix
on: pull_request: - types: [opened, reopened, synchronize, edited] + types: [opened, reopened, edited] branches: - main🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/pr-title-check.yml around lines 3 - 7, Remove the unnecessary 'synchronize' trigger from the pull_request event types so the PR title check only runs on title-relevant events; update the on: pull_request types array to include only opened, reopened, and edited (remove 'synchronize') to avoid workflow runs on every push to the PR branch.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/pr-title-check.yml:
- Around line 3-7: Remove the unnecessary 'synchronize' trigger from the
pull_request event types so the PR title check only runs on title-relevant
events; update the on: pull_request types array to include only opened,
reopened, and edited (remove 'synchronize') to avoid workflow runs on every push
to the PR branch.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: ecb7562f-88fc-4758-9856-ee948020845f
📒 Files selected for processing (1)
.github/workflows/pr-title-check.yml
Description
What problem is being solved?
How is it being solved?
What changes are made to solve it?
References
Review Checklist
mainSummary by CodeRabbit