Skip to content

Commit c525a92

Browse files
TonybynMp4claude
andcommitted
fix(gitlab): read diffStats as the list GitLab returns
MergeRequest.diffStats is a plain [DiffStats!] list, not a connection. GitLab rejects `diffStats { nodes { ... } }` with "Field 'nodes' doesn't exist on type 'DiffStats'", which left merge requests without a breakdown. This reverts 72fa428. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 9c1aec1 commit c525a92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/source-control-gitlab/src/server/gitLabMergeRequestJson.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ export const MERGE_REQUEST_FILE_STATS_GRAPHQL_QUERY = `query($fullPath: ID!, $ii
10071007
project(fullPath: $fullPath) {
10081008
mergeRequest(iid: $iid) {
10091009
diffStatsSummary { fileCount }
1010-
diffStats { nodes { path additions deletions } }
1010+
diffStats { path additions deletions }
10111011
}
10121012
}
10131013
}`;

0 commit comments

Comments
 (0)