chiefwiggum 1.3.38 → 1.3.39
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 +3 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -440,9 +440,10 @@ Then list open issues: gh issue list --state open
|
|
|
440
440
|
Use this to update issue status on the project board (replace <issue_number> and <status_name>):
|
|
441
441
|
|
|
442
442
|
\`\`\`bash
|
|
443
|
-
# Get repo owner and project
|
|
443
|
+
# Get repo owner, project number, and project ID
|
|
444
444
|
OWNER=$(gh repo view --json owner -q .owner.login)
|
|
445
445
|
PROJECT_NUM=$(gh repo view --json projectsV2 -q '.projectsV2.Nodes[0].number')
|
|
446
|
+
PROJECT_ID=$(gh repo view --json projectsV2 -q '.projectsV2.Nodes[0].id')
|
|
446
447
|
|
|
447
448
|
# Get the issue's item ID in the project
|
|
448
449
|
ITEM_ID=$(gh project item-list $PROJECT_NUM --owner $OWNER --format json | jq -r '.items[] | select(.content.number == <issue_number>) | .id')
|
|
@@ -452,7 +453,7 @@ FIELD_ID=$(gh project field-list $PROJECT_NUM --owner $OWNER --format json | jq
|
|
|
452
453
|
STATUS_ID=$(gh project field-list $PROJECT_NUM --owner $OWNER --format json | jq -r '.fields[] | select(.name == "Status") | .options[] | select(.name == "<status_name>") | .id')
|
|
453
454
|
|
|
454
455
|
# Update status (use "In Progress" when starting, "Done" when complete)
|
|
455
|
-
gh project item-edit --project-id $
|
|
456
|
+
gh project item-edit --project-id $PROJECT_ID --id $ITEM_ID --field-id $FIELD_ID --single-select-option-id $STATUS_ID
|
|
456
457
|
\`\`\`
|
|
457
458
|
|
|
458
459
|
If any step fails (no project linked, field not found), skip and continue.
|