in lib/main.js [61:83]
lineNumber: parseInt(groups.lineNumber),
columnNumber: parseInt(groups.columnNumber),
errorCode: groups.errorCode,
errorDesc: groups.errorDesc,
});
annotations.push(annotation);
}
}
return annotations;
}
function parseOutputJSON(output) {
let raw = JSON.parse(output);
return raw.map(makeAnnotation);
}
function createCheck(check_name, title, annotations) {
return __awaiter(this, void 0, void 0, function* () {
const octokit = new github.GitHub(String(GITHUB_TOKEN));
const req = Object.assign({}, github.context.repo, { ref: core.getInput('commit_sha'), check_name: check_name });
console.log(req);
const res = yield octokit.checks.listForRef(req);
console.log(res);
const check_run_id = res.data.check_runs.filter(check => check.name === check_name)[0].id;
const update_req = Object.assign({}, github.context.repo, { check_run_id, output: {