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
This commit is contained in:
2026-01-10 12:45:25 -08:00
parent 722cb315dc
commit 2fdd2d5345

View File

@@ -23,9 +23,11 @@ bd list --status=in_review
1. **Get the PR URL from bead notes**: 1. **Get the PR URL from bead notes**:
```bash ```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**: 2. **Detect hosting provider**:
- Run `git remote get-url origin` - Run `git remote get-url origin`
@@ -38,9 +40,10 @@ bd list --status=in_review
``` ```
- For Gitea: - For Gitea:
```bash ```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 ### Step 3: Close merged beads