This commit is contained in:
di-sukharev
2023-05-20 20:29:54 +08:00
parent 23037a3988
commit a7da40f151
2 changed files with 4 additions and 4 deletions

View File

@@ -27274,7 +27274,7 @@ async function improveCommitMessagesWithRebase({
const improvedMessagesBySha = await improveMessagesInChunks();
console.log({ improvedMessagesBySha });
ce("Done.");
ce(`Starting interactive rebase: "$ rebase -i ${base}".`);
ce(`Starting interactive rebase: "$ rebase -i origin/${base}".`);
await import_exec.default.exec("git", [
"config",
"user.email",
@@ -27283,7 +27283,7 @@ async function improveCommitMessagesWithRebase({
await import_exec.default.exec("git", ["config", "user.name", process.env.GITHUB_ACTOR]);
await import_exec.default.exec("git", ["fetch", "--all"]);
await import_exec.default.exec("git", ["checkout", source]);
await import_exec.default.exec("git", ["rebase", "-i", `${commitsToImprove[0].sha}^`], {
await import_exec.default.exec("git", ["rebase", "-i", `origin/${base}`], {
env: {
GIT_SEQUENCE_EDITOR: `sed -i -e 's/^pick/reword/g' "$GIT_SEQUENCE_EDITOR"`,
GIT_COMMITTER_NAME: process.env.GITHUB_ACTOR,

View File

@@ -137,7 +137,7 @@ async function improveCommitMessagesWithRebase({
outro('Done.');
outro(`Starting interactive rebase: "$ rebase -i ${base}".`);
outro(`Starting interactive rebase: "$ rebase -i origin/${base}".`);
// Set the Git identity
await exec.exec('git', [
@@ -152,7 +152,7 @@ async function improveCommitMessagesWithRebase({
await exec.exec('git', ['checkout', source]);
await exec.exec('git', ['rebase', '-i', `${commitsToImprove[0].sha}^`], {
await exec.exec('git', ['rebase', '-i', `origin/${base}`], {
env: {
GIT_SEQUENCE_EDITOR:
'sed -i -e \'s/^pick/reword/g\' "$GIT_SEQUENCE_EDITOR"',