Skip to content

Commit

Permalink
fix: remove right arrow emoji to find the end of the bot message
Browse files Browse the repository at this point in the history
In the has_unsatisfied_dod function, the emoji with the right arrow at
the last criterion is removed to be able to find the end of the bot
message if it is an indented DOD.
  • Loading branch information
laske185 authored and platisd committed Feb 9, 2024
1 parent d81b8ee commit 7624eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def has_bot_comment(pull_request_description):
def has_unsatisfied_dod(pull_request_description, dod_criteria):
# Extract the bot message from the pull request description
bot_message_begin = pull_request_description.find(MESSAGE_HEADER)
last_criterion = dod_criteria[-1]
last_criterion = dod_criteria[-1].replace(RIGHT_ARROW_EMOJI, "")
bot_message_end = pull_request_description.find(last_criterion)
if bot_message_end == -1:
print(
Expand Down

0 comments on commit 7624eb1

Please sign in to comment.