forgejo/services/mailer
forgejo-backport-action eb543dcbdb [v12.0/forgejo] fix(email): actions notification template confuses branch with PR (#8455)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/8448

When a mail notification is sent because of a failed pull request run,
the body will show:

Branch: #661 (f57df45)

where #661 is the number of the pull request and not the branch. This
is because run.PrettyRef() is used and has a misleading special case
returning a PR number instead of a ref.

Remove the textual description as it can easily be discovered from the
run web page linked in the mail.

Co-authored-by: Earl Warren <contact@earl-warren.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8455
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2025-07-09 10:20:54 +02:00
..
incoming chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
token chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail.go feat: consider WebAuthn & SSH for instance signing (#7693) 2025-04-29 10:34:07 +00:00
mail_actions.go [v12.0/forgejo] fix(email): actions notification template confuses branch with PR (#8455) 2025-07-09 10:20:54 +02:00
mail_actions_now_done_test.go [v12.0/forgejo] fix(email): actions notification template confuses branch with PR (#8455) 2025-07-09 10:20:54 +02:00
mail_admin_new_user.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail_admin_new_user_test.go send mail on failed or recovered workflow run (#7509) 2025-04-29 06:58:05 +00:00
mail_auth_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail_comment.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail_issue.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
mail_release.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail_repo.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
mail_team_invite.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
mail_test.go chore: QoL improvements to tests (#7917) 2025-05-21 15:45:56 +02:00
mailer.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
mailer_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
main_test.go fix: only send Forgejo Actions notifications to one user (#8227) 2025-06-21 12:15:38 +02:00
notify.go [v12.0/forgejo] fix: cancelled or skipped runs are not failures for notifications (#8404) 2025-07-03 23:28:01 +02:00