From 22f37e0da549cd7148533f7ec152bb777d757f31 Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Sat, 20 May 2023 22:04:44 +0800 Subject: [PATCH] build --- out/github-action.cjs | 4 ++-- src/github-action.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/out/github-action.cjs b/out/github-action.cjs index 2329042..ce0fed3 100644 --- a/out/github-action.cjs +++ b/out/github-action.cjs @@ -27274,12 +27274,12 @@ async function improveCommitMessagesWithRebase({ console.log({ improvedMessagesBySha }); ce("Done."); ce( - `Starting interactive rebase: "$ rebase -i ${commitsToImprove[0].sha}".` + `Starting interactive rebase: "$ rebase -i ${commitsToImprove[0].sha}^".` ); await import_exec.default.exec("git", ["checkout", source]); await import_exec.default.exec("git", ["fetch", "--all"]); await import_exec.default.exec("git", ["pull"]); - await import_exec.default.exec("git", ["rebase", "-i", commitsToImprove[0].sha], { + await import_exec.default.exec("git", ["rebase", "-i", `${commitsToImprove[0].sha}^`], { env: { GIT_SEQUENCE_EDITOR: `sed -i -e 's/^pick/reword/g' "$1"`, GIT_COMMITTER_NAME: process.env.GITHUB_ACTOR, diff --git a/src/github-action.ts b/src/github-action.ts index 57b2c45..43af542 100644 --- a/src/github-action.ts +++ b/src/github-action.ts @@ -138,7 +138,7 @@ async function improveCommitMessagesWithRebase({ outro('Done.'); outro( - `Starting interactive rebase: "$ rebase -i ${commitsToImprove[0].sha}".` + `Starting interactive rebase: "$ rebase -i ${commitsToImprove[0].sha}^".` ); // fetch all commits inside the process @@ -146,7 +146,7 @@ async function improveCommitMessagesWithRebase({ await exec.exec('git', ['fetch', '--all']); await exec.exec('git', ['pull']); - await exec.exec('git', ['rebase', '-i', commitsToImprove[0].sha], { + await exec.exec('git', ['rebase', '-i', `${commitsToImprove[0].sha}^`], { env: { GIT_SEQUENCE_EDITOR: 'sed -i -e \'s/^pick/reword/g\' "$1"', GIT_COMMITTER_NAME: process.env.GITHUB_ACTOR!,