Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Command changelog #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
woile merged 36 commits into master from command-changelog
May 2, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d1cac30
feat(changelog): changelog tree generation from markdown
woile Jul 20, 2019
9326693
feat(cz/base): add default process_commit for processing commit message
Lee-W Jan 15, 2020
0c3b666
feat(cz/conventinal_commits): add changelog_map, changelog_pattern an...
Lee-W Jan 15, 2020
cda6be4
feat(commands/changelog): generate changelog_tree from all past commits
Lee-W Jan 15, 2020
dee8285
feat(changelog): generate changelog based on git log
Lee-W Jan 17, 2020
b5eb128
style(all): blackify
Lee-W Jan 15, 2020
0878114
refactor(commands/changelog): use jinja2 template instead of string c...
Lee-W Jan 23, 2020
4982fae
fix(cli): add changelog arguments
Lee-W Jan 23, 2020
2cfd9de
feat(commands/changlog): add --start-rev argument to `cz changelog`
Lee-W Jan 23, 2020
3df0a7a
style(cli): fix flake8 issue
Lee-W Jan 23, 2020
ace33cc
refactor(commands/changelog): remove redundant if statement
Lee-W Jan 23, 2020
a928525
refactor(tests/utils): move create_file_and_commit to tests/utils
Lee-W Jan 23, 2020
5f9cf46
feat(commands/changelog): exit when there is no commit exists
Lee-W Jan 23, 2020
3a80c56
fix(commands/changelog): remove --skip-merge argument
Lee-W Jan 23, 2020
2a2a29e
fix(commitizen/cz): set changelog_map, changelog_pattern to none as d...
Lee-W Jan 23, 2020
0b0676d
fix(changelog_template): fix list format
Lee-W Jan 23, 2020
2b15a1b
test(commands/changelog): add test case for changelog command
Lee-W Jan 23, 2020
a032fa4
refactor(templates): move changelog_template from cz to templates
Lee-W Jan 23, 2020
384018d
refactor(cli): reorder commands
Lee-W Jan 24, 2020
5ae9058
docs(README): add changelog command
Lee-W Jan 24, 2020
1ece991
refactor(templates): remove unneeded __init__ file
Lee-W Jan 24, 2020
5b9c564
style(tests/commands/changelog): blackify
Lee-W Jan 24, 2020
11e24d3
refactor(templates): rename as "keep_a_changelog_template.j2"
Lee-W Jan 24, 2020
2becf57
feat(commands/changelog): make changelog_file an option in config
Lee-W Jan 24, 2020
81b27c5
docs(config): add changlog_file a config option
Lee-W Jan 24, 2020
78b321e
fix(cz/conventional_commits): fix schema_pattern break due to rebase
Lee-W Mar 16, 2020
5bf5542
style: reformat
Lee-W Mar 16, 2020
65d8268
refactor(changelog): rename category to change_type to fit 'keep a ch...
woile Mar 22, 2020
e0a1b49
refactor(changelog): use functions from changelog.py
woile Apr 19, 2020
84471b4
feat(changelog): add incremental flag
woile Apr 27, 2020
7cfb4e5
feat(changelog): add support for any commit rule system
woile May 2, 2020
9b40799
docs(changelog): update information about using changelog command
woile May 2, 2020
6940241
docs(bump): add information about changelog
woile May 2, 2020
5fec1d4
ci(bumpversion): generate changelog along with the version
woile May 2, 2020
aca2fe9
fix(changelog): check get_metadata for existing changelog file
woile May 2, 2020
9ed948a
Merge pull request #163 from commitizen-tools/command-changelog-wip
woile May 2, 2020
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
Prev Previous commit
Next Next commit
style: reformat
  • Loading branch information
Lee-W committed Apr 20, 2020
commit 5bf5542e78ea575eebf258f3ac3cc9eb3a15a03f
2 changes: 1 addition & 1 deletion commitizen/changelog.py
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
Options:
- Generate full or partial changelog
"""
from typing import Generator, List, Dict, Iterable
import re
from typing import Dict, Generator, Iterable, List

MD_VERSION_RE = r"^##\s(?P<version>[a-zA-Z0-9.+]+)\s?\(?(?P<date>[0-9-]+)?\)?"
MD_CATEGORY_RE = r"^###\s(?P<category>[a-zA-Z0-9.+\s]+)"
Expand Down
4 changes: 1 addition & 3 deletions commitizen/commands/__init__.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .bump import Bump
from .changelog import Changelog
from .check import Check
from .commit import Commit
from .example import Example
Expand All @@ -7,9 +8,6 @@
from .list_cz import ListCz
from .schema import Schema
from .version import Version
from .init import Init
from .changelog import Changelog


__all__ = (
"Bump",
Expand Down
4 changes: 2 additions & 2 deletions commitizen/commands/changelog.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import re
import pkg_resources
from collections import OrderedDict

import pkg_resources
from jinja2 import Template

from commitizen import factory, out, git
from commitizen import factory, git, out
from commitizen.config import BaseConfig
from commitizen.error_codes import NO_COMMITS_FOUND, NO_PATTERN_MAP

Expand Down
2 changes: 0 additions & 2 deletions tests/test_changelog.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import os


import pytest

from commitizen import changelog


COMMIT_LOG = [
"bump: version 1.5.0 → 1.5.1",
"",
Expand Down

AltStyle によって変換されたページ (->オリジナル) /