-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Script for generating changelogs, new template for PR's #4351
base: master
Are you sure you want to change the base?
Conversation
Keeping it as a draft until it proved itself useful |
2c953f8
to
cb6aea4
Compare
In this PR the new formatting applied: - categories are not sections, they integrated in the title - platforms are defined as labels - highlighted fixes are bold Generated by [the script](#4351) from the list of commits and PR's
.sortedBy { it.sectionOrder() } | ||
.groupBy { it.sectionName() } | ||
.forEach { (section, sectionEntries) -> | ||
appendLine("## $section") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit | ||
} | ||
|
||
fun ChangelogEntry.format() = if (link != null) "$message ([link]($link))" else message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently we're using different format
fun ChangelogEntry.format() = if (link != null) "$message ([link]($link))" else message | |
fun ChangelogEntry.format() = if (link != null) "- [$message]($link)" else message |
val entries = entriesForRepo("JetBrains/compose-multiplatform-core") + | ||
entriesForRepo("JetBrains/compose-multiplatform") | ||
|
||
println("\n# CHANGELOG") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
println("\n# CHANGELOG") | |
println("\n# ${version} (${currentMonth})") |
appendLine() | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can parse configs and automatically add
} | |
appendLine("## Dependencies\n") | |
appendLine("- Gradle Plugin `org.jetbrains.compose`, version `${version}`. Based on Jetpack Compose libraries:") | |
// TBD | |
appendLine("___") | |
} |
No description provided.