This commit is contained in:
di-sukharev
2023-05-21 12:33:28 +08:00
parent fef923a099
commit 2932a1fc28
2 changed files with 0 additions and 21 deletions

View File

@@ -27277,12 +27277,6 @@ async function improveCommitMessagesWithRebase({
const improvedMessagesBySha = await improveMessagesInChunks();
console.log({ improvedMessagesBySha });
ce("Done.");
ce(
`Starting non-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"]);
commitsToImprove.forEach((commit, i2) => {
ce(`creating -F file for ${commit.sha}`);
(0, import_fs2.writeFileSync)(`./commit-${i2}.txt`, improvedMessagesBySha[commit.sha]);
@@ -27345,9 +27339,6 @@ async function run(retries = 3) {
pull_number: payload.pull_request.number
});
const commits = commitsResponse.data;
await import_exec.default.exec("git", ["checkout", sourceBranch]);
await import_exec.default.exec("git", ["fetch", "--all"]);
await import_exec.default.exec("git", ["pull"]);
await import_exec.default.exec("git", ["status"]);
await import_exec.default.exec("git", ["log", "--oneline"]);
await improveCommitMessagesWithRebase({

View File

@@ -153,15 +153,6 @@ async function improveCommitMessagesWithRebase({
outro('Done.');
outro(
`Starting non-interactive rebase: "$ rebase -i ${commitsToImprove[0].sha}^".`
);
// fetch all commits inside the process
await exec.exec('git', ['checkout', source]);
await exec.exec('git', ['fetch', '--all']);
await exec.exec('git', ['pull']);
commitsToImprove.forEach((commit, i) => {
outro(`creating -F file for ${commit.sha}`);
writeFileSync(`./commit-${i}.txt`, improvedMessagesBySha[commit.sha]);
@@ -246,9 +237,6 @@ async function run(retries = 3) {
const commits = commitsResponse.data;
// --- TEST ---
await exec.exec('git', ['checkout', sourceBranch]);
await exec.exec('git', ['fetch', '--all']);
await exec.exec('git', ['pull']);
await exec.exec('git', ['status']);
await exec.exec('git', ['log', '--oneline']);
// --- TEST ---