Skip to content

Commit 96a32c6

Browse files
authored
Backport: work around GitHub .patch URL issue (#74452)
https://github.com/dotnet/RUNTIME/pull/74433.patch works but https://github.com/dotnet/runtime/pull/74433.patch leads to 404, opened a ticket with GitHub: `#1757301`
1 parent 7051f02 commit 96a32c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eng/actions/backport/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ async function run() {
6767
} catch { }
6868

6969
// download and apply patch
70-
await exec.exec(`curl -sSL "${github.context.payload.issue.pull_request.patch_url}" --output changes.patch`);
70+
let patch_url = github.context.payload.issue.pull_request.patch_url;
71+
patch_url = patch_url.replace("runtime", "RUNTIME");
72+
await exec.exec(`curl -sSL "${patch_url}" --output changes.patch`);
7173

7274
const git_am_command = "git am --3way --ignore-whitespace --keep-non-patch changes.patch";
7375
let git_am_output = `$ ${git_am_command}\n\n`;

0 commit comments

Comments
 (0)