This commit is contained in:
di-sukharev
2023-05-20 21:09:14 +08:00
parent 32df5d5fe1
commit 88f367d662
2 changed files with 4 additions and 55 deletions

View File

@@ -193,36 +193,9 @@ async function improveCommitMessagesWithRebase({
async function run(retries = 3) {
intro('OpenCommit — improving commit messages with GPT');
let my1Output = '';
let my1Error = '';
await exec.exec('git', ['status']);
await exec.exec('git', ['status'], {
listeners: {
stdout: (data: Buffer) => {
my1Output += data.toString();
},
stderr: (data: Buffer) => {
my1Error += data.toString();
}
}
});
console.log({ my1Output, my1Error });
let my2Output = '';
let my2Error = '';
await exec.exec('git', ['status'], {
listeners: {
stdout: (data: Buffer) => {
my2Output += data.toString();
},
stderr: (data: Buffer) => {
my2Error += data.toString();
}
}
});
console.log({ my2Output, my2Error });
await exec.exec('git', ['log', '--oneline']);
try {
if (github.context.eventName === 'pull_request') {