Skip to content

Commit

Permalink
Adding detail/summary (aka spoilers) instead of long lists (go-gitea#4)
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Franz <[email protected]>
  • Loading branch information
jonasfranz committed Sep 4, 2017
1 parent a4d8876 commit 80c7b02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,11 @@ func runGenerate(cmd *cli.Context) {
continue
}

fmt.Println("* " + g.Name)
fmt.Println("<details><summary>" + g.Name + "</summary>")
fmt.Println()
for _, pr := range changelogs[g.Name] {
fmt.Printf(" * %s (#%d)\n", *pr.Title, *pr.Number)
fmt.Printf("* %s (#%d)\n", *pr.Title, *pr.Number)
}
fmt.Println("</details>")
}
}

0 comments on commit 80c7b02

Please sign in to comment.