Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@

## Unreleased

### Fix

- **changelog**: sort the commits properly to their version

## v1.19.1
## v1.19.1 (2020-05-03)

### Fix

Expand All @@ -12,7 +15,7 @@

- **cli**: add explicit category for deprecation warnings

## v1.19.0
## v1.19.0 (2020-05-02)

### Fix

Expand All @@ -24,11 +27,6 @@
- **changelog**: add support for any commit rule system
- **changelog**: add incremental flag

### Refactor

- **changelog**: use functions from changelog.py
- **changelog**: rename category to change_type to fit 'keep a changelog'

## v1.18.3 (2020-04-22)

### Refactor
Expand All @@ -40,6 +38,8 @@
### Refactor

- **git**: replace GitCommit.message code with one-liner
- **changelog**: use functions from changelog.py
- **changelog**: rename category to change_type to fit 'keep a changelog'
- **templates**: rename as "keep_a_changelog_template.j2"
- **templates**: remove unneeded __init__ file
- **cli**: reorder commands
Expand Down Expand Up @@ -175,20 +175,20 @@
### Refactor

- **tests/commands/bump**: use tmp_dir to replace self implemented tmp dir behavior
- **git**: make find_git_project_root return None if it's not a git project
- **config/base_config**: make set_key not implemented
- **error_codes**: move all the error_codes to a module
- **config**: replace string type path with pathlib.Path
- **test_bump_command**: rename camel case variables
- **tests/commands/check**: use pytest fixture tmpdir replace self implemented contextmanager
- **test/commands/other**: replace unit test style mock with mocker fixture
- **tests/commands**: separate command unit tests into modules
- **tests/commands**: make commands related tests a module
- **git**: make find_git_project_root return None if it's not a git project
- **config/base_config**: make set_key not implemented
- **error_codes**: move all the error_codes to a module
- **config**: replace string type path with pathlib.Path

### Fix

- **cli**: fix --version not functional
- **git**: remove breakline in the return value of find_git_project_root
- **cli**: fix --version not functional

### Feat

Expand Down Expand Up @@ -298,10 +298,10 @@
- **config**: add deprecation warning for loading config from ini files
- **cz/customize**: add jinja support to enhance template flexibility
- **cz/filters**: add required_validator and multiple_line_breaker
- **Commands/commit**: add ´--dry-run´ flag to the Commit command
- **cz/cz_customize**: implement info to support info and info_path
- **cz/cz_customize**: enable bump_pattern bump_map customization
- **cz/cz_customize**: implement customizable cz
- **Commands/commit**: add ´--dry-run´ flag to the Commit command
- new 'git-cz' entrypoint

### Refactor
Expand Down Expand Up @@ -512,10 +512,6 @@

## v0.9.2 (2017-11-11)

### Refactor

- **renamed conventional_changelog to conventional_commits, not backward compatible**:

## v0.9.1 (2017-11-11)

### Fix
Expand Down
2 changes: 1 addition & 1 deletion commitizen/commands/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __call__(self):
if latest_version:
start_rev = self._find_incremental_rev(latest_version, tags)

commits = git.get_commits(start=start_rev)
commits = git.get_commits(start=start_rev, args="--author-date-order")
if not commits:
out.error("No commits found")
raise SystemExit(NO_COMMITS_FOUND)
Expand Down
5 changes: 3 additions & 2 deletions commitizen/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def tag(tag: str):
return c


def commit(message: str, args=""):
def commit(message: str, args: str = ""):
f = NamedTemporaryFile("wb", delete=False)
f.write(message.encode("utf-8"))
f.close()
Expand All @@ -61,11 +61,12 @@ def get_commits(
*,
log_format: str = "%H%n%s%n%b",
delimiter: str = "----------commit-delimiter----------",
args: str = "",
) -> List[GitCommit]:
"""
Get the commits betweeen start and end
"""
git_log_cmd = f"git log --pretty={log_format}{delimiter}"
git_log_cmd = f"git log --pretty={log_format}{delimiter} {args}"

if start:
c = cmd.run(f"{git_log_cmd} {start}..{end}")
Expand Down