From 778555a1fb8e55b014161d64385d0f0a15994c41 Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Mon, 20 Nov 2023 21:06:02 +0100 Subject: [PATCH] send-to-bot: remove once, let the tldr-bot always comment (#11547) --- scripts/send-to-bot.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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)