Skip to content

Commit

Permalink
Generate release date to the changelog entries (#2924)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbosch committed Aug 2, 2020
1 parent 65fd268 commit 8e6679e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/github-milestone-report.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ import org.kohsuke.github.GHRepository
import org.kohsuke.github.GitHub
import java.io.File
import java.net.URL
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter

class GithubMilestoneReport : CliktCommand() {

Expand Down Expand Up @@ -89,7 +92,7 @@ class GithubMilestoneReport : CliktCommand() {

private fun footer(footer: String, url: URL) = "See all issues at: [$footer]($url)"

private fun header(name: String) = "#### $name\n"
private fun header(name: String) = "#### $name - ${DateTimeFormatter.ISO_DATE.format(LocalDate.now())} \n"

private fun section(name: String) = "##### $name\n"
}
Expand Down

0 comments on commit 8e6679e

Please sign in to comment.