Skip to content

Commit 51930b3

Browse files
authored
ISOC-4040 - Remove Impact from code scanning alert description (#2467)
inital checkin
1 parent c59dc3a commit 51930b3

6 files changed

+25
-98
lines changed

src/github/client/github-client.types.ts

-8
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,3 @@ type CodeScanningAlertResponseItemMostRecentInstance = {
199199
commit_sha: string;
200200
html_url: string;
201201
}
202-
203-
export type CodeScanningAlertInstanceResponseItem = {
204-
ref: string;
205-
environment: string;
206-
category: string;
207-
state: string;
208-
commit_sha: string;
209-
}

src/github/client/github-installation-client.ts

+1-10
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ import {
3333
PaginatedAxiosResponse,
3434
ReposGetContentsResponse,
3535
SecretScanningAlertResponseItem,
36-
CodeScanningAlertResponseItem,
37-
CodeScanningAlertInstanceResponseItem
36+
CodeScanningAlertResponseItem
3837
} from "./github-client.types";
3938
import { GITHUB_ACCEPT_HEADER } from "./github-client-constants";
4039
import { GitHubClient, GitHubConfig, Metrics } from "./github-client";
@@ -107,14 +106,6 @@ export class GitHubInstallationClient extends GitHubClient {
107106
});
108107
}
109108

110-
public async getCodeScanningAlertInstances(owner: string, repo: string, alertNumber: number): Promise<AxiosResponse<CodeScanningAlertInstanceResponseItem[]>> {
111-
return await this.get<CodeScanningAlertInstanceResponseItem[]>(`/repos/{owner}/{repo}/code-scanning/alerts/{alertNumber}/instances`, { }, {
112-
owner,
113-
repo,
114-
alertNumber
115-
});
116-
}
117-
118109
/**
119110
* Lists pull requests for the given repository.
120111
*/

0 commit comments

Comments
 (0)