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