feat: structured JSON summary for GitHub CI per-job picker#56
Merged
barrettruth merged 1 commit intomainfrom Apr 5, 2026
Merged
feat: structured JSON summary for GitHub CI per-job picker#56barrettruth merged 1 commit intomainfrom
barrettruth merged 1 commit intomainfrom
Conversation
Add summary_json_cmd to GitHub backend that fetches run data as structured JSON (name, status, conclusion, jobs with steps) instead of relying on text parsing of gh run view output. New parse_summary_json renders a compact summary with status icons, durations, and step progress counters for in-progress jobs. The CI picker now prefers the JSON path when available, falling back to text parsing for other forges. Closes #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
summary_json_cmdto GitHub backend — fetches run data as structured JSON with jq, including jobs withdatabaseId, status, duration, and step detailsparse_summary_jsoninlog.lua— renders a compact summary with status icons (✓/X/~/*/-), durations, and step progress counters ([2/4]) for in-progress jobssummary_json_cmdis available, with graceful fallback to text parsing for other forgesjsonflag toforge.SummaryOptsto toggle JSON vs text parsing inopen_summaryparse_summary(text ID extraction) andparse_summary_json(completed runs, in-progress step counting, header rendering, empty jobs, queued/in_progress icons)Closes #18
Test plan
<cr>on a job line — verify it drills into per-job logs