From 597dd365807e53bccf6926927ab03bd5194c7ee8 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Tue, 23 May 2023 15:18:18 -0400 Subject: [PATCH] fix: Fix setting milestone on new release PRs Signed-off-by: Sebastian Malton --- packages/release-tool/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/release-tool/src/index.ts b/packages/release-tool/src/index.ts index 13efd8a7ff0b..e6f702fbeb82 100755 --- a/packages/release-tool/src/index.ts +++ b/packages/release-tool/src/index.ts @@ -240,7 +240,7 @@ async function createReleaseBranchAndCommit(prBase: string, version: SemVer, prB 'X-GitHub-Api-Version': '2022-11-28' }, }); - await octokit.request("POST /repos/{owner}/{repo}/issues/{issue_number}/milestone", { + await octokit.request("PATCH /repos/{owner}/{repo}/issues/{issue_number}", { owner: "lensapp", repo: "lens", issue_number: newReleasePR.data.number,