File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -274,8 +274,9 @@ async fn check_prefix_guards(
274274 . and_then ( |t| t. as_str ( ) )
275275 . unwrap_or ( "" ) ;
276276 if !current_title. starts_with ( prefix. as_str ( ) ) {
277+ let safe_title = sanitize_text ( current_title) ;
277278 return Ok ( Some ( ExecutionResult :: failure ( format ! (
278- "Work item #{id} title '{current_title }' does not start with the required prefix '{prefix}' (configured in title-prefix)"
279+ "Work item #{id} title '{safe_title }' does not start with the required prefix '{prefix}' (configured in title-prefix)"
279280 ) ) ) ) ;
280281 }
281282 debug ! ( "Title-prefix check passed: '{}'" , current_title) ;
@@ -293,8 +294,9 @@ async fn check_prefix_guards(
293294 . map ( str:: trim)
294295 . any ( |tag| tag. starts_with ( prefix. as_str ( ) ) ) ;
295296 if !has_matching_tag {
297+ let safe_tags = sanitize_text ( raw_tags) ;
296298 return Ok ( Some ( ExecutionResult :: failure ( format ! (
297- "Work item #{id} has no tag starting with '{prefix}' (configured in tag-prefix). Current tags: '{raw_tags }'"
299+ "Work item #{id} has no tag starting with '{prefix}' (configured in tag-prefix). Current tags: '{safe_tags }'"
298300 ) ) ) ) ;
299301 }
300302 debug ! ( "Tag-prefix check passed; matched in tags: '{}'" , raw_tags) ;
You can’t perform that action at this time.
0 commit comments