mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
build
This commit is contained in:
@@ -27280,10 +27280,11 @@ async function improveCommitMessagesWithRebase({
|
||||
await import_exec.default.exec("git", ["checkout", source]);
|
||||
await import_exec.default.exec("git", ["fetch", "--all"]);
|
||||
await import_exec.default.exec("git", ["pull"]);
|
||||
commitsToImprove.forEach(
|
||||
(commit) => (0, import_fs2.writeFileSync)(`./${commit.sha}.txt`, improvedMessagesBySha[commit.sha])
|
||||
);
|
||||
await import_exec.default.exec(
|
||||
commitsToImprove.forEach((commit) => {
|
||||
ce(`creating -F file for ${commit.sha}`);
|
||||
(0, import_fs2.writeFileSync)(`./${commit.sha}.txt`, improvedMessagesBySha[commit.sha]);
|
||||
});
|
||||
const done = await import_exec.default.exec(
|
||||
"git",
|
||||
[
|
||||
"rebase",
|
||||
@@ -27299,6 +27300,7 @@ async function improveCommitMessagesWithRebase({
|
||||
}
|
||||
}
|
||||
);
|
||||
ce(`!!!done: ${done}`);
|
||||
commitsToImprove.forEach((commit) => (0, import_fs2.unlinkSync)(`./${commit.sha}.txt`));
|
||||
ce("Force pushing interactively rebased commits into remote origin.");
|
||||
await import_exec.default.exec("git", ["push", "origin", `+${source}`]);
|
||||
|
||||
@@ -157,11 +157,12 @@ async function improveCommitMessagesWithRebase({
|
||||
await exec.exec('git', ['fetch', '--all']);
|
||||
await exec.exec('git', ['pull']);
|
||||
|
||||
commitsToImprove.forEach((commit) =>
|
||||
writeFileSync(`./${commit.sha}.txt`, improvedMessagesBySha[commit.sha])
|
||||
);
|
||||
commitsToImprove.forEach((commit) => {
|
||||
outro(`creating -F file for ${commit.sha}`);
|
||||
writeFileSync(`./${commit.sha}.txt`, improvedMessagesBySha[commit.sha]);
|
||||
});
|
||||
|
||||
await exec.exec(
|
||||
const done = await exec.exec(
|
||||
'git',
|
||||
[
|
||||
'rebase',
|
||||
@@ -178,6 +179,8 @@ async function improveCommitMessagesWithRebase({
|
||||
}
|
||||
);
|
||||
|
||||
outro(`!!!done: ${done}`);
|
||||
|
||||
commitsToImprove.forEach((commit) => unlinkSync(`./${commit.sha}.txt`));
|
||||
|
||||
// async function changeCommitMessages(
|
||||
|
||||
Reference in New Issue
Block a user