Title: feat: check if commit message is no more than 72 characters by kevin1kevin1k · Pull Request #557 · commitizen-tools/commitizen · GitHub
Open Graph Title: feat: check if commit message is no more than 72 characters by kevin1kevin1k · Pull Request #557 · commitizen-tools/commitizen
X Title: feat: check if commit message is no more than 72 characters by kevin1kevin1k · Pull Request #557 · commitizen-tools/commitizen
Description: Description Check if the length of commit message (the prefix(scope): subject part) does not exceed 72 characters. Currently only supports ConventionalCommitsCz; JiraSmartCz and CustomizeCommitsCz not implemented. An imperfect workaround for #191. 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 run cz commit with -cl or --check-length argument, the commit would fail when prefix(scope): subject is longer than 72 chars. Without the argument, the default behavior is to accept longer messages. Steps to Test This Pull Request cz commit -cl ENTER (type prefix: fix) ENTER (empty scope) 01234567890123456789012345678901234567890123456789012345678901234567 (for subject) ENTER (empty body) ENTER (not breaking change) ENTER (no footer) Then cz should exit with message Length of commit message exceeded limit (73/72) and error code 23. Additional context
Open Graph Description: Description Check if the length of commit message (the prefix(scope): subject part) does not exceed 72 characters. Currently only supports ConventionalCommitsCz; JiraSmartCz and CustomizeCommitsCz ...
X Description: Description Check if the length of commit message (the prefix(scope): subject part) does not exceed 72 characters. Currently only supports ConventionalCommitsCz; JiraSmartCz and CustomizeCommitsCz ...
Opengraph URL: https://github.com/commitizen-tools/commitizen/pull/557
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a45c8e36-558a-62f0-a35b-48c75f3410dd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BBD2:2DC8D1:61FB59E:8A23CD1:6A502852 |
| html-safe-nonce | 66692e0d8fbd0f01a55022fd7f1fd0fb6ca4f58fa32e8aa444b3e88a8762f89a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkQyOjJEQzhEMTo2MUZCNTlFOjhBMjNDRDE6NkE1MDI4NTIiLCJ2aXNpdG9yX2lkIjoiMjM4NDcwNTAwMTQ2MzIyODQ5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9945514e2328a9e7cfe9d3b712927724810d4ff226ab9cf43c2b999cc2a75311 |
| hovercard-subject-tag | pull_request:1025754592 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/commitizen-tools/commitizen/pull/557/files |
| twitter:image | https://avatars.githubusercontent.com/u/9023838?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9023838?s=400&v=4 |
| og:image:alt | Description Check if the length of commit message (the prefix(scope): subject part) does not exceed 72 characters. Currently only supports ConventionalCommitsCz; JiraSmartCz and CustomizeCommitsCz ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git |
| octolytics-dimension-user_id | 62252524 |
| octolytics-dimension-user_login | commitizen-tools |
| octolytics-dimension-repository_id | 106127589 |
| octolytics-dimension-repository_nwo | commitizen-tools/commitizen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 106127589 |
| octolytics-dimension-repository_network_root_nwo | commitizen-tools/commitizen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d90666eaf032b7eb8975a378efe38e37f4ebb96c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width