From 2b741407256de133b00b4a4933fa695bad3e9c5d Mon Sep 17 00:00:00 2001 From: ytori Date: Wed, 22 Jan 2025 09:28:06 +0900 Subject: [PATCH] fix pr script (#318) --- scripts/konjacbot/pr.mts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/konjacbot/pr.mts b/scripts/konjacbot/pr.mts index 5b36835b..e10a6bb2 100644 --- a/scripts/konjacbot/pr.mts +++ b/scripts/konjacbot/pr.mts @@ -197,7 +197,8 @@ log('normal', `PR body:\n${body}`) log('normal', `PR label:${defaults.label}`) if (!dryRun) { - await $`gh pr create -B ${defaults.baseBranch} -t ${title} -b ${body} -l ${defaults.label}` + // see https://github.com/cli/cli/issues/6485 + await $`gh pr create -B ${defaults.baseBranch} -t ${title} -b ${body} -l ${defaults.label} --head $(git branch --show-current)` } log('important', '✅ PR created successfully !')