File tree 1 file changed +15
-10
lines changed
1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -43,16 +43,21 @@ impl NotifyDriven for SlackNotifyDrivenImpl {
43
43
} else {
44
44
let profile = profile. first ( ) . unwrap ( ) ;
45
45
46
- let mut new_paload_as_value = serde_json:: to_value ( payload) . unwrap ( ) ;
47
- let new_payload = new_paload_as_value. as_object_mut ( ) . unwrap ( ) ;
48
- new_payload. insert (
49
- "user" . to_string ( ) ,
50
- serde_json:: json!( {
51
- "name" : profile. name,
52
- "email" : profile. email
53
- } ) ,
54
- ) ;
55
- Some ( to_string_pretty ( & new_payload) . unwrap ( ) )
46
+ if profile. email == E2E_EMAIL {
47
+ None
48
+ } else {
49
+ let mut new_paload_as_value =
50
+ serde_json:: to_value ( payload) . unwrap ( ) ;
51
+ let new_payload = new_paload_as_value. as_object_mut ( ) . unwrap ( ) ;
52
+ new_payload. insert (
53
+ "user" . to_string ( ) ,
54
+ serde_json:: json!( {
55
+ "name" : profile. name,
56
+ "email" : profile. email
57
+ } ) ,
58
+ ) ;
59
+ Some ( to_string_pretty ( & new_payload) . unwrap ( ) )
60
+ }
56
61
}
57
62
}
58
63
Err ( _) => Some ( to_string_pretty ( & payload) . unwrap ( ) ) ,
You can’t perform that action at this time.
0 commit comments