Repository navigation
feat: Add a Checks tab to pull requests - #29
Merged
DeepanshuMishraa merged 2 commits intoNov 14, 2026
Merged
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
Contributor
Author
|
@DeepanshuMishraa what do you think about this? |
Owner
This is great , nice job 🙌 |
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
Pull requests get a fourth tab, Checks (
4), after Code. It lists every check grouped by workflow, failing first, with durations.enteropens a GitHub Actions job the way GitHub's job page shows it: steps that open and close, the failed ones already open and scrolled to the last error, numbered lines with errors, warnings and commands marked and the log's own colors, and the runner's groups folded.rre-runs with GitHub's options: failed jobs, this job, or all jobs.src/pr.rs): checks keep their workflow, start and end times, and Actions run and job ids, which are read from the details link.job_logreadsrepos/{repo}/actions/jobs/{id}for the steps and, once the job is done,…/logs.split_logassigns log lines to steps using the runner's step-start lines (##[group]Run …,Post job cleanup.,Cleaning up orphan processes) and whole-second step times. A composite action's own groups stay in its step, and a step keeps its last 5,000 lines.src/prview.rs): the tab, the job view with ANSI colors and wrapping that breaks at spaces with a hanging indent, the re-run picker, and polling. The PR is read again every 20 s while any check runs, and an open unfinished job every 5 s. After a push or a re-run, an open job follows the check to its new job id.src/diffview.rs):4,→andtabgo on to Checks.Why
Finding out why CI failed meant leaving leaf for the browser, and
gh run view --log-failedprints the whole job as one block (often labelledUNKNOWN STEP) that's hard to read in a terminal.Evidence
cargo test: 355 passed, 2 ignored. The new regression tests cover: polling while a check runs and another failed; a group longer than the line limit keeping its end; failed log downloads being retried; composite-action groups staying in their step; a refresh following the check to its new job, or closing the log when the check is gone; a failed step opening the group that holds its last error; logs fitting a 12-column pane.cargo clippy --all-targets: no warnings in the changed files.…/jobs/{id}/logsresponse.gh run rerun(no write access to a repo with Actions); a running job's step updates (none was running); logs with ANSI colors.Risk & Rollback
Reversibility: Reversible
Blast Radius:
leaf pronly, plus the Code tab's keys in the diff reviewer.taband→go to Checks (before,tabwent back to Summary and→did nothing). On the Checks tab,rre-runs instead of marking the PR ready, andoopens the picked check instead of the PR.ghcalls while checks run: one PR read every 20 s, and one job read every 5 s while an unfinished job is open.