question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possibility to write date besides versions

See original GitHub issue

Hi, It would be great if there would be a possibility to write date of release besides version in Changelog when executing patchChangelog task. So, currently when executing patchChangelog task on this changelog:

# Changelog
All notable changes to this project will be documented in this file.

## [Unreleased]

### Added
- Some other thing added.

## [1.0.0] - 2020-07-02

### Added
- Something added.

new change record is added as follows:

# Changelog
All notable changes to this project will be documented in this file.

## [Unreleased]

## [1.0.1]

### Added
- Some other thing added.

## [1.0.0] - 2020-07-01

### Added
- Something added.

where 1.0.1 is a version without date (which must be added manually). Perfect output of patchChangelogfor this case would be:

# Changelog
All notable changes to this project will be documented in this file.

## [Unreleased]

## [1.0.1] - 2020-07-02

### Added
- Some other thing added.

## [1.0.0] - 2020-07-01

### Added
- Something added.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hszcommented, Jul 6, 2020

Ok, there was a problem with parsing of the [Unreleased] header. By default, unreleasedTerm is set to Unreleased which doesn’t match [Unreleased] so plugin tried to parse it as a version header.

https://github.com/JetBrains/gradle-changelog-plugin/blob/021db6d12ead7ad51a7c7f157a8de8fc37096a9d/src/main/kotlin/org/jetbrains/changelog/Changelog.kt#L29-L38

I’ve provided better error handling and changed the default unreleasedTerm to [Unreleased]. Please upgrade the plugin dependency to 0.3.3.

1reaction
hszcommented, Jul 2, 2020

Looks like one of the header (marked with ##) doesn’t match this format.

I’ll have to provide better error messages anyway.

I can’t verify it since I’m out of the grid till the end of the week. I’ll be able to check it on Monday.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Write the Date in a Document | Proofed's Writing Tips
In formal writing, always write the date in full when it is part of a sentence. This usually involves giving the day of...
Read more >
How To Date a Letter | Indeed.com
In this article, we explain how to accurately date a letter, including different formalities and standards worldwide.
Read more >
Writing Dates and Times - The Blue Book of Grammar and ...
Our Rule 5b of Commas states, “If any part of the date is omitted, leave out the comma.” Since the year is omitted,...
Read more >
Why do Americans write the month before the day? | US news
Month/day/year is used by: US and some traditional UK organisations. The format was traditional in England, whence it was brought to America.
Read more >
Dates - Grammar - Cambridge Dictionary
Writing the date​​ Today is the 7th September. The grand opening is on 1st June. or … on June 1st. With the exception...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found