From 20c08bdba7ad4fd487f5956b66eb2ece754fd84b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Wed, 5 Oct 2022 11:12:36 +0200 Subject: [PATCH] Revert "Backport: work around GitHub .patch URL issue (#74452)" This reverts commit 96a32c6239270b3da4ed6acdb5f77cd419078c64. --- eng/actions/backport/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eng/actions/backport/index.js b/eng/actions/backport/index.js index 06177e69a25b71..1b4f227ed8fb81 100644 --- a/eng/actions/backport/index.js +++ b/eng/actions/backport/index.js @@ -67,9 +67,7 @@ async function run() { } catch { } // download and apply patch - let patch_url = github.context.payload.issue.pull_request.patch_url; - patch_url = patch_url.replace("runtime", "RUNTIME"); - await exec.exec(`curl -sSL "${patch_url}" --output changes.patch`); + await exec.exec(`curl -sSL "${github.context.payload.issue.pull_request.patch_url}" --output changes.patch`); const git_am_command = "git am --3way --ignore-whitespace --keep-non-patch changes.patch"; let git_am_output = `$ ${git_am_command}\n\n`;