@kody-ade/kody-engine-lite 0.1.87 → 0.1.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +8 -2
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -495,7 +495,12 @@ function commitAll(message, cwd) {
|
|
|
495
495
|
return { success: true, hash, message };
|
|
496
496
|
}
|
|
497
497
|
function pushBranch(cwd) {
|
|
498
|
-
|
|
498
|
+
try {
|
|
499
|
+
git(["push", "-u", "origin", "HEAD"], { cwd, timeout: 12e4 });
|
|
500
|
+
} catch {
|
|
501
|
+
logger.info(" Push rejected (non-fast-forward), retrying with --force-with-lease");
|
|
502
|
+
git(["push", "--force-with-lease", "-u", "origin", "HEAD"], { cwd, timeout: 12e4 });
|
|
503
|
+
}
|
|
499
504
|
logger.info(" Pushed to origin");
|
|
500
505
|
}
|
|
501
506
|
var BASE_BRANCHES, _hookSafeEnv;
|
|
@@ -3860,7 +3865,8 @@ async function main() {
|
|
|
3860
3865
|
logger.info(`Working directory: ${projectDir}`);
|
|
3861
3866
|
}
|
|
3862
3867
|
const isPRFix = (input.command === "fix" || input.command === "fix-ci") && !!input.prNumber;
|
|
3863
|
-
|
|
3868
|
+
const skipStateCheck = input.command === "review" || input.command === "resolve" || input.command === "rerun";
|
|
3869
|
+
if (input.issueNumber && !skipStateCheck && !isPRFix) {
|
|
3864
3870
|
const taskAction = resolveForIssue(input.issueNumber, projectDir);
|
|
3865
3871
|
logger.info(`Task action: ${taskAction.action}`);
|
|
3866
3872
|
if (taskAction.action === "already-completed") {
|