@kody-ade/kody-engine-lite 0.1.88 → 0.1.90
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 +6 -1
- package/package.json +1 -1
- package/templates/kody.yml +2 -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;
|
package/package.json
CHANGED
package/templates/kody.yml
CHANGED
|
@@ -99,8 +99,9 @@ jobs:
|
|
|
99
99
|
- name: Parse inputs
|
|
100
100
|
if: steps.safety.outputs.valid == 'true'
|
|
101
101
|
id: parse
|
|
102
|
+
env:
|
|
103
|
+
BODY: ${{ github.event.comment.body }}
|
|
102
104
|
run: |
|
|
103
|
-
BODY="${{ github.event.comment.body }}"
|
|
104
105
|
# Extract: @kody [mode] [task-id] [--from stage]
|
|
105
106
|
KODY_ARGS=$(echo "$BODY" | grep -oP '(?:@kody|/kody)\s+\K.*' || echo "")
|
|
106
107
|
MODE=$(echo "$KODY_ARGS" | awk '{print $1}')
|