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

Generate Changelog from commits #126

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 25 commits into commitizen-tools:command-changelog from Lee-W:changelog
Jan 25, 2020

Conversation

Copy link
Member

@Lee-W Lee-W commented Jan 24, 2020
edited
Loading

#53
Generate changelog from commits but it will overwrite the existing file. It now supports --dry-run, --start-rev and --file-name arguments. I also merge the WIP commit you implemented here, but it's not used. They may be useful when we're merging the new changelog with the existing one.

TODO

  • Find out a way to merge changelog with existing file
  • Get the latest version from config and use it as the default of changelog command

Example

The following changelog is an example generated comparing to the master branch.

# CHANGELOG
## Unreleased
### feat
- make changelog_file an option in config
- exit when there is no commit exists
- add --start-rev argument to `cz changelog`
- generate changelog based on git log
- generate changelog_tree from all past commits
- add changelog_map, changelog_pattern and implement process_commit
- add default process_commit for processing commit message
- changelog tree generation from markdown
### fix
- fix list format
- set changelog_map, changelog_pattern to none as default
- remove --skip-merge argument
- add changelog arguments

woile and others added 25 commits January 21, 2020 22:12
...oncatenation to build changelog
* install jinja2
* use named caputure group for changelog_pattern
by default, unrelated commits are ignored
...efault
without this default, getting these attributes will be an error
@Lee-W Lee-W requested a review from woile January 24, 2020 08:45
Copy link
Member

woile commented Jan 24, 2020

You are the best @Lee-W !! Would you mind sending this PR to the branch command-changelog, I'd also like to contribute to this changes, and once we have it a bit more polish we release it

@Lee-W Lee-W changed the base branch from master to command-changelog January 25, 2020 01:41
Copy link
Member Author

Lee-W commented Jan 25, 2020

Sure! This workflow makes more sense to me. The changelog seems to be a huge update to me. We should make sure it works well enough before release. 😀

woile reacted with thumbs up emoji

@woile woile merged commit 718b881 into commitizen-tools:command-changelog Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@woile woile Awaiting requested review from woile

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

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