fix: show Create PR button when branch is ahead of main - #1098
Closed
kanweiwei wants to merge 1 commit into
Closed
Conversation
|
Someone is attempting to deploy a commit to the General Action Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Greptile SummaryFixes issue where Create PR button was hidden when the branch was ahead of main but had no uncommitted file changes. Key Changes:
How it works: Confidence Score: 4/5
|
| Filename | Overview |
|---|---|
| src/renderer/components/FileChangesPanel.tsx | Removed hasChanges check from branch status useEffect to show Create PR button when branch is ahead. Added autoFocus to commit input. Replaced Input component with native input. |
Last reviewed commit: 2298193
kanweiwei
force-pushed
the
fix/show-create-pr-when-ahead
branch
from
February 25, 2026 03:29
2298193 to
a381c6d
Compare
Contributor
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
Fix issue #1073: Show Create PR button when commits are ahead of main, even when there are no uncommitted file changes.
Changes
hasChangescheck from branch status useEffect in FileChangesPanel.tsxBefore
Create PR button only showed when there were staged/unstaged files
After
Create PR button shows when branch is ahead of main, even with no uncommitted changes