Skip to content

feat: show PR/CI status in task list and show commands#100

Merged
bborn merged 1 commit intomainfrom
task/183-when-a-task-pr-has-failing-ci-show-that
Jan 10, 2026
Merged

feat: show PR/CI status in task list and show commands#100
bborn merged 1 commit intomainfrom
task/183-when-a-task-pr-has-failing-ci-show-that

Conversation

@bborn
Copy link
Copy Markdown
Owner

@bborn bborn commented Jan 10, 2026

Summary

  • Add --pr flag to task list command to display PR/CI status with colored badges
  • Update task show to automatically display PR info and CI status when a task has an associated PR
  • Include PR info in JSON output for both commands

Details

task list --pr

When the --pr flag is used, tasks with associated PRs show a colored badge indicating:

  • F (red) - Checks failing
  • P (green) - Checks passing
  • W (yellow) - Checks running/pending
  • R (green) - Ready to merge
  • C (red) - Has conflicts
  • M (purple) - Merged
  • X (red) - Closed
  • D (gray) - Draft
  • O (green) - Open, no checks

task show <id>

Automatically fetches and displays PR info when a task has a branch with an associated PR:

  • PR number and URL
  • Colored CI status description (e.g., "Checks failing", "Ready to merge")

JSON Output

Both commands include PR info in JSON output when available:

{
  "pr": {
    "number": 123,
    "url": "https://github.com/...",
    "state": "OPEN",
    "check_state": "FAILURE",
    "description": "Checks failing"
  }
}

Test plan

  • Build passes
  • All existing tests pass
  • Manual test: task list --pr shows PR status for tasks with PRs
  • Manual test: task show <id> shows PR info for a task with a PR
  • Manual test: JSON output includes PR info

🤖 Generated with Claude Code

Add --pr flag to `task list` command to display PR/CI status with
colored badges showing: failing (F), passing (P), running (W),
ready to merge (R), conflicts (C), merged (M), closed (X), or draft (D).

Update `task show` to automatically display PR info and CI status when
a task has an associated branch with a PR. Shows PR number, URL, and
colored CI status description.

Both commands also include PR info in JSON output when available.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn merged commit c918c14 into main Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant