This commit is contained in:
Aart Jan Kaptijn 2021-11-23 18:08:07 +01:00 committed by A. J. Kaptijn
parent 9b92097e9f
commit 9292dc5744
3 changed files with 5 additions and 4 deletions

View file

@ -201,7 +201,7 @@ class TestReporter {
core.info('Creating report summary')
const {listSuites, listTests, onlySummary} = this
const baseUrl = createResp.data.html_url as string
const baseUrl = createResp.data.html_url || ''
const summary = getReport(results, {listSuites, listTests, baseUrl, onlySummary})
core.info('Creating annotations')
@ -232,6 +232,7 @@ class TestReporter {
core.info(`Check run HTML: ${resp.data.html_url}`)
core.setOutput('url', resp.data.url)
core.setOutput('url_html', resp.data.html_url)
core.info(`Check run details: ${resp.data.details_url}`)
if (isFailed && this.slackWebhook && this.context.branch === 'master') {
const webhook = new IncomingWebhook(this.slackWebhook)

View file

@ -125,7 +125,7 @@ async function listGitTree(octokit: InstanceType<typeof GitHub>, sha: string, pa
if (tr.type === 'blob') {
result.push(file)
} else if (tr.type === 'tree' && truncated) {
const files = await listGitTree(octokit, tr.sha as string, `${file}/`)
const files = await listGitTree(octokit, tr.sha || '', `${file}/`)
result.push(...files)
}
}