diff --git a/scripts/send-to-bot.py b/scripts/send-to-bot.py index a99b40f76..dff52d5a3 100755 --- a/scripts/send-to-bot.py +++ b/scripts/send-to-bot.py @@ -28,12 +28,9 @@ Is this intended? If so, just ignore this comment. Otherwise, please double-chec ################################################################################ -def post_comment(pr_id, body, once): +def post_comment(pr_id, body): endpoint = f"{BOT_URL}/comment" - if once: - endpoint += "/once" - data = {"pr_id": pr_id, "body": body} try: @@ -62,12 +59,10 @@ def main(action): if action == "report-errors": comment_body = COMMENT_ERROR.format(build_id=BUILD_ID, content=content) - comment_once = False elif action == "report-check-results": comment_body = COMMENT_CHECK.format(content=content) - comment_once = True - if post_comment(PR_ID, comment_body, comment_once): + if post_comment(PR_ID, comment_body): print("Success.") else: print("Error sending data to tldr-bot!", file=sys.stderr)