Open ChrisCarini opened 1 year ago
Oh, also confirmed that this does not happen for me when I revert to an older version of this plugin, specifically version 1.3.1
.
@hsz or @YannCebron - mind taking a peak at this and the associated failing PR when you have a moment please?
Basically, the square brackets are added to the header (they surround the version part) only when there's a repositoryUrl
provided, so section URLs are generated.
It is my intention to have versions that look like the expected behavior described by @ChrisCarini
Basically, the square brackets are added to the header (they surround the version part) only when there's a
repositoryUrl
provided, so section URLs are generated.
Does your comment mean that the plugin can not be configured as follows?
header.set("[${version.get()}] - $curDate")
It would be my expectation as well to keep the format as configured.
Basically, the square brackets are added to the header (they surround the version part) only when there's a repositoryUrl provided, so section URLs are generated.
Can we please not modify the behavior of version
property this way, as e.g. I use my own format where I just need version
always be what my regex parsed (for existing entries) or what's configured in the provider (for the unreleased version)
Describe the bug
When running
patchChangelog
task, existing headers change away from the specified format.I have also confirmed that this happens when adding an assert to an existing test case; draft PR with test case: https://github.com/JetBrains/gradle-changelog-plugin/pull/150
To Reproduce
Existing
CHANGELOG.md
changelog
gradle configurationRepro steps:
./gradlew patchChangelog --release-note="FOOBAR"
CHANGELOG.md
file (actual & expected below)Actual behavior
(NOTE: Notice the missing
[
and]
around the version in the pre-existing headers.)Expected behavior
Environment: