-
-
Notifications
You must be signed in to change notification settings - Fork 300
refactor(Commit): refactor _prompt_commit_questions and fix some type… #1632
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
base: v4-9-2
Are you sure you want to change the base?
refactor(Commit): refactor _prompt_commit_questions and fix some type… #1632
Conversation
5fa3486 to
5af9f3f
Compare
| if len(subject) > limit: | ||
| raise CommitMessageLengthExceededError( | ||
| f"Length of commit message exceeds limit ({message_len}/{message_length_limit})" | ||
| f"Length of commit message exceeds limit ({len(subject)}/{limit}), subject: '{subject}'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe appending more details is not a breaking change?
| return message | ||
|
|
||
| def _validate_subject_length(self, message: str) -> None: | ||
| # By the contract, message_length_limit is set to 0 for no limit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if it still works if we use None for no limit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to a comment in #1574
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v4-9-2 #1632 +/- ##
=========================================
Coverage ? 98.32%
=========================================
Files ? 58
Lines ? 2685
Branches ? 0
=========================================
Hits ? 2640
Misses ? 45
Partials ? 0
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:
|
5af9f3f to
6f9fd0d
Compare
… hint
Description
Checklist
Code Changes
poetry alllocally to ensure this change passes linter check and testsDocumentation Changes
poetry doclocally to ensure the documentation pages renders correctlyExpected Behavior
Steps to Test This Pull Request
Additional Context