chore: merge PRs directly from right sidebar#1002
Merged
arnestrickmann merged 5 commits intomainfrom Feb 20, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryAdds a "Merge Pull Request" section to the right sidebar (Checks tab) that allows PRs to be merged directly from Emdash via the GitHub CLI.
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| src/main/ipc/gitIpc.ts | Added git:merge-pr IPC handler to merge PRs via GitHub CLI with configurable merge strategy and admin override support |
| src/renderer/components/FileChangesPanel.tsx | Integrated MergePrSection component and added auto-refresh when CI checks complete |
| src/renderer/components/MergePrSection.tsx | New component for merging PRs with merge strategy selection, admin override toggle, and comprehensive merge state handling |
Sequence Diagram
sequenceDiagram
participant User
participant MergePrSection
participant FileChangesPanel
participant ElectronAPI
participant GitIpc
participant GH as GitHub CLI
User->>MergePrSection: Click merge button
MergePrSection->>MergePrSection: Check merge state & strategy
MergePrSection->>ElectronAPI: mergePr(taskPath, prNumber, strategy, admin)
ElectronAPI->>GitIpc: IPC: git:merge-pr
GitIpc->>GitIpc: Verify git repo (git rev-parse)
GitIpc->>GH: gh pr merge [prNumber] --merge/--squash/--rebase [--admin]
GH-->>GitIpc: Merge result
GitIpc-->>ElectronAPI: {success, output/error, code}
ElectronAPI-->>MergePrSection: Merge result
MergePrSection->>MergePrSection: Show toast notification
MergePrSection->>FileChangesPanel: refreshPr()
FileChangesPanel->>ElectronAPI: getPrStatus(taskPath)
ElectronAPI-->>FileChangesPanel: Updated PR status
FileChangesPanel->>MergePrSection: Pass updated PR data
MergePrSection->>MergePrSection: Update UI to "Merged" state
Last reviewed commit: c504fcc
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.
PR description
Adds a “Merge Pull Request” section to the right sidebar (Checks tab) so PRs can be merged directly from
Emdash.
Implementation notes
types/electron-api.d.ts
Test plan