Show merged PR status when no open PR exists
- extend `GitStatusResult` with nullable `mergedPr` metadata - in server git status, query merged PR only when no open PR is found - in sidebar, display a `Merged` status pill for threads on branches with merged PRs - update server/web/contracts tests for the new status shape
This commit is contained in:
1 parent
7fc53dadc7
commit
46347e2bd2
8 files changed
+152
-8
No files matched your search
@@ -564,6 +564,7 @@ describe("WebSocket Server", () => {
|
||||
aheadCount: 0,
|
||||
behindCount: 0,
|
||||
openPr: null,
|
||||
mergedPr: null,
|
||||
}),
|
||||
runStackedAction: vi.fn(),
|
||||
};
|
||||
@@ -593,6 +594,7 @@ describe("WebSocket Server", () => {
|
||||
aheadCount: 0,
|
||||
behindCount: 0,
|
||||
openPr: null,
|
||||
mergedPr: null,
|
||||
});
|
||||
expect(gitManager.status).toHaveBeenCalledWith({ cwd: "/test" });
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user