feat: draft of the --empty parameter by 12rambau · Pull Request #696 · commitizen-tools/commitizen · GitHub
Skip to content

feat: draft of the --empty parameter - #696

Closed
12rambau wants to merge 28 commits into
commitizen-tools:v3from
12rambau:devrelease
Closed

feat: draft of the --empty parameter#696
12rambau wants to merge 28 commits into
commitizen-tools:v3from
12rambau:devrelease

Conversation

@12rambau

@12rambau 12rambau commented Apr 5, 2023

Copy link
Copy Markdown
Contributor

Description

First draft of a new feature. The idea is to grant the user the capability to run cz bump without prior commits. The reasons are described in the associated issue.

here we add an --empty parameter to the bump method
when this parameter is set and if no increment is find, a automatic "PATCH" is released.

I'll wait for your feedback before working on tests and documentation.

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

Additional context

Fix #662

noirbizarre and others added 27 commits March 2, 2023 18:57
Fixes commitizen-tools#607

BREAKING CHANGE: Python 3.6 is not officially supported anymore. Please migrate from 3.6 to 3.7 or greater.
…n loading

Plugins are now loaded using the `commitizen.plugin` entrypoint
while legacy plugin are not loaded anymore but a warning is raised when one is seen.

Fixes commitizen-tools#495

BREAKING CHANGE: Plugins are now exposed as `commitizen.plugin` entrypoints
Reads version from the repository last tag matching `tag_format`

Fixes commitizen-tools#641
Topological ordering should be used when ordering commits in changelog history.
This allows commits to be shown properly in the order they were added to the codebase,
even if non-linear merges were used
…mmit-order

fix(commands/changelog): use topological order for commit ordering
Running tests concurrently can cause temporary files, such as the file
used to backup the commit message, to be deleted by one test but
accessed by another test later on.
…lease

feat(changelog): add merge-prerelease flag
…-tools#686)

* feat(bump): version_provider=semver optional option to make version compatible with semver

Signed-off-by: apkawa <apkawa@gmail.com>

* refactor(bump): version_provider rename to version_type; `pep` option rename to `pep440`

Signed-off-by: apkawa <apkawa@gmail.com>

* docs(bump): add `version_type` info to config.md

Signed-off-by: apkawa <apkawa@gmail.com>

* refactor(bump): to use VersionProtocol interface instead packaging.Version subclass

Signed-off-by: apkawa <apkawa@gmail.com>

* test(bump): `VersionProtocol` workaround mypy for py==3.7

Signed-off-by: apkawa <apkawa@gmail.com>

* fix(changelog): `changelog` command does not find version tag with `version_type=semver` option

Signed-off-by: apkawa <apkawa@gmail.com>

* refactor: minor review fixes

* test(changelog): fix test_changelog_incremental_with_merge_prerelease issue with freeze_time

Signed-off-by: apkawa <apkawa@gmail.com>

---------

Signed-off-by: apkawa <apkawa@gmail.com>
@12rambau
12rambau changed the base branch from master to v3 April 19, 2023 08:13
@codecov

codecov Bot commented Apr 19, 2023

Copy link
Copy Markdown

@woile
woile deleted the branch commitizen-tools:v3 April 23, 2023 07:21
@woile woile closed this Apr 23, 2023
@12rambau

Copy link
Copy Markdown
Contributor Author

any specific reason why this PR was removed ? is the --empty parameter a no-go ?

@woile

woile commented Apr 23, 2023

Copy link
Copy Markdown
Member

I apologize, I don't know why it was closed (and it doesn't let me open it again). Please feel free to open a new one

@12rambau

Copy link
Copy Markdown
Contributor Author

Let me base it directly on v3 it will everyone's life easier

@woile

woile commented Apr 23, 2023

Copy link
Copy Markdown
Member

@12rambau 12rambau mentioned this pull request Apr 24, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create a dev bump straight after a normal bump

6 participants