Skip to content

Commit 37191dc

Browse files
authored
Fix missing link on outgoing new release notifications (#29079)
Outgoing new release e-mail notifications were missing links to the actual release. An example from Codeberg.org e-mail: <a href=3D"">View it on Codeberg.org</a>.<br/> This PR adds `"Link"` context property pointing to the release on the web interface. The change was tested using `[mailer] PROTOCOL=dummy`. Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
1 parent f290c24 commit 37191dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/mailer/mail_release.go

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ func mailNewRelease(ctx context.Context, lang string, tos []string, rel *repo_mo
7474
"Release": rel,
7575
"Subject": subject,
7676
"Language": locale.Language(),
77+
"Link": rel.HTMLURL(),
7778
}
7879

7980
var mailBody bytes.Buffer

0 commit comments

Comments
 (0)