File tree 3 files changed +8
-6
lines changed
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
54
54
< Preview > { `[${ organization } ] Deployment ${ version } [${ environment } ] failed: ${ error . name } ` } </ Preview >
55
55
< Body style = { main } >
56
56
< 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 >
58
60
< Text style = { paragraphLight } >
59
61
{ error . name } { error . message }
60
62
</ Text >
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export default function Email(props: z.infer<typeof AlertDeploymentSuccessEmailS
39
39
< Container style = { container } >
40
40
< Text
41
41
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 >
43
43
44
44
< Link
45
45
href = { deploymentLink }
Original file line number Diff line number Diff line change @@ -103,25 +103,25 @@ export class EmailClient {
103
103
} ;
104
104
case "alert-attempt" : {
105
105
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 } ` ,
107
107
component : < AlertAttemptFailureEmail { ...data } /> ,
108
108
} ;
109
109
}
110
110
case "alert-run" : {
111
111
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 } ` ,
113
113
component : < AlertRunFailureEmail { ...data } /> ,
114
114
} ;
115
115
}
116
116
case "alert-deployment-failure" : {
117
117
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 } ` ,
119
119
component : < AlertDeploymentFailureEmail { ...data } /> ,
120
120
} ;
121
121
}
122
122
case "alert-deployment-success" : {
123
123
return {
124
- subject : `Deployment ${ data . version } [${ data . environment } ] succeeded` ,
124
+ subject : `[ ${ data . organization } ] Deployment ${ data . version } [${ data . environment } ] succeeded` ,
125
125
component : < AlertDeploymentSuccessEmail { ...data } /> ,
126
126
} ;
127
127
}
You can’t perform that action at this time.
0 commit comments