Skip to content

Commit 18f5c83

Browse files
committed
emails: Polish template content for better readability and consistency
1 parent deb8dc5 commit 18f5c83

File tree

24 files changed

+61
-46
lines changed

24 files changed

+61
-46
lines changed

src/controllers/trustpub/github_configs/create/snapshots/crates_io__controllers__trustpub__github_configs__create__tests__happy_path-3.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Content-Transfer-Encoding: quoted-printable
1010

1111
Hello foo!
1212

13-
crates.io user foo added a new "Trusted Publishing" configuration for GitHub Actions to a crate that you manage (foo). Trusted publishers act as trusted users and can publish new versions of the crate automatically.
13+
crates.io user foo added a new "Trusted Publishing" configuration for GitHub Actions to a crate that you manage ("foo"). Trusted publishers act as trusted users and can publish new versions of the crate automatically.
1414

1515
Trusted Publishing configuration:
1616

@@ -21,4 +21,4 @@ Trusted Publishing configuration:
2121

2222
If you did not make this change and you think it was made maliciously, you can remove the configuration from the crate via the "Settings" tab on the crate's page.
2323

24-
If you are unable to revert the change and need to do so, you can email help@crates.io to communicate with the crates.io support team.
24+
If you are unable to revert the change and need to do so, you can email help@crates.io for assistance.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Content-Transfer-Encoding: quoted-printable
1010

1111
Hello foo!
1212

13-
crates.io user foo removed a "Trusted Publishing" configuration for GitHub Actions from a crate that you manage (foo).
13+
crates.io user foo removed a "Trusted Publishing" configuration for GitHub Actions from a crate that you manage ("foo").
1414

1515
Trusted Publishing configuration:
1616

@@ -19,4 +19,4 @@ Trusted Publishing configuration:
1919
- Workflow filename: publish.yml
2020
- Environment: (not set)
2121

22-
If you did not make this change and you think it was made maliciously, you can email help@crates.io to communicate with the crates.io support team.
22+
If you did not make this change and you think it was made maliciously, you can email help@crates.io for assistance.

src/controllers/user/snapshots/crates_io__controllers__user__email_verification__tests__happy_path-3.snap

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ To: foo@example.com
66
From: crates.io <noreply@crates.io>
77
Subject: crates.io: Please confirm your email address
88
Content-Type: text/plain; charset=utf-8
9-
Content-Transfer-Encoding: 7bit
9+
Content-Transfer-Encoding: quoted-printable
1010

11-
Hello foo! Welcome to crates.io. Please click the
12-
link below to verify your email address. Thank you!
11+
Hello foo!
12+
13+
Welcome to crates.io. Please click the link below to verify your email address:
1314

1415
https://crates.io/confirm/[confirm-token]
16+
17+
Thank you!

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Hello {{ recipient }}!
22

3-
crates.io user {{ user }} added a new "Trusted Publishing" configuration for GitHub Actions to a crate that you manage ({{ krate }}). Trusted publishers act as trusted users and can publish new versions of the crate automatically.
3+
crates.io user {{ user }} added a new "Trusted Publishing" configuration for GitHub Actions to a crate that you manage ("{{ krate }}"). Trusted publishers act as trusted users and can publish new versions of the crate automatically.
44

55
Trusted Publishing configuration:
66

@@ -11,4 +11,4 @@ Trusted Publishing configuration:
1111

1212
If you did not make this change and you think it was made maliciously, you can remove the configuration from the crate via the "Settings" tab on the crate's page.
1313

14-
If you are unable to revert the change and need to do so, you can email help@crates.io to communicate with the crates.io support team.
14+
If you are unable to revert the change and need to do so, you can email help@crates.io for assistance.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Hello {{ recipient }}!
22

3-
crates.io user {{ user }} removed a "Trusted Publishing" configuration for GitHub Actions from a crate that you manage ({{ krate }}).
3+
crates.io user {{ user }} removed a "Trusted Publishing" configuration for GitHub Actions from a crate that you manage ("{{ krate }}").
44

55
Trusted Publishing configuration:
66

@@ -9,4 +9,4 @@ Trusted Publishing configuration:
99
- Workflow filename: {{ workflow_filename }}
1010
- Environment: {{ environment or "(not set)" }}
1111

12-
If you did not make this change and you think it was made maliciously, you can email help@crates.io to communicate with the crates.io support team.
12+
If you did not make this change and you think it was made maliciously, you can email help@crates.io for assistance.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Hi {{ name }},
22

3-
We noticed your token "{{ token_name }}" will expire on {{ expiry_date }}.
3+
We noticed that your token "{{ token_name }}" will expire on {{ expiry_date }}.
44

55
If this token is still needed, visit https://crates.io/settings/tokens/new?from={{ token_id }} to generate a new one.
66

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ Hello {{ user_name }}!
22

33
A new API token with the name "{{ token_name }}" was recently added to your {{ domain }} account.
44

5-
If this wasn't you, you should revoke the token immediately: https://{{ domain }}/settings/tokens
5+
If you did not create this token, you should revoke it immediately: https://{{ domain }}/settings/tokens.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{ inviter }} has invited you to become an owner of the crate {{ crate_name }}!
22

3-
Visit https://{{ domain }}/accept-invite/{{ token }} to accept this invitation,
4-
or go to https://{{ domain }}/me/pending-invites to manage all of your crate ownership invitations.
3+
Visit https://{{ domain }}/accept-invite/{{ token }} to accept this invitation.
4+
5+
You can also go to https://{{ domain }}/me/pending-invites to manage all of your crate ownership invitations.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Source type: {{ source }}
77
{% if url -%}
88
URL where the token was found: {{ url }}
99
{%- else -%}
10-
We were not informed of the URL where the token was found.
10+
We were not provided with the URL where the token was found.
1111
{%- endif %}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Source type: {{ source }}
1313
{% if url -%}
1414
URL where the token was found: {{ url }}
1515
{%- else -%}
16-
We were not informed of the URL where the token was found.
16+
We were not provided with the URL where the token was found.
1717
{%- endif %}
1818

1919
Trusted Publishing tokens are temporary and used for automated publishing from GitHub Actions. If this exposure was unexpected, please review your repository's workflow files and secrets.

0 commit comments

Comments
 (0)