René's URL Explorer Experiment


Title: feat: add an argument to limit the length of commit message by kevin1kevin1k · Pull Request #1076 · commitizen-tools/commitizen · GitHub

Open Graph Title: feat: add an argument to limit the length of commit message by kevin1kevin1k · Pull Request #1076 · commitizen-tools/commitizen

X Title: feat: add an argument to limit the length of commit message by kevin1kevin1k · Pull Request #1076 · commitizen-tools/commitizen

Description: Description Re-opened another PR for #191 as the long-hanging #557 has been closed. Check if the length of commit message exceeds the specified limit. The limit can be specified via, for example, -l 72 or --message-length-limit 72. Checklist Add test cases to all the changes you introduce Run ./scripts/format and ./scripts/test locally to ensure this change passes linter check and test Test the changes on the local machine manually Update the documentation for the changes Expected behavior If one runs cz commit -l/--message-length-limit N, the commit would fail (with the exception CommitMessageLengthExceededError) when the message is longer than N characters. Note that for ConventionalCommitsCz, the limit applies only from the prefix to the subject. In other words, everything after the first line (the body and the footer) are not counted in the length. Steps to Test This Pull Request poetry run python commitizen/cli.py -n cz_conventional_commits c -l 10 (or cz -n cz_conventional_commits c -l 10 when merged) ENTER (type of change is fix: with length 5) ENTER (no scope) type 123456 with length 6 ENTER (no body) ENTER (not breaking change) ENTER (no footer) As 5+6 = 11 > 10 the process should exit with message Length of commit message exceeds limit (11/10) and error code 32. Additional context Closes: #191

Open Graph Description: Description Re-opened another PR for #191 as the long-hanging #557 has been closed. Check if the length of commit message exceeds the specified limit. The limit can be specified via, for example, ...

