Skip to content

Commit

Permalink
fixup! fixup! fixup! DBG print
Browse files Browse the repository at this point in the history
  • Loading branch information
renefritze committed Mar 25, 2024
1 parent 99a68c6 commit 7908ce4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions run_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,16 +568,19 @@ def conversation_threads_to_close(

data = response.json()
# a regex that matches the start of a single comment
single_comment_marker = re.escape(single_comment_marker)
single_comment_marker_re = re.escape(single_comment_marker)
comment_matcher = re.compile(
f"^{single_comment_marker}.*{single_comment_marker}.*", re.DOTALL
f"^{single_comment_marker_re}.*{single_comment_marker_re}.*", re.DOTALL
)

# Iterate through review threads
for thread in data["data"]["repository"]["pullRequest"]["reviewThreads"]["nodes"]:
for comment in thread["comments"]["nodes"]:
print(f"::debug::Checking comment {comment['id']} in thread {thread['id']}")
print(f"::debug::Comment body: {comment['body']}")
print(
f"::debug::Looking for: '{single_comment_marker=}' '{single_comment_marker_re=}' "
)
if (
comment["id"]
and thread["isResolved"] is False
Expand Down

0 comments on commit 7908ce4

Please sign in to comment.