chiefwiggum 1.3.36 → 1.3.38
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/cli.cjs +13 -3
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -442,7 +442,7 @@ Use this to update issue status on the project board (replace <issue_number> and
|
|
|
442
442
|
\`\`\`bash
|
|
443
443
|
# Get repo owner and project number
|
|
444
444
|
OWNER=$(gh repo view --json owner -q .owner.login)
|
|
445
|
-
PROJECT_NUM=$(gh repo view --json projectsV2 -q '.projectsV2.
|
|
445
|
+
PROJECT_NUM=$(gh repo view --json projectsV2 -q '.projectsV2.Nodes[0].number')
|
|
446
446
|
|
|
447
447
|
# Get the issue's item ID in the project
|
|
448
448
|
ITEM_ID=$(gh project item-list $PROJECT_NUM --owner $OWNER --format json | jq -r '.items[] | select(.content.number == <issue_number>) | .id')
|
|
@@ -575,7 +575,7 @@ function getCurrentCommit() {
|
|
|
575
575
|
function getLinkedProjectNumber() {
|
|
576
576
|
try {
|
|
577
577
|
const output = (0, import_node_child_process5.execSync)(
|
|
578
|
-
"gh repo view --json projectsV2 -q '.projectsV2.
|
|
578
|
+
"gh repo view --json projectsV2 -q '.projectsV2.Nodes[0].number'",
|
|
579
579
|
{ encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"], timeout: 3e4 }
|
|
580
580
|
);
|
|
581
581
|
const num = output.trim();
|
|
@@ -637,9 +637,19 @@ async function ensureProjectLinked() {
|
|
|
637
637
|
return;
|
|
638
638
|
}
|
|
639
639
|
if (selected === "__new__") {
|
|
640
|
+
const existingNames = new Set(existingProjects.map((p2) => p2.title.toLowerCase()));
|
|
640
641
|
const projectName = await text2({
|
|
641
642
|
message: "Board name",
|
|
642
|
-
placeholder: "e.g., My Project Kanban"
|
|
643
|
+
placeholder: "e.g., My Project Kanban",
|
|
644
|
+
validate: (value) => {
|
|
645
|
+
if (!value || !value.trim()) {
|
|
646
|
+
return "Board name is required";
|
|
647
|
+
}
|
|
648
|
+
if (existingNames.has(value.trim().toLowerCase())) {
|
|
649
|
+
return `A board named "${value.trim()}" already exists. Choose a different name.`;
|
|
650
|
+
}
|
|
651
|
+
return void 0;
|
|
652
|
+
}
|
|
643
653
|
});
|
|
644
654
|
console.log(import_picocolors6.default.cyan(`Creating board "${projectName}"...`));
|
|
645
655
|
try {
|