-
-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add imperative mode #258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Caution Review failedThe pull request is closed. WalkthroughA new imperative mood check for commit messages was introduced. This includes a wordlist of imperative verbs, a new check function, CLI integration, configuration updates, documentation, and comprehensive tests. The check can be enabled via CLI or pre-commit configuration, and ensures commit messages use the imperative mood in their subject lines. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant CommitCheckMain
participant CommitCheckCommit
participant ImperativesSet
User->>CLI: Run commit-check --imperative -m <msg>
CLI->>CommitCheckMain: Parse arguments
CommitCheckMain->>CommitCheckCommit: check_imperative(checks, commit_msg_file)
CommitCheckCommit->>ImperativesSet: Load imperative verbs
CommitCheckCommit->>CommitCheckCommit: Analyze commit message subject
CommitCheckCommit->>CommitCheckMain: Return PASS/FAIL
CommitCheckMain->>CLI: Output result
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (10)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #258 +/- ##
===========================================
- Coverage 100.00% 99.13% -0.87%
===========================================
Files 7 8 +1
Lines 300 347 +47
===========================================
+ Hits 300 344 +44
- Misses 0 3 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CodSpeed Performance ReportMerging #258 will degrade performances by 11.52%Comparing 🎉 Hooray!
|
Benchmark | BASE |
HEAD |
Change | |
---|---|---|---|---|
🆕 | test_check_imperative_different_check_type |
N/A | 964.3 µs | N/A |
🆕 | test_check_imperative_empty_checks |
N/A | 959.8 µs | N/A |
🆕 | test_check_imperative_fail_past_tense |
N/A | 2.6 ms | N/A |
🆕 | test_check_imperative_fail_present_continuous |
N/A | 2.6 ms | N/A |
🆕 | test_check_imperative_no_commits |
N/A | 787.2 µs | N/A |
🆕 | test_check_imperative_pass |
N/A | 1 ms | N/A |
🆕 | test_check_imperative_skip_merge_commit |
N/A | 1 ms | N/A |
🆕 | test_is_imperative_invalid_cases |
N/A | 186.6 µs | N/A |
🆕 | test_is_imperative_valid_cases |
N/A | 145.3 µs | N/A |
🆕 | test_main[argv0-1-0-0-0-0-0] |
N/A | 5.7 ms | N/A |
test_main[argv0-1-0-0-0-0] |
5.1 ms | N/A | N/A | |
🆕 | test_main[argv1-0-1-0-0-0-0] |
N/A | 5.7 ms | N/A |
test_main[argv1-0-1-0-0-0] |
5.1 ms | N/A | N/A | |
🆕 | test_main[argv10-1-1-1-0-0-0] |
N/A | 6.3 ms | N/A |
test_main[argv10-1-1-2-0-0] |
5.7 ms | N/A | N/A | |
🆕 | test_main[argv11-1-1-2-0-0-0] |
N/A | 6.3 ms | N/A |
test_main[argv11-1-1-2-1-1] |
6.3 ms | N/A | N/A | |
test_main[argv12-0-0-0-0-0] |
4.4 ms | N/A | N/A | |
🆕 | test_main[argv12-1-1-2-1-1-0] |
N/A | 6.9 ms | N/A |
🆕 | test_main[argv13-1-0-0-0-0-1] |
N/A | 6 ms | N/A |
... | ... | ... | ... | ... |
ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.
|
closes #256
Summary by CodeRabbit