From 2418089208fd0de1973791b8a15285bf12c2c385 Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Tue, 1 Oct 2024 22:30:10 +0200 Subject: [PATCH] send-to-bot: enrich the comment to update the comment later (#13775) --- scripts/send-to-bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/send-to-bot.py b/scripts/send-to-bot.py index dff52d5a37..3f35371f92 100755 --- a/scripts/send-to-bot.py +++ b/scripts/send-to-bot.py @@ -8,6 +8,7 @@ import requests BOT_URL = "https://tldr-bot.starbeamrainbowlabs.com" COMMENT_ERROR = """ + The [build](https://github.com/tldr-pages/tldr/actions/runs/{build_id}) for this PR failed with the following error(s): ``` @@ -18,6 +19,7 @@ Please fix the error(s) and push again. """ COMMENT_CHECK = """ + Hello! I've noticed something unusual when checking this PR: {content} @@ -29,7 +31,7 @@ Is this intended? If so, just ignore this comment. Otherwise, please double-chec def post_comment(pr_id, body): - endpoint = f"{BOT_URL}/comment" + endpoint = f"{BOT_URL}/comment/recreate" data = {"pr_id": pr_id, "body": body}