Skip to content

Commit 7f25d16

Browse files
committed
email: Adjust config_deleted when auth user is the recipient
1 parent d871b37 commit 7f25d16

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/controllers/trustpub/github_configs/delete/snapshots/crates_io__controllers__trustpub__github_configs__delete__tests__happy_path-2.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Content-Transfer-Encoding: quoted-printable
1111

1212
Hello foo!
1313

14-
crates.io user foo removed a "Trusted Publishing" configuration for GitHub Actions from a crate that you manage ("foo").
14+
You removed a "Trusted Publishing" configuration for GitHub Actions from your crate "foo".
1515

1616
Trusted Publishing configuration:
1717

src/email/templates/config_deleted/body.txt.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
{% block content %}
44
Hello {{ recipient }}!
55

6+
{% if recipient == auth_user.gh_login -%}
7+
You removed a "Trusted Publishing" configuration for GitHub Actions from your crate "{{ krate.name }}".
8+
{%- else -%}
69
crates.io user {{ auth_user.gh_login }} removed a "Trusted Publishing" configuration for GitHub Actions from a crate that you manage ("{{ krate.name }}").
10+
{%- endif %}
711

812
Trusted Publishing configuration:
913

0 commit comments

Comments
 (0)