Title: feat(conventional_commits): add ability to overide settings from tool… by AxTheB · Pull Request #1570 · commitizen-tools/commitizen · GitHub
Open Graph Title: feat(conventional_commits): add ability to overide settings from tool… by AxTheB · Pull Request #1570 · commitizen-tools/commitizen
X Title: feat(conventional_commits): add ability to overide settings from tool… by AxTheB · Pull Request #1570 · commitizen-tools/commitizen
Description: ….commitizen.customize Description Adds ability to override settings using [tool.commitizen.customize] in the cz_conventional_commits Checklist I have read the contributing guidelines Code Changes Add test cases to all the changes you introduce Run poetry 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 poetry doc locally to ensure the documentation pages renders correctly Check and fix any broken links (internal or external) in the documentation Expected Behavior You use conventional_commits commitizen, and using [tool.commitizen.customize] config section you override selected settings Steps to Test This Pull Request Add this to pyproject.tomp in existing project using conventional_commits and update_changelog_on_bump = true: [tool.commitizen.customize] change_type_map = {"feat" = "✨ Feat", "fix" = "🐛 Bug Fix", "refactor" = "♻️ Refactor", "perf" = "⚡️ Perf"} do cz bump --dry-run and observe that changelog headers have gitmoji. Test that other behavior is identical to unpatched version test that bump_map = {"^.+!$" = "MAJOR", "^feat" = "MAJOR", "^fix" = "MINOR", "^refactor" = "MINOR", "^perf" = "MINOR"} bumps MINOR not PATCH part on fix commit, test that other things are unchanged. Test other settings. Additional Context This is starting shot at #1385 To test this I copied tests for cz_customize, removed name=... from all configs there and removed the tests that don't make sense, for example exception for missing customize section.
Open Graph Description: ….commitizen.customize Description Adds ability to override settings using [tool.commitizen.customize] in the cz_conventional_commits Checklist I have read the contributing guidelines Code Chan...
X Description: ….commitizen.customize Description Adds ability to override settings using [tool.commitizen.customize] in the cz_conventional_commits Checklist I have read the contributing guidelines Code Chan...
Opengraph URL: https://github.com/commitizen-tools/commitizen/pull/1570
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4894cf89-da58-8da2-2e33-2de69fa4d77e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8946:2C03D:4E814E5:6D52BC4:6A4F6B22 |
| html-safe-nonce | 8fe9ef7c7fa96419ee3a8ee48660e37da25bc7bd5e5c2d63cc1c751915270e86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTQ2OjJDMDNEOjRFODE0RTU6NkQ1MkJDNDo2QTRGNkIyMiIsInZpc2l0b3JfaWQiOiIxNjkxNDAzNjA2NjUyMDU0MzA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | aad74e55ace0d97cde3912de31d70d541667532db1feba8e4ad5dc53b7618469 |
| hovercard-subject-tag | pull_request:2726042318 |
| 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/1570/files |
| twitter:image | https://avatars.githubusercontent.com/u/642174?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/642174?s=400&v=4 |
| og:image:alt | ….commitizen.customize Description Adds ability to override settings using [tool.commitizen.customize] in the cz_conventional_commits Checklist I have read the contributing guidelines Code Chan... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width