René's URL Explorer Experiment


Title: Feat: Validate `message_length_limit` is non-negative by ttw225 · Pull Request #1908 · commitizen-tools/commitizen · GitHub

Open Graph Title: Feat: Validate `message_length_limit` is non-negative by ttw225 · Pull Request #1908 · commitizen-tools/commitizen

X Title: Feat: Validate `message_length_limit` is non-negative by ttw225 · Pull Request #1908 · commitizen-tools/commitizen

Description: Description Added validation for message_length_limit coming from either CLI or config: it must be a non-negative integer (>= 0). Negative values raise InvalidCommandArgumentError. This PR was rebased from #1900 , focusing on the message_length_limit >= 0 validation behavior. Checklist I have read the contributing guidelines Was generative AI tooling used to co-author this PR? Yes (please specify the tool below) Co-generated-by: [Cursor] following the guidelines Code Changes Add test cases to all the changes you introduce Run uv run poe all locally to ensure this change passes linter check and tests Manually test the changes: Verify the feature/bug fix works as expected in real-world scenarios Test edge cases and error conditions Ensure backward compatibility is maintained Document any manual testing steps performed Update the documentation for the changes Documentation Changes Run uv run poe doc locally to ensure the documentation pages renders correctly Check and fix any broken links (internal or external) Expected Behavior --message-length-limit -1 or message_length_limit = -1 in config results in an error (InvalidCommandArgumentError). Steps to Test This Pull Request cz check -l -1 --message "feat: hello" cz commit -l -1 Additional Context

Open Graph Description: Description Added validation for message_length_limit coming from either CLI or config: it must be a non-negative integer (>= 0). Negative values raise InvalidCommandArgumentError. This PR was...

X Description: Description Added validation for message_length_limit coming from either CLI or config: it must be a non-negative integer (>= 0). Negative values raise InvalidCommandArgumentError. This PR...