X Description: Description Re-opened another PR for #191 as the long-hanging #557 has been closed. Check if the length of commit message exceeds the specified limit. The limit can be specified via, for example, ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2026b561-65d4-70d4-2b7a-fb7f7e6a8533
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB4A8:1EE5:17E6BE8:22460BC:6A4FBF61
html-safe-noncec0195da1d0488124edfce7506de2193cdae4fb55fe7ab5975639aa0e5ec200c1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEE4OjFFRTU6MTdFNkJFODoyMjQ2MEJDOjZBNEZCRjYxIiwidmlzaXRvcl9pZCI6IjQzMzMwMzkyMTkzMzUyMTY5OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac963c57a31d787b20ed6a321db800101f419a4529cb628fff43b83c48eeb79920
hovercard-subject-tagpull_request:1833230378
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/1076/files
twitter:imagehttps://avatars.githubusercontent.com/u/9023838?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9023838?s=400&v=4
og:image:altDescription Re-opened another PR for #191 as the long-hanging #557 has been closed. Check if the length of commit message exceeds the specified limit. The limit can be specified via, for example, ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7d8f8209b188a80e19a6957836ab9229715797be5db1a04163963c674ccc33f6
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
releaseea848e83cf3bf3613dd7b13d52965a684fd23ec5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/pull/1076/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fpull%2F1076%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%2F1076%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/1076/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1076/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1076/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1076/files
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1076/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
Lee-Whttps://github.com/Lee-W
commitizen-tools:masterhttps://github.com/commitizen-tools/commitizen/tree/master
kevin1kevin1k:feature/add-commit-message-length-argumenthttps://github.com/kevin1kevin1k/commitizen/tree/feature/add-commit-message-length-argument
Conversation 14 https://github.com/commitizen-tools/commitizen/pull/1076
Commits 6 https://github.com/commitizen-tools/commitizen/pull/1076/commits
Checks 0 https://github.com/commitizen-tools/commitizen/pull/1076/checks
Files changed https://github.com/commitizen-tools/commitizen/pull/1076/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1076/files
feat: add an argument to limit the length of commit message https://github.com/commitizen-tools/commitizen/pull/1076/files#top
Show all changes 6 commits https://github.com/commitizen-tools/commitizen/pull/1076/files
2c03a94 feat: add an argument to limit the length of commit message kevin1kevin1k Apr 21, 2024 https://github.com/commitizen-tools/commitizen/pull/1076/commits/2c03a94ea4fde0934cd2ce34c621c98edfb9c814
1d2172e fix: resolve test error by removing defaults kevin1kevin1k Apr 21, 2024 https://github.com/commitizen-tools/commitizen/pull/1076/commits/1d2172e9ee6d7670deffdc2943e02a8dac4f4909
ab75e34 refactor: check the length in Commit instead of Commitizen kevin1kevin1k Apr 21, 2024 https://github.com/commitizen-tools/commitizen/pull/1076/commits/ab75e348ee96ba324b3320e022ca7e4b974b07a1
d0f3a4a fix: strip the commit message for calculating length kevin1kevin1k Apr 26, 2024 https://github.com/commitizen-tools/commitizen/pull/1076/commits/d0f3a4a9de562b8a9af58bf43e00d271f2903c8a
0d7eaee docs: emphasize the note on commit message length calculation kevin1kevin1k Apr 26, 2024 https://github.com/commitizen-tools/commitizen/pull/1076/commits/0d7eaee7630f1443ef328d5241537ef5aad4edcc
39792f2 refactor(commands/commit): replace comparison with chained comparison Lee-W Apr 29, 2024 https://github.com/commitizen-tools/commitizen/pull/1076/commits/39792f24be19a6366569ae7065dbf3d73166916b
Clear filters https://github.com/commitizen-tools/commitizen/pull/1076/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1076/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1076/files
cli.py https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
commit.py https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
jira.py https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-dd373ed9c8cff70b5dc930f016b14bd205d3435064802021bab09033f4f5003c
exceptions.py https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-24d118d7721fa479c9d00de66dedf65cb3e4216a10e814cc1f312dffe28895ea
commit.md https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-75889acbb4a44ac83fb7418b45a2b279b71565903e1b475d50ab27f620ec66f0
test_commit_command.py https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-5bdfd11ecf3f34f6417cd6fc41228373fe0267ebe044bd202b061d111a6f980f
test_cz_base.py https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-fe43d555ac61eb94369269046b6c3abda8703b997c1539ae2cc905a819d49650
commitizen/cli.pyhttps://github.com/commitizen-tools/commitizen/pull/1076/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
View file https://github.com/kevin1kevin1k/commitizen/blob/39792f24be19a6366569ae7065dbf3d73166916b/commitizen/cli.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1076/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-6a6eecba6ea4aab85dcb0372fe57ce7306496e5a47186850be245bd732e8894e
commitizen/commands/commit.pyhttps://github.com/commitizen-tools/commitizen/pull/1076/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
View file https://github.com/kevin1kevin1k/commitizen/blob/39792f24be19a6366569ae7065dbf3d73166916b/commitizen/commands/commit.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1076/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-b682eb395fc382939bf1e227cb02ffd1a9335e1ee404b17702afaed226535c74
commitizen/cz/jira/jira.pyhttps://github.com/commitizen-tools/commitizen/pull/1076/files#diff-dd373ed9c8cff70b5dc930f016b14bd205d3435064802021bab09033f4f5003c
View file https://github.com/kevin1kevin1k/commitizen/blob/39792f24be19a6366569ae7065dbf3d73166916b/commitizen/cz/jira/jira.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1076/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-dd373ed9c8cff70b5dc930f016b14bd205d3435064802021bab09033f4f5003c
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-dd373ed9c8cff70b5dc930f016b14bd205d3435064802021bab09033f4f5003c
commitizen/exceptions.pyhttps://github.com/commitizen-tools/commitizen/pull/1076/files#diff-24d118d7721fa479c9d00de66dedf65cb3e4216a10e814cc1f312dffe28895ea
View file https://github.com/kevin1kevin1k/commitizen/blob/39792f24be19a6366569ae7065dbf3d73166916b/commitizen/exceptions.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1076/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-24d118d7721fa479c9d00de66dedf65cb3e4216a10e814cc1f312dffe28895ea
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-24d118d7721fa479c9d00de66dedf65cb3e4216a10e814cc1f312dffe28895ea
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-24d118d7721fa479c9d00de66dedf65cb3e4216a10e814cc1f312dffe28895ea
docs/commit.mdhttps://github.com/commitizen-tools/commitizen/pull/1076/files#diff-75889acbb4a44ac83fb7418b45a2b279b71565903e1b475d50ab27f620ec66f0
View file https://github.com/kevin1kevin1k/commitizen/blob/39792f24be19a6366569ae7065dbf3d73166916b/docs/commit.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1076/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-75889acbb4a44ac83fb7418b45a2b279b71565903e1b475d50ab27f620ec66f0
tests/commands/test_commit_command.pyhttps://github.com/commitizen-tools/commitizen/pull/1076/files#diff-5bdfd11ecf3f34f6417cd6fc41228373fe0267ebe044bd202b061d111a6f980f
View file https://github.com/kevin1kevin1k/commitizen/blob/39792f24be19a6366569ae7065dbf3d73166916b/tests/commands/test_commit_command.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1076/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-5bdfd11ecf3f34f6417cd6fc41228373fe0267ebe044bd202b061d111a6f980f
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-5bdfd11ecf3f34f6417cd6fc41228373fe0267ebe044bd202b061d111a6f980f
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-5bdfd11ecf3f34f6417cd6fc41228373fe0267ebe044bd202b061d111a6f980f
tests/test_cz_base.pyhttps://github.com/commitizen-tools/commitizen/pull/1076/files#diff-fe43d555ac61eb94369269046b6c3abda8703b997c1539ae2cc905a819d49650
View file https://github.com/kevin1kevin1k/commitizen/blob/39792f24be19a6366569ae7065dbf3d73166916b/tests/test_cz_base.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1076/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-fe43d555ac61eb94369269046b6c3abda8703b997c1539ae2cc905a819d49650
https://github.com/commitizen-tools/commitizen/pull/1076/files#diff-fe43d555ac61eb94369269046b6c3abda8703b997c1539ae2cc905a819d49650
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.