@jonit-dev/night-watch-cli 1.8.10-beta.7 → 1.8.10-beta.8
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.
|
@@ -439,12 +439,8 @@ executor_branch_has_commits_ahead_of_base() {
|
|
|
439
439
|
local base_ref=""
|
|
440
440
|
local ahead_count="0"
|
|
441
441
|
|
|
442
|
-
if
|
|
443
|
-
|
|
444
|
-
elif git -C "${WORKTREE_DIR}" rev-parse --verify "${DEFAULT_BRANCH}" >/dev/null 2>&1; then
|
|
445
|
-
base_ref="${DEFAULT_BRANCH}"
|
|
446
|
-
else
|
|
447
|
-
return 0
|
|
442
|
+
if ! base_ref=$(resolve_worktree_base_ref "${WORKTREE_DIR}" "${DEFAULT_BRANCH}" 2>/dev/null); then
|
|
443
|
+
return 1
|
|
448
444
|
fi
|
|
449
445
|
|
|
450
446
|
ahead_count=$(git -C "${WORKTREE_DIR}" rev-list --count "${base_ref}..HEAD" 2>/dev/null || echo "0")
|
|
@@ -466,16 +462,16 @@ ensure_executor_pr() {
|
|
|
466
462
|
pr_title=$(build_executor_pr_title)
|
|
467
463
|
pr_body=$(build_executor_pr_body)
|
|
468
464
|
|
|
469
|
-
log "PR: Creating draft PR for ${BRANCH_NAME}"
|
|
470
|
-
if ! push_executor_branch "initial"; then
|
|
471
|
-
log "WARN: Initial push for ${BRANCH_NAME} failed before PR creation"
|
|
472
|
-
fi
|
|
473
|
-
|
|
474
465
|
if ! executor_branch_has_commits_ahead_of_base; then
|
|
475
466
|
log "PR: Deferring draft PR creation for ${BRANCH_NAME} until it has commits beyond ${DEFAULT_BRANCH}"
|
|
476
467
|
return 0
|
|
477
468
|
fi
|
|
478
469
|
|
|
470
|
+
log "PR: Creating draft PR for ${BRANCH_NAME}"
|
|
471
|
+
if ! push_executor_branch "initial"; then
|
|
472
|
+
log "WARN: Initial push for ${BRANCH_NAME} failed before PR creation"
|
|
473
|
+
fi
|
|
474
|
+
|
|
479
475
|
ensure_executor_status_labels
|
|
480
476
|
if ! create_output=$(
|
|
481
477
|
gh pr create \
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jonit-dev/night-watch-cli",
|
|
3
|
-
"version": "1.8.10-beta.
|
|
3
|
+
"version": "1.8.10-beta.8",
|
|
4
4
|
"description": "AI agent that implements your specs, opens PRs, and reviews code overnight. Queue GitHub issues or PRDs, wake up to pull requests.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|