From 7410ab25f68d95323ceb6fc4b53e8556323b52a7 Mon Sep 17 00:00:00 2001 From: Alexis Ribot <118186663+alexisribot@users.noreply.github.com> Date: Tue, 10 Jun 2025 12:52:56 +0200 Subject: [PATCH] fix(labels): :bug: fix update labels --- src/github.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.sh b/src/github.sh index 58de4ce..bf8273f 100644 --- a/src/github.sh +++ b/src/github.sh @@ -84,7 +84,7 @@ github::add_label_to_pr() { curl -sSL \ -H "Authorization: token $GITHUB_TOKEN" \ -H "$GITHUB_API_HEADER" \ - -X POST \ + -X PUT \ -H "Content-Type: application/json" \ -d "{\"labels\":[$comma_separated_labels]}" \ "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/issues/$pr_number/labels" >/dev/null