7937266262
- 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.
885 B
885 B
1. Model Changes
- 1.1 Add
Labels []Label,CardLabels []CardLabel, andCardMemberships []CardMembershipfields toBoardstruct inmodel/types.go(withjson:",omitempty") - 1.2 Add
Labels []stringfield toCardWithListstruct inmodel/types.go
2. Client Changes
- 2.1 Update
GetBoardinclient/boards.goto parselabels,cardLabels, andcardMembershipsfromincludedresponse - 2.2 Update
ListCardsByBoardinclient/cards.goto build label-name map from board'sCardLabelsandLabels, and populateLabelson eachCardWithList
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 alabelsarray - 3.3 Test card with no labels returns empty array (not null)