Skip to content

Commit

Permalink
collapse previously released plugins (#248)
Browse files Browse the repository at this point in the history
Update the release notes body to collapse previously released plugins so
users can focus on just what changed.
  • Loading branch information
pkwarren authored Dec 1, 2022
1 parent d6393a5 commit 5a92328
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/release/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,16 @@ func createReleaseBody(name string, plugins []PluginRelease, publicKey *minisign

if existingPlugins := pluginsByStatus[EXISTING]; len(existingPlugins) > 0 {
sb.WriteString(`## Previously Released Plugins
<details>
<summary>Expand</summary>
| Plugin | Version | Release | Link |
|--------|---------|---------|------|
`)
for _, p := range existingPlugins {
sb.WriteString(fmt.Sprintf("| %s | %s | %s | [Download](%s) |\n", p.PluginName, p.PluginVersion, p.ReleaseTag, p.URL))
}
sb.WriteString("</details>\n")
sb.WriteString("\n")
}

Expand Down

0 comments on commit 5a92328

Please sign in to comment.