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