Skip to content

Fix section mapping, hiding untagged PRs, and hiding untagged issues #550

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

Conversation

hunner
Copy link
Contributor

@hunner hunner commented Jul 27, 2017

This is a rebase and resubmission of #453 to pass rubocop/tests and remove --between-tags references because it was removed in #501

tduffield and others added 13 commits July 27, 2017 10:36
Before we do anything, let's get a solid expectation of what we want our
section headers to look like.

Signed-off-by: Tom Duffield <tom@chef.io>
This change neccesitated changing the behavior or the
`filter_since_tag`. Since we want our compare links to include the since
tag, we need to keep that tag in the filtered list. Instead, we detect
that the tag is the since tag and filter it out. This will prevent the
since_tag header from being duplicated when pulling from a base.

The same goes for the first tag listed in between_tags. We don't want an
empty section header for this.

Signed-off-by: Tom Duffield <tom@chef.io>
Signed-off-by: Tom Duffield <tom@chef.io>
Because we need might need excluded tags to build compare links, the
section map generator needs to have access to those tags. But, we don't
want excluded tags to have section headers. So instead, we'll create
another copy of the list that doesn't have tags excluded.

Signed-off-by: Tom Duffield <tom@chef.io>
Signed-off-by: Tom Duffield <tom@chef.io>
Rather than having the last tag be an empty husk, generate a full
changelog link using the first sha from the repository.

Signed-off-by: Tom Duffield <tom@chef.io>
As far as I can tell, `add_pr_wo_labels` wasn't actually
implemented. Implementing this per the documentation.

Signed-off-by: Tom Duffield <tom@chef.io>
When `add_issues_wo_labels` is false, do not include issues that do not
have any labels in the CHANGELOG (per documentation).

Signed-off-by: Tom Duffield <tom@chef.io>
Signed-off-by: Tom Duffield <tom@chef.io>
Signed-off-by: Tom Duffield <tom@chef.io>
Signed-off-by: Tom Duffield <tom@chef.io>
Signed-off-by: Thom May <thom@chef.io>
@olleolleolle
Copy link
Collaborator

I am grateful for this reasoned careful change.

@olleolleolle olleolleolle merged commit c805da1 into github-changelog-generator:master Jul 30, 2017
@hunner hunner deleted the chef-adjust-tag-section-mapping branch July 31, 2017 16:37
DavidS added a commit to DavidS/pdk that referenced this pull request Aug 1, 2017
Since github-changelog-generator/github-changelog-generator#550 was merged, we can switch to the upstream repo.

Once a new version is released we can drop the git reference altogether.

This also includes a minor config change to make the rake task work, and the current output to show the minimal changes to the CHANGELOG file's format, and no content changes in the historical entries.
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.

3 participants