This commit is contained in:
di-sukharev
2023-05-20 22:12:29 +08:00
parent 223a587765
commit b0363fa638
2 changed files with 2 additions and 2 deletions

View File

@@ -27281,7 +27281,7 @@ async function improveCommitMessagesWithRebase({
await import_exec.default.exec("git", ["pull"]);
await import_exec.default.exec("git", ["rebase", "-i", `${commitsToImprove[0].sha}^`], {
env: {
GIT_SEQUENCE_EDITOR: `sed -i -e 's/^pick/reword/g' "$1"`,
GIT_SEQUENCE_EDITOR: 'sed -i "" -e "s/^pick/reword/g"',
GIT_COMMITTER_NAME: process.env.GITHUB_ACTOR,
GIT_COMMITTER_EMAIL: `${process.env.GITHUB_ACTOR}@users.noreply.github.com`
}

View File

@@ -148,7 +148,7 @@ async function improveCommitMessagesWithRebase({
await exec.exec('git', ['rebase', '-i', `${commitsToImprove[0].sha}^`], {
env: {
GIT_SEQUENCE_EDITOR: 'sed -i -e \'s/^pick/reword/g\' "$1"',
GIT_SEQUENCE_EDITOR: 'sed -i "" -e "s/^pick/reword/g"',
GIT_COMMITTER_NAME: process.env.GITHUB_ACTOR!,
GIT_COMMITTER_EMAIL: `${process.env.GITHUB_ACTOR}@users.noreply.github.com`
}