Files
pcli/openspec/changes/archive/2026-02-18-expand-board-included-parsing/tasks.md
T
Steve Cliff 7937266262 feat(status): add --project flag for filtering boards by project name
- Implemented the --project flag in the pcli status command to filter boards based on the specified project name.
- Updated the command to resolve project names to IDs using case-insensitive matching.
- Adjusted the totalBoards count in the output to reflect the number of boards matching the project filter.
- Enhanced command help text and README documentation to include usage examples for the new flag.
- Verified functionality through manual testing and ensured default behavior remains unchanged when the flag is omitted.

feat(board): expand GetBoard response to include labels and card associations

- Modified the Board struct to include Labels, CardLabels, and CardMemberships fields.
- Updated the GetBoard method to parse additional fields from the API response.
- Enhanced ListCardsByBoard to include label names for each card based on the enriched board data.
- Ensured backward compatibility by making new fields optional and preserving existing output structure.
2026-02-18 21:38:41 +00:00

885 B

1. Model Changes

  • 1.1 Add Labels []Label, CardLabels []CardLabel, and CardMemberships []CardMembership fields to Board struct in model/types.go (with json:",omitempty")
  • 1.2 Add Labels []string field to CardWithList struct in model/types.go

2. Client Changes

  • 2.1 Update GetBoard in client/boards.go to parse labels, cardLabels, and cardMemberships from included response
  • 2.2 Update ListCardsByBoard in client/cards.go to build label-name map from board's CardLabels and Labels, and populate Labels on each CardWithList

3. Verification

  • 3.1 Build and test pcli board get <id> — verify JSON output includes labels and cardLabels when present
  • 3.2 Test pcli card list --board <id> — verify each card includes a labels array
  • 3.3 Test card with no labels returns empty array (not null)