autopilot-code 0.0.21 → 0.0.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autopilot-code",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "private": false,
5
5
  "description": "Repo-issue–driven autopilot runner",
6
6
  "license": "MIT",
@@ -492,7 +492,7 @@ def try_merge_pr(cfg: RepoConfig, issue_number: int, pr: dict[str, Any]) -> bool
492
492
  print(f"[{cfg.repo}] PR #{pr_number} is already merged/closed, marking issue #{issue_number} as done", flush=True)
493
493
  sh(["gh", "issue", "edit", str(issue_number), "--repo", cfg.repo,
494
494
  "--add-label", cfg.label_done, "--remove-label", cfg.label_in_progress])
495
- sh(["gh", "issue", "close", str(issue_number), "--repo", cfg.repo, "--reason", "completed"])
495
+ sh(["gh", "issue", "close", str(issue_number), "--repo", cfg.repo])
496
496
  return True
497
497
 
498
498
  # Check if PR is mergeable
@@ -583,7 +583,7 @@ def try_merge_pr(cfg: RepoConfig, issue_number: int, pr: dict[str, Any]) -> bool
583
583
  sh(["gh", "issue", "comment", str(issue_number), "--repo", cfg.repo, "--body", success_msg])
584
584
  sh(["gh", "issue", "edit", str(issue_number), "--repo", cfg.repo,
585
585
  "--add-label", cfg.label_done, "--remove-label", cfg.label_in_progress])
586
- sh(["gh", "issue", "close", str(issue_number), "--repo", cfg.repo, "--reason", "completed"])
586
+ sh(["gh", "issue", "close", str(issue_number), "--repo", cfg.repo])
587
587
 
588
588
  return True
589
589
  except Exception as e:
@@ -445,7 +445,7 @@ if [[ "$AUTO_MERGE" == "true" ]] && [[ -n "$PR_URL" ]]; then
445
445
  fi
446
446
 
447
447
  gh issue edit "$ISSUE_NUMBER" --repo "$REPO" --add-label "$LABEL_DONE" --remove-label "$LABEL_IN_PROGRESS" || true
448
- gh issue close "$ISSUE_NUMBER" --repo "$REPO" --reason completed || true
448
+ gh issue close "$ISSUE_NUMBER" --repo "$REPO" || true
449
449
  else
450
450
  echo "[run_opencode_issue.sh] Failed to merge PR"
451
451
  MERGE_FAIL_MSG="❌ Autopilot failed to merge PR automatically.\n\nThe PR is ready (checks passed) but the merge operation failed. You may need to merge manually."
@@ -10,6 +10,7 @@
10
10
  "done": "autopilot:done"
11
11
  },
12
12
  "priorityLabels": ["p0", "p1", "p2"],
13
+ "minPriority": null,
13
14
  "maxParallel": 2,
14
15
  "ignoreIssueLabels": ["autopilot:backlog"],
15
16
  "branchPrefix": "autopilot/",