Skip to content

add since-commit option #830

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

Conversation

takke
Copy link
Contributor

@takke takke commented May 6, 2020

Add since-commit option to reduce the number of commits fetched.

This PR fix #829.

When I use this patch on #829 situation, it successfully generate CHANGELOG.md.

>github_changelog_generator -u sakura-editor -p sakura --verbose --since-commit "2017-05-02 0:00:00"
Using these options:
:date_format=>"%Y-%m-%d"
:output=>"CHANGELOG.md"
:base=>"HISTORY.md"
:issues=>true
:add_issues_wo_labels=>true
:add_pr_wo_labels=>true
:pulls=>true
:filter_issues_by_milestone=>true
:author=>true
:unreleased=>true
:unreleased_label=>"Unreleased"
:compare_link=>true
:exclude_labels=>["duplicate", "question", "invalid", "wontfix", "Duplicate", "Question", "Invalid", "Wontfix", "Meta: Exclude From Changelog"]
:summary_labels=>["Release summary", "release-summary", "Summary", "summary"]
:breaking_labels=>["backwards-incompatible", "Backwards incompatible", "breaking"]
:enhancement_labels=>["enhancement", "Enhancement", "Type: Enhancement"]
:bug_labels=>["bug", "Bug", "Type: Bug"]
:deprecated_labels=>["deprecated", "Deprecated", "Type: Deprecated"]
:removed_labels=>["removed", "Removed", "Type: Removed"]
:security_labels=>["security", "Security", "Type: Security"]
:configure_sections=>{}
:add_sections=>{}
:issue_line_labels=>[]
:max_issues=>nil
:simple_list=>false
:ssl_ca_file=>nil
:verbose=>true
:header=>"# Changelog"
:merge_prefix=>"**Merged pull requests:**"
:issue_prefix=>"**Closed issues:**"
:summary_prefix=>""
:breaking_prefix=>"**Breaking changes:**"
:enhancement_prefix=>"**Implemented enhancements:**"
:bug_prefix=>"**Fixed bugs:**"
:deprecated_prefix=>"**Deprecated:**"
:removed_prefix=>"**Removed:**"
:security_prefix=>"**Security fixes:**"
:http_cache=>true
:require=>[]
:user=>"sakura-editor"
:project=>"sakura"
:since_commit=>"2017-05-02 0:00:00"
:token=>"No token used"

Found 12 tags
Fetching tags dates: 12/12
Sorting tags...
Received issues: 1033
Pull Request count: 802
Filtered pull requests: 663
Filtered issues: 229
Fetching events for issues and PR: 892
Fetching closed dates for issues: 892/892
Warning: PR 1257 merge commit was not found in the release branch or tagged git history and no rebased SHA comment was found
Warning: PR 4 merge commit was not found in the release branch or tagged git history and no rebased SHA comment was found
Warning: PR 3 merge commit was not found in the release branch or tagged git history and no rebased SHA comment was found
Warning: PR 2 merge commit was not found in the release branch or tagged git history and no rebased SHA comment was found
Warning: PR 1 merge commit was not found in the release branch or tagged git history and no rebased SHA comment was found
Associating PRs with tags: 663/663
Generating entry...
Done!
Generated log placed in C:/Users/takke/xxx/CHANGELOG.md

Copy link
Collaborator

@dlanileonardo dlanileonardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dlanileonardo dlanileonardo merged commit a6233c1 into github-changelog-generator:master Aug 14, 2020
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.

Failure with stack level too deep
2 participants