Skip to content
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

Add option to exclude start commit #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stepanstipl
Copy link

This PR adds a flag -exclude-start to exclude start commit from the changelog. Defaults to false to keep current behaviour as default.

I find this a common scenario when changelog is generated current commit and the latest release (or master).

changelog-gen -owner <gh-owner> -repo <gh-repo> <latest_release_SHA> <current_SHA>

Without this flag, the <latest_release_SHA> commit, resp. Its associated PR, would be included in the generated changelog. However, this is undesirable, as that commit was already included in the previous release, and is not part of the current one.

I.e. because both start and end SHA intervals are closed, the start/end commits will be duplicated. This flag makes the start interval open, to avoid overlap.

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.

1 participant