chore(commitlint): add commit-msg hook and workflow validation#124
chore(commitlint): add commit-msg hook and workflow validation#124DurgaPrasad-54 wants to merge 2 commits intoPSMRI:mainfrom
Conversation
|
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. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis pull request introduces commit message linting infrastructure by adding a commitlint configuration file, a Git hook script for local enforcement, a GitHub Actions workflow for CI validation, and documentation updates for setup instructions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 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
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.git-hooks/commit-msg:
- Line 4: The hook invokes npx --yes `@commitlint/cli` --edit "$1" without a
pinned version, causing local/CI mismatch; update the command in the commit hook
(the npx invocation that references `@commitlint/cli`) to pin the same version
used in CI, e.g. replace `@commitlint/cli` with `@commitlint/cli`@20.4.3 so local
hooks run the identical release as CI.
In `@README.md`:
- Around line 45-49: The fenced code block containing the command "mvn clean
install" in the README should include a language tag for the markdown code
fence; update the triple-backtick fence that wraps the mvn clean install command
to ```bash so the block is marked as bash (locate the fenced block that contains
the mvn clean install line and change the opening fence to include "bash").
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 1198d503-5785-4c56-aa50-a42c7438960e
📒 Files selected for processing (4)
.git-hooks/commit-msg.github/workflows/commit-lint.ymlREADME.mdcommitlint.config.js
|



📋 Description
JIRA ID:
Add the commit message validation setup by defining the commit rules directly in commitlint.config.js instead of extending @commitlint/config-conventional.
✅ Type of Change
ℹ️ Additional Information
Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.
Summary by CodeRabbit