Skip to content

Commit

Permalink
Pre-fill tag and version title for GitHub release
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Jan 9, 2022
1 parent d5f8e3f commit 3333f4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Releasing.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,10 @@ fun CliUi.runReleaseStep(step: ReleaseStep): Unit = when (step) {
`Request GitHub release publication` -> {
printInfo("It's now time to publish the release on GitHub, so people get notified.")
printInfo("Copy the section of this release from the CHANGELOG file, and head over to the following url to proceed:")
printInfo("$gitHubRepoUrl/releases/new")
requestManualAction("Publish the release ${OngoingRelease.newVersion} on GitHub with the changelog.")
val newVersion = OngoingRelease.newVersion
// https://docs.github.com/en/repositories/releasing-projects-on-github/automation-for-release-forms-with-query-parameters
printInfo("$gitHubRepoUrl/releases/new?tag=${tagOfVersionBeingReleased()}&title=$newVersion")
requestManualAction("Publish the release $newVersion on GitHub with the changelog.")
}
`Change this library version back to a SNAPSHOT` -> {
val newVersion = Version(OngoingRelease.newVersion)
Expand Down

0 comments on commit 3333f4f

Please sign in to comment.