From 2fdd2d5345562bc0da17c03da3d017966ebef3c2 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Sat, 10 Jan 2026 12:45:25 -0800 Subject: [PATCH] fix(skills): Correct reconcile_beads instructions for bd and tea CLI - Fix jq syntax: bd show --json returns array, use .[0].notes - Add grep command to extract PR number from URL - Correct Gitea workflow: tea pr view lists all PRs, use tea pr list --state=closed instead --- home/roles/development/skills/reconcile_beads.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/home/roles/development/skills/reconcile_beads.md b/home/roles/development/skills/reconcile_beads.md index 3b36778..e6eb13c 100644 --- a/home/roles/development/skills/reconcile_beads.md +++ b/home/roles/development/skills/reconcile_beads.md @@ -23,9 +23,11 @@ bd list --status=in_review 1. **Get the PR URL from bead notes**: ```bash - bd show [BEAD_ID] --json | jq -r '.notes' + bd show [BEAD_ID] --json | jq -r '.[0].notes' ``` - Extract the PR URL (look for lines starting with "PR:" or containing pull request URLs) + Note: `bd show --json` returns an array, so use `.[0]` to access the first element. + Extract the PR URL (look for lines starting with "PR:" or containing pull request URLs). + Extract the PR number: `echo "$NOTES" | grep -oP '/pulls/\K\d+'` 2. **Detect hosting provider**: - Run `git remote get-url origin` @@ -38,9 +40,10 @@ bd list --status=in_review ``` - For Gitea: ```bash - tea pr view [PR_NUMBER] + tea pr list --state=closed ``` - Look for "State: merged" or "State: closed" + Look for the PR number in the INDEX column with STATE "merged". + Note: `tea pr view [PR_NUMBER]` lists all PRs, not a specific one. Use `tea pr list --state=closed` and look for your PR number in the results. ### Step 3: Close merged beads