This commit is contained in:
JakobDev 2024-12-18 22:33:22 +01:00
parent aa64f6515c
commit 4568ebc913
No known key found for this signature in database
GPG key ID: 39DEF62C3ED6DC4C
4 changed files with 51 additions and 25 deletions

View file

@ -191,7 +191,7 @@ func (r *Release) Link() string {
// SummaryCardURL returns the absolute URL to an image providing a summary of the release
func (r *Release) SummaryCardURL() string {
return fmt.Sprintf("%s/releases/summary-card/%d", r.Repo.HTMLURL(), r.ID)
return fmt.Sprintf("%s/releases/summary-card/%s", r.Repo.HTMLURL(), util.PathEscapeSegments(r.TagName))
}
// DisplayName retruns the name of the release