Repository navigation
Add si status set and view for commit statuses - #7
Merged
Merged
Conversation
si status set reports pending, success, failure or error for a check on a commit, so CI can fill the checks tab. si status view shows the combined state and each check. Both take a SHA or any ref in the current clone, and view defaults to HEAD. The client crate gets create_status and combined_status, with the CommitStatus and CombinedStatus wire types. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
This change adds support for setting and viewing commit statuses (checks) in the CLI, with new subcommands under si status. The implementation includes argument parsing, SHA/ref resolution (with fallback for unknown SHAs), API client methods for posting and fetching statuses, and UI rendering for combined status output. Tests cover SHA resolution and API request construction. No previous findings are present, and the new code integrates cleanly with the CLI and API client structure.
Automated review by siGit Code Review · commit 0cf6221 · see the review dashboard
paydii
approved these changes
Oct 28, 2026
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.
si status set <SHA|REF> --state pending|success|failure|errorreports a check on a commit, with optional--context,--description,--urland--repo.si status view [SHA|REF]shows the combined state and each check. A ref resolves through git2 inside a clone, andviewdefaults to HEAD. A full SHA the local clone doesn't have is passed through.The client crate gets
create_statusandcombined_statusplus theCommitStatusandCombinedStatustypes. Request tests check the path, method and body.Only the repository owner can post a status, so other users get the server's 404.
Checked with
cargo fmt --check,cargo clippy -D warnings,cargo test --workspaceandcargo check -p sigit-si-api --no-default-features.