@@ -113,6 +113,13 @@ test("seleziona solo un'invocazione esatta, fidata e successiva all'HEAD", () =>
113113 id : 1 ,
114114 user : { login : "max23468" } ,
115115 author_association : "OWNER" ,
116+ body : "@codex review" ,
117+ created_at : "2026-08-09T11:59:59Z" ,
118+ } ,
119+ {
120+ id : 4 ,
121+ user : { login : "max23468" } ,
122+ author_association : "OWNER" ,
116123 body : "non eseguire @codex review" ,
117124 created_at : "2026-08-09T12:00:01Z" ,
118125 } ,
@@ -169,6 +176,9 @@ test("il workflow usa codice trusted e non richiede commenti al primo giro", asy
169176 ) ;
170177 assert . match ( workflow , / p u l l _ r e q u e s t _ t a r g e t : / ) ;
171178 assert . match ( workflow , / i s s u e _ c o m m e n t : / ) ;
179+ assert . match ( workflow , / g i t h u b \. e v e n t \. c o m m e n t \. b o d y = = ' @ c o d e x r e v i e w ' / ) ;
180+ assert . match ( workflow , / g i t h u b \. e v e n t \. c o m m e n t \. a u t h o r _ a s s o c i a t i o n = = ' O W N E R ' / ) ;
181+ assert . doesNotMatch ( workflow , / c o n t a i n s \( g i t h u b \. e v e n t \. c o m m e n t \. b o d y / ) ;
172182 assert . match ( workflow , / s t a t u s e s : w r i t e / ) ;
173183 assert . doesNotMatch ( workflow , / i s s u e s : w r i t e / ) ;
174184 assert . match ( workflow , / n o d e - - t e s t s c r i p t s \/ c o d e x - r e v i e w - g a t e \. t e s t \. m j s / ) ;
0 commit comments