Format the emoji subject lines 2bbdc0268c23
Flow run 269 failed its fmt job on three lines of the subject change.
Refs #186
- Author
- Andy McCall @andymccall <[email protected]>
- When
- · 2026-10-14 12:48 UTC
- Signature
- ✔ signed by Andy McCall
- Hash
2bbdc0268c23bb07c0fd0ea8922eb70e8bfa18da6bb303ec4a59e7ab5dae7fe2
- Depends on
- 18e381ea88c2 34beb1a7e376 b91e2d81b3f1 cd46e56b1709
- Depended on by
- nothing yet
- In bookmarks
- api-unknown-fields cancel-landed-runs diffusion-pin-bookmark draft-ready main oh-comment-body-file proposal-list-fast
- In tags
- v0.5.0 v0.5.1 v0.5.2 v0.6.0 v0.6.1 v0.7.0 v0.8.0 v0.9.0 v0.9.1 v0.9.11 v0.9.15 v0.9.16 v0.9.19 v0.9.2 v0.9.20 v0.9.21 v0.9.22 v0.9.23 v0.9.24 v0.9.3 v0.9.4 v0.9.5 v0.9.6 v0.9.7 v0.9.8 v0.9.9
- Edits
- 6 atoms, 0 tree operations, 3 files
Browse the tree at this change
modified
crates/hub/src/notify/mod.rs
+8 −2
|
|
… |
141 unchanged lines |
| 142 |
142 |
|
|
| 143 |
143 |
|
#[test] |
| 144 |
144 |
|
fn subjects_say_what_happened() { |
| 145 |
|
- |
assert_eq!(subject("flow.failed", "andy/demo: run #4 on main failed (test)"), "💥 Build Broken: andy/demo: run #4 on main failed (test)"); |
| 146 |
|
- |
assert_eq!(subject("flow.fixed", "andy/demo: run #5 on main passed: fixed"), "🎉 Build Success: andy/demo: run #5 on main passed: fixed"); |
|
145 |
+ |
assert_eq!( |
|
146 |
+ |
subject("flow.failed", "andy/demo: run #4 on main failed (test)"), |
|
147 |
+ |
"💥 Build Broken: andy/demo: run #4 on main failed (test)" |
|
148 |
+ |
); |
|
149 |
+ |
assert_eq!( |
|
150 |
+ |
subject("flow.fixed", "andy/demo: run #5 on main passed: fixed"), |
|
151 |
+ |
"🎉 Build Success: andy/demo: run #5 on main passed: fixed" |
|
152 |
+ |
); |
| 147 |
153 |
|
assert_eq!(subject("backup.summary", "x"), "📦 Daily Backup Summary: x"); |
| 148 |
154 |
|
assert_eq!(subject("something.new", "x"), "x", "a kind without a label keeps its title"); |
| 149 |
155 |
|
} |
|
|
… |
7 unchanged lines |
modified
crates/hub/src/web/recovery.rs
+2 −1
|
|
… |
122 unchanged lines |
| 123 |
123 |
|
let (mailer, name, addr, user) = (app.clone(), a.name().to_string(), a.email.clone(), a.username.clone()); |
| 124 |
124 |
|
tokio::spawn(async move { |
| 125 |
125 |
|
let action = crate::mail::Action { label: "Choose a new password", url: &url }; |
| 126 |
|
- |
if let Err(err) = crate::mail::send_letter(&mailer, &name, &addr, "🔑 Reset your password", &body, Some(action), None).await { |
|
126 |
+ |
if let Err(err) = crate::mail::send_letter(&mailer, &name, &addr, "🔑 Reset your password", &body, Some(action), None).await |
|
127 |
+ |
{ |
| 127 |
128 |
|
tracing::warn!("reset mail for {user}: {err}"); |
| 128 |
129 |
|
} |
| 129 |
130 |
|
}); |
|
|
… |
74 unchanged lines |
modified
crates/hub/tests/recovery.rs
+6 −1
|
|
… |
123 unchanged lines |
| 124 |
124 |
|
// Registration sends a verification link; until it is used, no reset mail. |
| 125 |
125 |
|
let m = mail(&h.mailbox); |
| 126 |
126 |
|
assert_eq!(m.len(), 1); |
| 127 |
|
- |
assert!(m[0].contains("To: andy <[email protected]>") && m[0].contains("Subject: [OxygenHub] =?utf-8?b?4pyJ77iP?= Confirm your email address"), "{}", m[0]); |
|
127 |
+ |
assert!( |
|
128 |
+ |
m[0].contains("To: andy <[email protected]>") |
|
129 |
+ |
&& m[0].contains("Subject: [OxygenHub] =?utf-8?b?4pyJ77iP?= Confirm your email address"), |
|
130 |
+ |
"{}", |
|
131 |
+ |
m[0] |
|
132 |
+ |
); |
| 128 |
133 |
|
let verify = link(&m[0], "/verify/"); |
| 129 |
134 |
|
assert!(!account(app, "andy").await.email_verified); |
| 130 |
135 |
|
let settings = get(app, "/settings", Some(&old_session)).await; |
|
|
… |
93 unchanged lines |