gh54 review single git#55
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a --single-git flag to sc review so users can force review to operate on just the current git repository (even when inside a Repo workspace), instead of automatically preferring the Repo workspace manifest.
Changes:
- Added
--single-git/-sCLI option to thereviewcommand and threaded it through to the review implementation. - Updated repo-source selection logic to skip Repo workspace detection when
single_gitis enabled. - Broadened error handling in
review.update_ticket()to also catchRuntimeError(e.g., HTTP/API failures raised by git host instances).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/sc/review/review.py | Adds single_git parameter to control Repo workspace vs single-repo detection; adjusts error message and exception handling. |
| src/sc/review_cli.py | Exposes --single-git/-s flag on the sc review CLI and passes it through to review.update_ticket(). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Add --single-git flag to sc review to only focus on a single git repository and not look for a repo workspace above.