mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
build
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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 ---
|
||||
|
||||
Reference in New Issue
Block a user