From 6cb69c683cae07150a43ed17862221ab43ebb7ea Mon Sep 17 00:00:00 2001 From: nivSwisa1 Date: Thu, 14 May 2026 15:29:04 +0300 Subject: [PATCH] Use \w+ instead of \w{1,} in Label Missing Jira Info description regex Equivalent regex, but the braces in \w{1,} trip up js-yaml in the gitstream pipeline's CM serialization (single-quotes the template, which the post-process cleanup regex then can't unwrap), causing the rules engine to see a string instead of a boolean. \w+ is the same pattern with no `{` `}`. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/managed-mode.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/managed-mode.md b/docs/managed-mode.md index 7e1b3c888..232aba4d7 100644 --- a/docs/managed-mode.md +++ b/docs/managed-mode.md @@ -108,7 +108,7 @@ automations: color: 'F6443B' missing_jira_ticket_on_title: {{ pr.title | capture(regex=r/\b[A-Za-z]+-\d+\b/) | length == 0 }} -missing_jira_ticket_on_description: {{ pr.description | capture(regex=r/atlassian\.net\/browse\/\w{1,}-\d+/) | length == 0 }} +missing_jira_ticket_on_description: {{ pr.description | capture(regex=r/atlassian\.net\/browse\/\w+-\d+/) | length == 0 }} missing_jira_ticket_on_branch: {{ pr.source | capture(regex=r/\b[A-Za-z]+-\d+\b/) | length == 0 }} missing_jira_ticket: {{ missing_jira_ticket_on_title and missing_jira_ticket_on_description and missing_jira_ticket_on_branch }} ```