Skip to content

gh54 review single git#55

Merged
BenjiMilan merged 1 commit into
developfrom
feature/gh54_review_single_git
May 12, 2026
Merged

gh54 review single git#55
BenjiMilan merged 1 commit into
developfrom
feature/gh54_review_single_git

Conversation

@BenjiMilan
Copy link
Copy Markdown
Contributor

Add --single-git flag to sc review to only focus on a single git repository and not look for a repo workspace above.

Copilot AI review requested due to automatic review settings May 12, 2026 09:04
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/-s CLI option to the review command and threaded it through to the review implementation.
  • Updated repo-source selection logic to skip Repo workspace detection when single_git is enabled.
  • Broadened error handling in review.update_ticket() to also catch RuntimeError (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.

Comment thread src/sc/review/review.py
Copy link
Copy Markdown

@TB-1993 TB-1993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, ship it1

@BenjiMilan BenjiMilan merged commit 5b86b59 into develop May 12, 2026
9 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants