perf(forge): compare from the recorded base while confirming the head
Status snapshots carry the base commit the host recorded with the head (baseSha). ForgeService.diff passes it to the provider when the latest status names the requested head, and forge-github starts the compare read from it while its GraphQL read confirms the head; a stale head or another base cancels and joins the early read.
This commit is contained in:
1 parent
d8d6081f44
commit
9b456b4e93
18 files changed
+152
-39
No files matched your search
@@ -56,6 +56,7 @@ describe('snapshot mapping', () => {
|
||||
headBranch: 'topic-1',
|
||||
headSha: 'f'.repeat(40),
|
||||
baseBranch: 'master',
|
||||
baseSha: 'b'.repeat(40),
|
||||
additions: 128,
|
||||
deletions: 14,
|
||||
mergeability: 'mergeable',
|
||||
|
||||
Reference in new issue
Block a user