Skip to content

Commit fe31730

Browse files
authored
Merge pull request #1633 from github/koesie10/add-missing-mock-type
Add missing request type for mock GitHub API
2 parents 7e87827 + 9624858 commit fe31730

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

extensions/ql-vscode/src/mocks/gh-api-request.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ export interface GetRepoRequest {
2222
}
2323
}
2424

25+
export interface SubmitVariantAnalysisRequest {
26+
request: {
27+
kind: RequestKind.SubmitVariantAnalysis
28+
},
29+
response: {
30+
status: number,
31+
body: VariantAnalysis
32+
}
33+
}
34+
2535
export interface GetVariantAnalysisRequest {
2636
request: {
2737
kind: RequestKind.GetVariantAnalysis
@@ -53,3 +63,10 @@ export interface GetVariantAnalysisRepoResultRequest {
5363
body: ArrayBuffer
5464
}
5565
}
66+
67+
export type GitHubApiRequest =
68+
| GetRepoRequest
69+
| SubmitVariantAnalysisRequest
70+
| GetVariantAnalysisRequest
71+
| GetVariantAnalysisRepoRequest
72+
| GetVariantAnalysisRepoResultRequest;

0 commit comments

Comments
 (0)