Skip to content

CPLAT-10877: add ccx refs subcommand for PR/Jira references#68

Merged
gavin-jeong merged 1 commit into
masterfrom
CPLAT-10877-ccx-refs-command
Jul 15, 2026
Merged

CPLAT-10877: add ccx refs subcommand for PR/Jira references#68
gavin-jeong merged 1 commit into
masterfrom
CPLAT-10877-ccx-refs-command

Conversation

@gavin-jeong

Copy link
Copy Markdown
Collaborator

JIRA: https://sendbird.atlassian.net/browse/CPLAT-10877

What

Adds a ccx refs CLI subcommand that lists the current session's GitHub PR and Jira references with their resolved status.

Behavior

  • Plain / piped (ccx refs --plain): tab-separated KIND label status url, newest first. Resolves PR state + review + checks and Jira status via the existing session.ExtractSessionRefsFromFile + ResolveRefs path (TTL-cached, bounded concurrency).
  • Interactive (TTY): reuses the urls picker, filtered to the pr/jira categories, with async inline status resolution and o to open in the browser. jumps to the message in the full TUI.

Implementation

  • internal/cli/cli.go: refs command wiring + printRefs (plain, status-resolved).
  • internal/cli/context.go: extractRefsWithContext reuses extractURLsWithContext and keeps only pr/jira.
  • internal/cli/picker.go: refs kind resolves ref status like urls; footer/filter hints for refs.
  • main.go: subcommand dispatch + help text.

Test

  • go build ./..., go test ./internal/cli/ pass.
  • Manual: ccx refs --plain emits the session's PR/Jira rows.

List the session's GitHub PR and Jira references with resolved status.

- Plain output (--plain / piped): tab-separated kind/label/status/url,
  newest first, resolving PR state+review+checks and Jira status via the
  existing session.ResolveRefs path.
- Interactive (TTY): reuses the urls picker filtered to pr/jira, with
  async inline status resolution and o:open-in-browser.

CPLAT-10877
@Kairo-Kim Kairo-Kim added the auto-review/approved Auto-approved by the Slack auto-reviewer bot label Jul 15, 2026

@jinsekim jinsekim left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jinsekim jinsekim left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gavin-jeong
gavin-jeong merged commit dfeebfb into master Jul 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-review/approved Auto-approved by the Slack auto-reviewer bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants