chiefwiggum 1.3.29 → 1.3.32
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 +26 -3
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -531,9 +531,32 @@ Then list open issues: gh issue list --state open
|
|
|
531
531
|
## Workflow
|
|
532
532
|
1. Pick the FIRST open issue (lowest number)
|
|
533
533
|
2. Read the issue: gh issue view <number>
|
|
534
|
-
3.
|
|
535
|
-
4.
|
|
536
|
-
5.
|
|
534
|
+
3. Update project board status to "In Progress" (see instructions below)
|
|
535
|
+
4. Implement the code
|
|
536
|
+
5. Close the issue: gh issue close <number> --comment "Completed"
|
|
537
|
+
6. Update project board status to "Done"
|
|
538
|
+
7. Commit: git commit -m "type(scope): description (closes #<number>)"
|
|
539
|
+
|
|
540
|
+
## Update Project Board Status
|
|
541
|
+
Use this to update issue status on the project board (replace <issue_number> and <status_name>):
|
|
542
|
+
|
|
543
|
+
\`\`\`bash
|
|
544
|
+
# Get repo owner and project number
|
|
545
|
+
OWNER=$(gh repo view --json owner -q .owner.login)
|
|
546
|
+
PROJECT_NUM=$(gh repo view --json projectsV2 -q '.projectsV2.nodes[0].number')
|
|
547
|
+
|
|
548
|
+
# Get the issue's item ID in the project
|
|
549
|
+
ITEM_ID=$(gh project item-list $PROJECT_NUM --owner $OWNER --format json | jq -r '.items[] | select(.content.number == <issue_number>) | .id')
|
|
550
|
+
|
|
551
|
+
# Get Status field ID and target status option ID
|
|
552
|
+
FIELD_ID=$(gh project field-list $PROJECT_NUM --owner $OWNER --format json | jq -r '.fields[] | select(.name == "Status") | .id')
|
|
553
|
+
STATUS_ID=$(gh project field-list $PROJECT_NUM --owner $OWNER --format json | jq -r '.fields[] | select(.name == "Status") | .options[] | select(.name == "<status_name>") | .id')
|
|
554
|
+
|
|
555
|
+
# Update status (use "In Progress" when starting, "Done" when complete)
|
|
556
|
+
gh project item-edit --project-id $PROJECT_NUM --id $ITEM_ID --field-id $FIELD_ID --single-select-option-id $STATUS_ID
|
|
557
|
+
\`\`\`
|
|
558
|
+
|
|
559
|
+
If any step fails (no project linked, field not found), skip and continue.
|
|
537
560
|
|
|
538
561
|
## Rules
|
|
539
562
|
- ONE issue per iteration
|