Skip to content

trustpub: Fix email typos #11421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ expression: app.emails_snapshot().await
---
To: [email protected]
From: crates.io <[email protected]>
Subject: crates.io: Trusted Publishing configration added to foo
Subject: crates.io: Trusted Publishing configuration added to foo
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello foo!

crates.io user foo has 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.
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.

Trusted Publishing configuration:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ expression: app.emails_snapshot().await
---
To: [email protected]
From: crates.io <[email protected]>
Subject: crates.io: Trusted Publishing configration removed from foo
Subject: crates.io: Trusted Publishing configuration removed from foo
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello foo!

crates.io user foo has remove a "Trusted Publishing" configuration for GitHub Actions from a crate that you manage (foo).
crates.io user foo removed a "Trusted Publishing" configuration for GitHub Actions from a crate that you manage (foo).

Trusted Publishing configuration:

Expand Down
8 changes: 4 additions & 4 deletions src/controllers/trustpub/github_configs/emails.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct ConfigCreatedEmail<'a> {
impl Email for ConfigCreatedEmail<'_> {
fn subject(&self) -> String {
let Self { krate, .. } = self;
format!("crates.io: Trusted Publishing configration added to {krate}")
format!("crates.io: Trusted Publishing configuration added to {krate}")
}

fn body(&self) -> String {
Expand All @@ -33,7 +33,7 @@ impl Email for ConfigCreatedEmail<'_> {
format!(
"Hello {recipient}!

crates.io user {user} has 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.
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.

Trusted Publishing configuration:

Expand Down Expand Up @@ -65,7 +65,7 @@ pub struct ConfigDeletedEmail<'a> {
impl Email for ConfigDeletedEmail<'_> {
fn subject(&self) -> String {
let Self { krate, .. } = self;
format!("crates.io: Trusted Publishing configration removed from {krate}")
format!("crates.io: Trusted Publishing configuration removed from {krate}")
}

fn body(&self) -> String {
Expand All @@ -82,7 +82,7 @@ impl Email for ConfigDeletedEmail<'_> {
format!(
"Hello {recipient}!

crates.io user {user} has remove a \"Trusted Publishing\" configuration for GitHub Actions from a crate that you manage ({krate}).
crates.io user {user} removed a \"Trusted Publishing\" configuration for GitHub Actions from a crate that you manage ({krate}).

Trusted Publishing configuration:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ If you have questions or security concerns, you can contact us at [email protected]

To: [email protected]
From: crates.io <[email protected]>
Subject: crates.io: Trusted Publishing configration added to foo
Subject: crates.io: Trusted Publishing configuration added to foo
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello foo!

crates.io user foo has 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.
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.

Trusted Publishing configuration:

Expand Down