From 37191dcfbdbd007266a4d15a3c85cdf94cec1a7a Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Thu, 8 Feb 2024 04:09:15 +0100 Subject: [PATCH] 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: View it on Codeberg.org.
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 --- services/mailer/mail_release.go | 1 + 1 file changed, 1 insertion(+) diff --git a/services/mailer/mail_release.go b/services/mailer/mail_release.go index 801c2476c..5e8e5b6af 100644 --- a/services/mailer/mail_release.go +++ b/services/mailer/mail_release.go @@ -74,6 +74,7 @@ func mailNewRelease(ctx context.Context, lang string, tos []string, rel *repo_mo "Release": rel, "Subject": subject, "Language": locale.Language(), + "Link": rel.HTMLURL(), } var mailBody bytes.Buffer