From 49586fc30e8f1b70b9bda4bdb4c682d414a635fc Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Tue, 16 Jan 2024 21:23:33 -0500 Subject: [PATCH] CI: auto_pr_review fix error when label doesn't exist (#31030) * bot template * catch error --- .github/workflows/auto_pr_review.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/auto_pr_review.yaml b/.github/workflows/auto_pr_review.yaml index 0f82eaa78..820801a2c 100644 --- a/.github/workflows/auto_pr_review.yaml +++ b/.github/workflows/auto_pr_review.yaml @@ -193,6 +193,8 @@ jobs: github.rest.issues.removeLabel({ ...body_data, name: "in-bot-review", + }).catch((error) => { + console.log("Label 'in-bot-review' not found, ignoring"); }); }