Skip to content

Commit 7908ce4

Browse files
committed
fixup! fixup! fixup! DBG print
1 parent 99a68c6 commit 7908ce4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

run_action.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -568,16 +568,19 @@ def conversation_threads_to_close(
568568

569569
data = response.json()
570570
# a regex that matches the start of a single comment
571-
single_comment_marker = re.escape(single_comment_marker)
571+
single_comment_marker_re = re.escape(single_comment_marker)
572572
comment_matcher = re.compile(
573-
f"^{single_comment_marker}.*{single_comment_marker}.*", re.DOTALL
573+
f"^{single_comment_marker_re}.*{single_comment_marker_re}.*", re.DOTALL
574574
)
575575

576576
# Iterate through review threads
577577
for thread in data["data"]["repository"]["pullRequest"]["reviewThreads"]["nodes"]:
578578
for comment in thread["comments"]["nodes"]:
579579
print(f"::debug::Checking comment {comment['id']} in thread {thread['id']}")
580580
print(f"::debug::Comment body: {comment['body']}")
581+
print(
582+
f"::debug::Looking for: '{single_comment_marker=}' '{single_comment_marker_re=}' "
583+
)
581584
if (
582585
comment["id"]
583586
and thread["isResolved"] is False

0 commit comments

Comments
 (0)