Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork295
feat(commit): implement questions 'filter' support with handlers#1207
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecovbot commentedAug 13, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## master #1207 +/- ##==========================================+ Coverage 97.33% 97.67% +0.34%========================================== Files 42 57 +15 Lines 2104 2671 +567 ==========================================+ Hits 2048 2609 +561- Misses 56 62 +6
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:
|
e04ce53
to5011a91
Compare
|
780b16b
toc24db8a
CompareUh oh!
There was an error while loading.Please reload this page.
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'm sending a "Request changes" to this PR as I'm -1 to this but would like to get feedback from other maintainers
65f4d93
to314f3bf
CompareRefactored as discussed : Supported APIs:
Example YAML configurations: commitizen:name:cz_customizecustomize:questions: -... -type:inputname:scopemessage:'Scope of the change :'filter:'required_validator_scope'default:'' -type:inputname:subjectmessage:'Title of the commit (starting in lower case and without period) :'filter:'required_validator_subject_strip'default:'' -type:inputname:bodymessage:'Additional contextual message (Empty to skip) :'default:'Issue: #...'filter:'multiple_line_breaker' |
8e411f3
to33bbf0f
CompareRebased 😉 . Please cherry-pick at least the coverage improvements and minor fixes before the filter features review 👍 . |
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.
Sorry for taking so long. Just left some comments
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Signed-off-by: Adrian DC <radian.dc@gmail.com>
> commitizen.exceptions.InvalidConfigurationError: Failed to parse not_exist.yaml: while scanning a double-quoted scalar> found unknown escape character 's'Signed-off-by: Adrian DC <radian.dc@gmail.com>
> test_commit_parser[config2] - AssertionError:> assert '(?P<message>.*)' == '^(?P<change_...<message>.*)?'> test_changelog_pattern[config2] - AssertionError:> assert '.*' == '^(feature|bug fix)?(!)?'> test_change_type_map[config2] - AssertionError:> assert None == {'bug fix': 'Fix', 'feature': 'Feat'}Signed-off-by: Adrian DC <radian.dc@gmail.com>
Signed-off-by: Adrian DC <radian.dc@gmail.com>
Details: If using a TOML configuration, the type was 'tomlkit.items.AoT'---Signed-off-by: Adrian DC <radian.dc@gmail.com>
Signed-off-by: Adrian DC <radian.dc@gmail.com>
Supported APIs: - multiple_line_breaker - required_validator - required_validator_scope - required_validator_subject_strip - required_validator_title_stripExample YAML configurations:---commitizen: name: cz_customize customize: questions: - ... - type: input name: scope message: 'Scope of the change :' filter: 'required_validator_scope' default: '' - type: input name: subject message: 'Title of the commit (starting in lower case and without period) :' filter: 'required_validator_subject_strip' default: '' - type: input name: body message: 'Additional contextual message (Empty to skip) :' default: 'Issue: #...' filter: 'multiple_line_breaker'---Signed-off-by: Adrian DC <radian.dc@gmail.com>
Signed-off-by: Adrian DC <radian.dc@gmail.com>
I'll come back to this one after 4.8.3 release. As for another PR, I'll take a look at these 2 days. Sorry for the long waiting and thanks so much for still being around! |
Description
Supported APIs: Common Python, commitizen.cz.utils.* functions
Example YAML configurations:
Additional commits to add missing YAML tests, fix YAML configurations, and then add the keys for this feature.
Checklist
./scripts/format
and./scripts/test
locally to ensure this change passes linter check and testExpected behavior
Steps to Test This Pull Request
Example provided in the description
Additional context