From 4a35a533ce71b6edb72f2049f4c13d0611d17607 Mon Sep 17 00:00:00 2001 From: Ryan Christian <33403762+rschristian@users.noreply.github.com> Date: Fri, 27 Sep 2024 02:26:39 -0500 Subject: [PATCH] fix: Incorrect fetch for `baseRef` (#109) --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 93d021d..d03a167 100644 --- a/src/index.js +++ b/src/index.js @@ -92,7 +92,7 @@ async function run(octokit, context, token) { startGroup(`[base] Checkout target branch`); try { if (!baseRef) throw Error('missing context.payload.pull_request.base.ref'); - await exec(`git fetch -n origin ${baseRef}`); + await exec(`git fetch -n origin ${baseRef}:${baseRef}`); console.log('successfully fetched base.ref'); } catch (e) { console.log('fetching base.ref failed', e.message);