Title: build commit is not eligible to be bumped · Issue #781 · commitizen-tools/commitizen · GitHub
Open Graph Title: build commit is not eligible to be bumped · Issue #781 · commitizen-tools/commitizen
X Title: build commit is not eligible to be bumped · Issue #781 · commitizen-tools/commitizen
Description: Description Hello, Thanks for creating and maintaining this great library 🙏 I found out that build: commits don't qualify as eligible for bumping anymore. I couldn't find any information if this is an expected behaviour, so I guess it mi...
Open Graph Description: Description Hello, Thanks for creating and maintaining this great library 🙏 I found out that build: commits don't qualify as eligible for bumping anymore. I couldn't find any information if this is...
X Description: Description Hello, Thanks for creating and maintaining this great library 🙏 I found out that build: commits don't qualify as eligible for bumping anymore. I couldn't find any information if...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/781
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"build commit is not eligible to be bumped","articleBody":"### Description\r\n\r\nHello,\r\n\r\nThanks for creating and maintaining this great library 🙏\r\n\r\nI found out that `build:` commits don't qualify as eligible for bumping anymore. I couldn't find any information if this is an expected behaviour, so I guess it might be a potential bug. It seems that it was working in 3.2.1 since it was the version that I was using before updating to the latest one.\r\n\r\n### Steps to reproduce\r\n\r\n```\r\n𝝺 cz c\r\n? Select the type of change you are committing build: Changes that affect the build system or external dependencies (example scopes: pip, docker, npm)\r\n? What is the scope of this change? (class or file name): (press [enter] to skip)\r\n \r\n? Write a short and imperative summary of the code changes: (lower case and no period)\r\n dockerfile parent image update\r\n? Provide additional contextual information about the code changes: (press [enter] to skip)\r\n \r\n? Is this a BREAKING CHANGE? Correlates with MAJOR in SemVer No\r\n? Footer. Information about Breaking Changes and reference issues that this commit closes: (press [enter] to skip)\r\n \r\n\r\nbuild: dockerfile parent image update\r\n\r\n\r\n[feat/dockerfile 71292a7] build: dockerfile parent image update\r\n 1 file changed, 1 insertion(+), 1 deletion(-)\r\n\r\nCommit successful!\r\n𝝺 cz bump\r\n[ci skip] bump: 0.2.0 → 0.2.0\r\ntag to create: v0.2.0\r\n\r\n[NO_COMMITS_TO_BUMP]\r\nThe commits found are not eligible to be bumped\r\n```\r\n\r\nAlthough, if I select the `BREAKING CHANGE`, it's bumped.\r\n```\r\n𝝺 cz c\r\n? Select the type of change you are committing build: Changes that affect the build system or external dependencies (example scopes: pip, docker, npm)\r\n? What is the scope of this change? (class or file name): (press [enter] to skip)\r\n \r\n? Write a short and imperative summary of the code changes: (lower case and no period)\r\n dockerfile\r\n? Provide additional contextual information about the code changes: (press [enter] to skip)\r\n \r\n? Is this a BREAKING CHANGE? Correlates with MAJOR in SemVer Yes\r\n? Footer. Information about Breaking Changes and reference issues that this commit closes: (press [enter] to skip)\r\n \r\n\r\nbuild: dockerfile\r\n\r\nBREAKING CHANGE: \r\n\r\n\r\n[feat/dockerfile 3439504] build: dockerfile\r\n 1 file changed, 1 insertion(+), 1 deletion(-)\r\n\r\nCommit successful!\r\n𝝺 cz bump\r\n[ci skip] bump: 0.2.0 → 1.0.0\r\ntag to create: v1.0.0\r\nincrement detected: MAJOR\r\n\r\n[feat/search-gate 2404a26] [ci skip] bump: 0.7.0 → 1.0.0\r\n 3 files changed, 4 insertions(+), 4 deletions(-)\r\n\r\nDone!\r\n```\r\n\r\n### Current behavior\r\n\r\nAs you can see, I can't bump the version after committing a `build` change. I also noticed that `ci` is not eligible either, so probably more of the commits type are influenced by this.\r\nDocumentation says that everything other than a `BREAKING CHANGE` and `feat` should be bumped as `PATCH`, here's the [link](https://commitizen-tools.github.io/commitizen/bump/#:~:text=fix%20%2B%20everything%20else).\r\n\r\nIt works for breaking changes, so it seems it takes precedence over the commit types.\r\n\r\n### Desired behavior\r\n\r\nI would argue that commits related to the build process, e.g. docker image version, `O` flags for the compiler, pip dependency updates, poetry.lock update, etc. should be bumped as `PATCH` at least. These changes may not necessarily change the code behaviour but they certainly change the environment and the state of the codebase which may lead to unexpected results.\r\n\r\nI don't want to replace such commits with feats or fixes since the code itself is not changed.\r\n\r\nIf this is an expected behaviour, it would be good to reflect that in the documentation.\r\n\r\n### Screenshots\r\n\r\n_No response_\r\n\r\n### Environment\r\n\r\n```\r\n𝝺 cz version --report\r\nCommitizen Version: 3.5.2\r\nPython Version: 3.11.4 (main, Jun 20 2023, 17:23:00) [Clang 14.0.3 (clang-1403.0.22.14.1)]\r\nOperating System: Darwin\r\n```\r\n\r\nEDIT:\r\n- added a note about `ci` being influenced too","author":{"url":"https://github.com/pdarulewski","@type":"Person","name":"pdarulewski"},"datePublished":"2023-07-05T15:47:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/781/commitizen/issues/781"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:33de24c1-1f2e-bfe3-cdb8-ad123a0b7bb3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C8E:4C22E:482449:68E7D8:6A620963 |
| html-safe-nonce | 3d0c3e995fa0bd35d7432a27b9b721266be5779aca358e103ba7339c1fe99795 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzhFOjRDMjJFOjQ4MjQ0OTo2OEU3RDg6NkE2MjA5NjMiLCJ2aXNpdG9yX2lkIjoiNTIxNzg5ODU4NjUwMDYzMDg4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1efe145596f9cbe7a65d4c83d7a6206f7fd5c0547c60cccb77da43d3ff922db9 |
| hovercard-subject-tag | issue:1789836140 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/commitizen-tools/commitizen/781/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3222385498ff66233ebb2f06024e3d45a24afdac2d16082414b3b4cfa980cc8c/commitizen-tools/commitizen/issues/781 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3222385498ff66233ebb2f06024e3d45a24afdac2d16082414b3b4cfa980cc8c/commitizen-tools/commitizen/issues/781 |
| og:image:alt | Description Hello, Thanks for creating and maintaining this great library 🙏 I found out that build: commits don't qualify as eligible for bumping anymore. I couldn't find any information if this is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pdarulewski |
| hostname | github.com |
| expected-hostname | github.com |
| None | be9a4d9589756e22b427637ffbf1123a96e067050e57f5cec403e3080a650ca4 |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7b5509702f01f876c214a2cbb142690847de0019 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width