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

Scoped changelogs #100

Merged
merged 3 commits into from
Oct 7, 2022
Merged

Scoped changelogs #100

merged 3 commits into from
Oct 7, 2022

Conversation

chelnak
Copy link
Owner

@chelnak chelnak commented Oct 7, 2022

Prior to this PR it was not possible to scope the changelog to a specific tag.

This commit adds two new flags that will allow a user to either specify a tag to start from or build the changelog starting from the latest tag.

--from-version

This flag determines the version from which to start the changelog. If the value passed does not exist as a tag, the changelog will be built from the first tag.

--from-last-version

This flag will build the changelog starting from the last tag. Using this flag will result in a changelog with one entry.

Prior to this commit it was not possible to scope the changelog to a
specific tag.

This commit adds two new flags that will allow a user to either specify
a tag to start from or build the changelog starting from the latest tag.

`--from-version`

This flag determines the version from which to start the changelog.
If the value passed does not exist as a tag, the changelog will
be built from the first tag.

`--from-last-version`

This flag will build the changelog starting from the last tag.
Using this flag will result in a changelog with one entry.
Result of running `mockery --all` after changes.
This commit adds tests for --from-version and --from-last-version.

It also refactors the builder tests to remove some duplication.
@chelnak chelnak changed the title Scope changelog Scoped changelogs Oct 7, 2022
@chelnak chelnak self-assigned this Oct 7, 2022
@chelnak chelnak added the enhancement New feature or request label Oct 7, 2022
@chelnak chelnak linked an issue Oct 7, 2022 that may be closed by this pull request
@chelnak chelnak merged commit 8b0b823 into main Oct 7, 2022
@chelnak chelnak deleted the scoped_changelog branch October 7, 2022 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to scope changelog
1 participant