Skip to content

Commit

Permalink
Change to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
codycooperross committed Jul 30, 2024
1 parent d793fdd commit d341514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/update_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def get_matching_labels(discussion_body):
row_type = row.get("type")
match row_type:
case "check":
text_to_match = "- [X] " + row.get("text")
if text_to_match in discussion_body:
regex = r"- \[[x|X]\]\s.*" + row.get("text")
if re.search(regex, discussion_body):
matching_labels.append(row.get("label"))
return matching_labels

Expand Down

0 comments on commit d341514

Please sign in to comment.