Skip to content

Allow for accessing "Previous Version" in versionFormat #225

Description

@rocktavious

Is your feature request related to a problem? Please describe.
I would like to use a custom version format that allows the version header be a link to the changes

versionFormat: '## [{{.Version}}](https://github.com/miniscruff/changie/compare/{{.PreviousVersion}}...{{.Version}})'

So it would emit the markdown

## [v0.2.0](https://github.com/miniscruff/changie/compare/v0.1.0...v0.2.0) 

Describe the solution you'd like
It should be as simple as pipeing the "current version" of the batch command before increment as one of the valid batchData things.

Describe alternatives you've considered
It seems pretty straightforward ask so I had not considered anything things since the syntax for the formatting requires the previous version

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions