Skip to content

fix: clarify error message about review branch#71

Merged
dwilding merged 1 commit intomainfrom
compare-error
Dec 19, 2025
Merged

fix: clarify error message about review branch#71
dwilding merged 1 commit intomainfrom
compare-error

Conversation

@dwilding
Copy link
Copy Markdown
Owner

When running gimmegit -c, if the branch hasn't been pushed to GitHub, gimmegit exits with this message:

Error: The review branch has not been created.

This PR clarifies the intent of the message. Updated message:

Error: The review branch has not been created. Push to GitHub first.

Copilot AI review requested due to automatic review settings December 19, 2025 03:27
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

This PR clarifies an error message that appears when a user attempts to compare branches (gimmegit -c) before pushing the review branch to GitHub. The updated message provides actionable guidance by explicitly instructing the user to push to GitHub first.

Key Changes

  • Updated error message from "The review branch has not been created." to "The review branch has not been created. Push to GitHub first."

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/gimmegit/_cli.py Updated the error message in the compare_usage function to include instruction to push to GitHub
tests/functional/test_clone.py Updated the expected error message in the test to match the new message

@dwilding dwilding merged commit f67825a into main Dec 19, 2025
4 checks passed
@dwilding dwilding deleted the compare-error branch December 19, 2025 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants