File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,9 @@ export default function Email(props: z.infer<typeof AlertDeploymentFailureEmailS
5454 < Preview > { `[${ organization } ] Deployment ${ version } [${ environment } ] failed: ${ error . name } ` } </ Preview >
5555 < Body style = { main } >
5656 < Container style = { container } >
57- < Text style = { h1 } > { `An error occurred deploying ${ version } in ${ environment } ` } </ Text >
57+ < Text
58+ style = { h1 }
59+ > { `An error occurred deploying ${ version } in ${ environment } in your ${ organization } organization` } </ Text >
5860 < Text style = { paragraphLight } >
5961 { error . name } { error . message }
6062 </ Text >
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export default function Email(props: z.infer<typeof AlertDeploymentSuccessEmailS
3939 < Container style = { container } >
4040 < Text
4141 style = { h1 }
42- > { `Version ${ version } successfully deployed ${ taskCount } tasks in ${ environment } ` } </ Text >
42+ > { `Version ${ version } successfully deployed ${ taskCount } tasks in ${ environment } in your ${ organization } organization ` } </ Text >
4343
4444 < Link
4545 href = { deploymentLink }
Original file line number Diff line number Diff line change @@ -103,25 +103,25 @@ export class EmailClient {
103103 } ;
104104 case "alert-attempt" : {
105105 return {
106- subject : `Error on ${ data . taskIdentifier } [${ data . version } .${ data . environment } ] ${ data . error . message } ` ,
106+ subject : `[ ${ data . organization } ] Error on ${ data . taskIdentifier } [${ data . version } .${ data . environment } ] ${ data . error . message } ` ,
107107 component : < AlertAttemptFailureEmail { ...data } /> ,
108108 } ;
109109 }
110110 case "alert-run" : {
111111 return {
112- subject : `Run ${ data . runId } failed for ${ data . taskIdentifier } [${ data . version } .${ data . environment } ] ${ data . error . message } ` ,
112+ subject : `[ ${ data . organization } ] Run ${ data . runId } failed for ${ data . taskIdentifier } [${ data . version } .${ data . environment } ] ${ data . error . message } ` ,
113113 component : < AlertRunFailureEmail { ...data } /> ,
114114 } ;
115115 }
116116 case "alert-deployment-failure" : {
117117 return {
118- subject : `Deployment ${ data . version } [${ data . environment } ] failed: ${ data . error . name } ` ,
118+ subject : `[ ${ data . organization } ] Deployment ${ data . version } [${ data . environment } ] failed: ${ data . error . name } ` ,
119119 component : < AlertDeploymentFailureEmail { ...data } /> ,
120120 } ;
121121 }
122122 case "alert-deployment-success" : {
123123 return {
124- subject : `Deployment ${ data . version } [${ data . environment } ] succeeded` ,
124+ subject : `[ ${ data . organization } ] Deployment ${ data . version } [${ data . environment } ] succeeded` ,
125125 component : < AlertDeploymentSuccessEmail { ...data } /> ,
126126 } ;
127127 }
You can’t perform that action at this time.
0 commit comments