Skip to content

Commit c20edf6

Browse files
Refine default grep pattern in workflow error script
This commit updates the default regular expression for the `--grep-pattern` argument in the `print_workflow_run_errors.py` script. The default pattern is changed from `"[Ee]rror[: ]"` to `"[Ee][Rr][Rr][Oo][Rr][: ]"` for more specific matching of "Error" (case-insensitive) followed by a colon or space.
1 parent 7319def commit c20edf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/print_workflow_run_errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ def parse_repo_url_arg(url_string):
159159
parser.add_argument(
160160
"--grep-pattern", "-g",
161161
type=str,
162-
default="[Ee]rror[: ]",
163-
help="Extended Regular Expression (ERE) to search for in logs. Default: \"[Ee]rror[: ]\". If an empty string is passed, grep is disabled."
162+
default="[Ee][Rr][Rr][Oo][Rr][: ]",
163+
help="Extended Regular Expression (ERE) to search for in logs. Default: \"[Ee][Rr][Rr][Oo][Rr][: ]\". If an empty string is passed, grep is disabled."
164164
)
165165
parser.add_argument(
166166
"--grep-context", "-C",

0 commit comments

Comments
 (0)