Skip to content
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

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

igordmn
Copy link
Collaborator

@igordmn igordmn commented Feb 23, 2024

No description provided.

@igordmn
Copy link
Collaborator Author

igordmn commented Feb 23, 2024

Keeping it as a draft until it proved itself useful

igordmn added a commit that referenced this pull request Feb 23, 2024
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
@MatkovIvan MatkovIvan self-requested a review April 16, 2024 16:19
.sortedBy { it.sectionOrder() }
.groupBy { it.sectionName() }
.forEach { (section, sectionEntries) ->
appendLine("## $section")
Copy link
Member

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
Copy link
Member

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

Suggested change
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")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
println("\n# CHANGELOG")
println("\n# ${version} (${currentMonth})")

appendLine()
}
}
}
Copy link
Member

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

Suggested change
}
appendLine("## Dependencies\n")
appendLine("- Gradle Plugin `org.jetbrains.compose`, version `${version}`. Based on Jetpack Compose libraries:")
// TBD
appendLine("___")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants