|
1 | | -import { info, startGroup, endGroup, error } from '@actions/core' |
| 1 | +import { endGroup, info, startGroup } from '@actions/core' |
2 | 2 | import { context } from '@actions/github' |
3 | 3 | import { existsSync, readFileSync } from 'fs' |
4 | | -import { |
5 | | - callCommand, |
6 | | - callLaceworkCli, |
7 | | - debug, |
8 | | - getOptionalEnvVariable, |
9 | | - getRequiredEnvVariable, |
10 | | - telemetryCollector, |
11 | | -} from './util' |
12 | 4 | import { Log } from 'sarif' |
13 | | -import { LWJSON } from './lw-json' |
14 | | -import { getPrApi } from './actions' |
15 | 5 | import { simpleGit, SimpleGitOptions } from 'simple-git' |
| 6 | +import { getPrApi } from './actions' |
| 7 | +import { LWJSON } from './lw-json' |
| 8 | +import { callLaceworkCli, debug, getOptionalEnvVariable, getRequiredEnvVariable } from './util' |
16 | 9 |
|
17 | 10 | export async function printResults(tool: string, sarifFile: string) { |
18 | 11 | startGroup(`Results for ${tool}`) |
@@ -198,11 +191,6 @@ export async function createPRs(jsonFile: string) { |
198 | 191 | await prForFixSuggestion(jsonFile, fixId, repoOwner, repoName, telem) |
199 | 192 | } |
200 | 193 | const after = Date.now() |
201 | | - telemetryCollector.addField('autofix.totalPRs', telem.prsCounter.toString()) |
202 | | - telemetryCollector.addField('autofix.updatedPRs', telem.prsUpdated.toString()) |
203 | | - telemetryCollector.addField('autofix.timeAPI', telem.totalAPITime.toString()) |
204 | | - telemetryCollector.addField('autofix.APIerrors', telem.errors.map(String).join(', ')) |
205 | | - telemetryCollector.addField('autofix.totalTime', (after - before).toString()) |
206 | 194 | } |
207 | 195 |
|
208 | 196 | export async function compareResults( |
|
0 commit comments