cli/pkg/cmd/discussion/client
Max Beizer fd06ad7556
discussion create: add label support via two-step GraphQL
- Add Labels []string field to CreateDiscussionInput
- Implement resolveLabels helper: paginated RepositoryLabels query,
  case-insensitive match, error if any label not found
- Implement addLabelsToDiscussion helper: calls addLabelsToLabelable
  mutation after createDiscussion
- Wire label logic into Create: resolve labels, apply them, populate
  d.Labels from resolved values
- Add three TestCreate cases: success with labels, label not found,
  mutation failure

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-01 14:17:38 -05:00
..
client.go feat(discussion/client): add GetCommentReplies with paginated reply fetching 2026-04-27 10:57:45 +01:00
client_impl.go discussion create: add label support via two-step GraphQL 2026-05-01 14:17:38 -05:00
client_impl_test.go discussion create: add label support via two-step GraphQL 2026-05-01 14:17:38 -05:00
client_mock.go feat(discussion/client): add GetCommentReplies with paginated reply fetching 2026-04-27 10:57:45 +01:00
types.go discussion create: add label support via two-step GraphQL 2026-05-01 14:17:38 -05:00