fix(build): pass ctx to WordPress changelog builder #404
@@ -150,7 +150,7 @@ func GenerateWordPressJSON(ctx context.Context, repo *repo_model.Repository, lic
|
||||
// Build sections from release notes.
|
||||
sections := map[string]string{}
|
||||
if latestStable.Note != "" {
|
||||
sections["changelog"] = buildWordPressChangelog(releases, streams)
|
||||
sections["changelog"] = buildWordPressChangelog(ctx, releases, streams)
|
||||
}
|
||||
if cfg != nil && cfg.Description != "" {
|
||||
sections["description"] = "<p>" + html.EscapeString(cfg.Description) + "</p>"
|
||||
@@ -177,7 +177,7 @@ func GenerateWordPressJSON(ctx context.Context, repo *repo_model.Repository, lic
|
||||
}
|
||||
|
||||
// buildWordPressChangelog builds an HTML changelog from multiple releases.
|
||||
func buildWordPressChangelog(releases []*repo_model.Release, streams []licenses.StreamDef) string {
|
||||
func buildWordPressChangelog(ctx context.Context, releases []*repo_model.Release, streams []licenses.StreamDef) string {
|
||||
var b strings.Builder
|
||||
count := 0
|
||||
for _, rel := range releases {
|
||||
|
||||
Reference in New Issue
Block a user