Opengraph URL: https://github.com/commitizen-tools/commitizen/pull/1908

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4a5f5561-1543-fb76-0cd7-5877f16ca090
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB6BA:1F16:769DED:AC8A53:6A4F5F2C
html-safe-nonceb339974346df27f104584dfd64a25244faf282fbd2c1b38d5c52797d55d307d9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkJBOjFGMTY6NzY5REVEOkFDOEE1Mzo2QTRGNUYyQyIsInZpc2l0b3JfaWQiOiI3NTcwMjYzOTI1NTQ5MTI5NTE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc559c773cb80f994828fcc05752803adcdffe9a0114308896438a6d4236c8b30
hovercard-subject-tagpull_request:3423068228
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/commitizen-tools/commitizen/pull/1908/files
twitter:imagehttps://avatars.githubusercontent.com/u/35064951?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/35064951?s=400&v=4
og:image:altDescription Added validation for message_length_limit coming from either CLI or config: it must be a non-negative integer (>= 0). Negative values raise InvalidCommandArgumentError. This PR was...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git
octolytics-dimension-user_id62252524
octolytics-dimension-user_logincommitizen-tools
octolytics-dimension-repository_id106127589
octolytics-dimension-repository_nwocommitizen-tools/commitizen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id106127589
octolytics-dimension-repository_network_root_nwocommitizen-tools/commitizen
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/pull/1908/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fpull%2F1908%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fpull%2F1908%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=commitizen-tools%2Fcommitizen
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1908/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1908/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1908/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1908/files
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1908/files
Notifications https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Fork 344 https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Star 3.5k https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Code https://github.com/commitizen-tools/commitizen
Issues 116 https://github.com/commitizen-tools/commitizen/issues
Pull requests 45 https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality 0 https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Code https://github.com/commitizen-tools/commitizen
Issues https://github.com/commitizen-tools/commitizen/issues
Pull requests https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fcommitizen-tools%2Fcommitizen%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen%2Fissues%2Fnew%2Fchoose
ttw225https://github.com/ttw225
commitizen-tools:masterhttps://github.com/commitizen-tools/commitizen/tree/master
ttw225:feat/validate-message-length-limithttps://github.com/ttw225/commitizen/tree/feat/validate-message-length-limit
Conversation 1 https://github.com/commitizen-tools/commitizen/pull/1908
Commits 11 https://github.com/commitizen-tools/commitizen/pull/1908/commits
Checks 20 https://github.com/commitizen-tools/commitizen/pull/1908/checks
Files changed https://github.com/commitizen-tools/commitizen/pull/1908/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1908/files
Feat: Validate message_length_limit is non-negative https://github.com/commitizen-tools/commitizen/pull/1908/files#top
Show all changes 11 commits https://github.com/commitizen-tools/commitizen/pull/1908/files
092ec64 fix(commit): honor message length limit from cli and config ttw225 Mar 18, 2026 https://github.com/commitizen-tools/commitizen/pull/1908/commits/092ec64e004e20b58d0318e9e83afd52b9a42f4f
2be6bcb fix(check): honor message length limit from cli and config ttw225 Mar 18, 2026 https://github.com/commitizen-tools/commitizen/pull/1908/commits/2be6bcb93de598b23dda71242e49abd8b36efb5e
6d7bba1 test(commit): add coverage for message length limit precedence ttw225 Mar 18, 2026 https://github.com/commitizen-tools/commitizen/pull/1908/commits/6d7bba1cf77dc3e762642e5e4d1547d7f948b5e8
b0deaf6 test(check): add coverage for message length limit precedence ttw225 Mar 18, 2026 https://github.com/commitizen-tools/commitizen/pull/1908/commits/b0deaf64afa0ff87054b56dbd847f17f2fe88cce
e61f70c test(cli-config): add integration tests for message length limit config ttw225 Mar 18, 2026 https://github.com/commitizen-tools/commitizen/pull/1908/commits/e61f70cca2006d26a6d3bf26eb35e437a314f96c
e6e7475 fix(types): allow None for message_length_limit cli arg ttw225 Mar 18, 2026 https://github.com/commitizen-tools/commitizen/pull/1908/commits/e6e74751f222dfe01ff3174ea4f29e28e9ee68f9
f5c4b48 refactor(test): apply type-check-only imports ttw225 Mar 18, 2026 https://github.com/commitizen-tools/commitizen/pull/1908/commits/f5c4b4880bd3204d75ee1ba702d784bcf16c0624
5e5778b feat(check): validate non-negative message_length_limit ttw225 Mar 20, 2026 https://github.com/commitizen-tools/commitizen/pull/1908/commits/5e5778b25b7b6d5e4a647be9e8988068b9406199
e626291 feat(commit): validate non-negative message_length_limit ttw225 Mar 20, 2026 https://github.com/commitizen-tools/commitizen/pull/1908/commits/e626291e10954652c9d77f89372694b8f8b9e82f
67db626 test(message_length_limit): validate negative message_length_limit ttw225 Mar 20, 2026 https://github.com/commitizen-tools/commitizen/pull/1908/commits/67db6262ca88a6f2be44a372c5902c0dea52f9dd
f2ac1c1 docs(message_length_limit): document non-negative limit ttw225 Mar 20, 2026 https://github.com/commitizen-tools/commitizen/pull/1908/commits/f2ac1c1604ee2da9cb4b79f91810aa4e8ac9f5b9
Clear filters https://github.com/commitizen-tools/commitizen/pull/1908/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1908/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1908/files
check.py https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-f2009c94d59b697e08241dfc746bd98bd9b47072ba948b2c7bab01fba887b453
commit.py https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
check.md https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-d8a23347272389a3273dd8f81f403483922edac23d5f8c6b8609859306becaa8
commit.md https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-42ff5bd088cca6dd2b0a8af8bff071f045011c4ed5f5d979c12c590576c3a9f8
test_check_command.py https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-7b8c8b76ce1d42b29a8318f7447acfcaf7565dd871c3427bfaf69f70f700b836
test_commit_command.py https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-5bdfd11ecf3f34f6417cd6fc41228373fe0267ebe044bd202b061d111a6f980f
test_cli_config_integration.py https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-3373d2a64e01f294dbf366f734070b33d1a9eaaa909d09a427fe0ee74070538e
commitizen/commands/check.pyhttps://github.com/commitizen-tools/commitizen/pull/1908/files#diff-f2009c94d59b697e08241dfc746bd98bd9b47072ba948b2c7bab01fba887b453
View file https://github.com/commitizen-tools/commitizen/blob/f2ac1c1604ee2da9cb4b79f91810aa4e8ac9f5b9/commitizen/commands/check.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1908/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-f2009c94d59b697e08241dfc746bd98bd9b47072ba948b2c7bab01fba887b453
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-f2009c94d59b697e08241dfc746bd98bd9b47072ba948b2c7bab01fba887b453
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-f2009c94d59b697e08241dfc746bd98bd9b47072ba948b2c7bab01fba887b453
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-f2009c94d59b697e08241dfc746bd98bd9b47072ba948b2c7bab01fba887b453
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-f2009c94d59b697e08241dfc746bd98bd9b47072ba948b2c7bab01fba887b453
commitizen/commands/commit.pyhttps://github.com/commitizen-tools/commitizen/pull/1908/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
View file https://github.com/commitizen-tools/commitizen/blob/f2ac1c1604ee2da9cb4b79f91810aa4e8ac9f5b9/commitizen/commands/commit.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1908/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
docs/config/check.mdhttps://github.com/commitizen-tools/commitizen/pull/1908/files#diff-d8a23347272389a3273dd8f81f403483922edac23d5f8c6b8609859306becaa8
View file https://github.com/commitizen-tools/commitizen/blob/f2ac1c1604ee2da9cb4b79f91810aa4e8ac9f5b9/docs/config/check.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1908/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-d8a23347272389a3273dd8f81f403483922edac23d5f8c6b8609859306becaa8
docs/config/commit.mdhttps://github.com/commitizen-tools/commitizen/pull/1908/files#diff-42ff5bd088cca6dd2b0a8af8bff071f045011c4ed5f5d979c12c590576c3a9f8
View file https://github.com/commitizen-tools/commitizen/blob/f2ac1c1604ee2da9cb4b79f91810aa4e8ac9f5b9/docs/config/commit.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1908/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-42ff5bd088cca6dd2b0a8af8bff071f045011c4ed5f5d979c12c590576c3a9f8
tests/commands/test_check_command.pyhttps://github.com/commitizen-tools/commitizen/pull/1908/files#diff-7b8c8b76ce1d42b29a8318f7447acfcaf7565dd871c3427bfaf69f70f700b836
View file https://github.com/commitizen-tools/commitizen/blob/f2ac1c1604ee2da9cb4b79f91810aa4e8ac9f5b9/tests/commands/test_check_command.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1908/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-7b8c8b76ce1d42b29a8318f7447acfcaf7565dd871c3427bfaf69f70f700b836
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-7b8c8b76ce1d42b29a8318f7447acfcaf7565dd871c3427bfaf69f70f700b836
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-7b8c8b76ce1d42b29a8318f7447acfcaf7565dd871c3427bfaf69f70f700b836
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-7b8c8b76ce1d42b29a8318f7447acfcaf7565dd871c3427bfaf69f70f700b836
tests/commands/test_commit_command.pyhttps://github.com/commitizen-tools/commitizen/pull/1908/files#diff-5bdfd11ecf3f34f6417cd6fc41228373fe0267ebe044bd202b061d111a6f980f
View file https://github.com/commitizen-tools/commitizen/blob/f2ac1c1604ee2da9cb4b79f91810aa4e8ac9f5b9/tests/commands/test_commit_command.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1908/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-5bdfd11ecf3f34f6417cd6fc41228373fe0267ebe044bd202b061d111a6f980f
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-5bdfd11ecf3f34f6417cd6fc41228373fe0267ebe044bd202b061d111a6f980f
https://github.com/commitizen-tools/commitizen/pull/1908/files#diff-5bdfd11ecf3f34f6417cd6fc41228373fe0267ebe044bd202b061d111a6f980f
tests/test_cli_config_integration.pyhttps://github.com/commitizen-tools/commitizen/pull/1908/files#diff-3373d2a64e01f294dbf366f734070b33d1a9eaaa909d09a427fe0ee74070538e
View file https://github.com/commitizen-tools/commitizen/blob/f2ac1c1604ee2da9cb4b79f91810aa4e8ac9f5b9/tests/test_cli_config_integration.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1908/{{ revealButtonHref }}
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1908/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.