fix(scripts): make pr-state work on macOS's stock bash and jq 1.6 (#2871)
Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com> Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
This commit is contained in:
+2
-2
@@ -393,7 +393,7 @@ review_evidence_json() {
|
||||
markdown_prose_lines
|
||||
| any(
|
||||
.
|
||||
| gsub("^[[:space:]]*(?:(?:[-*+]\\s+)|(?:[0-9]+\\.\\s+))?(?:\\*\\*|__|_|\\*)?"; "")
|
||||
| sub("^[[:space:]]*(?:(?:[-*+]\\s+)|(?:[0-9]+\\.\\s+))?(?:\\*\\*|__|_|\\*)?"; "")
|
||||
| test("^(?:blocked|changes[ _-]?requested|action required|must fix|required fix|please fix)\\b"; "i")
|
||||
);
|
||||
def review_eligibility:
|
||||
@@ -752,7 +752,7 @@ fetch_review_threads_nodes_json() {
|
||||
}
|
||||
}
|
||||
}' \
|
||||
-f owner="$owner" -f repo="$repo" -F pr="$pr_number" "${cursor_args[@]}")"; then
|
||||
-f owner="$owner" -f repo="$repo" -F pr="$pr_number" ${cursor_args[@]+"${cursor_args[@]}"})"; then
|
||||
rm -f "$nodes_file"
|
||||
return 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user