Skip to content

Commit

Permalink
status bug (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
orgoro authored Oct 25, 2021
1 parent 164faa6 commit b0f17bd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ async function run(): Promise<void> {
const filesCoverage = parseCoverageReport(report, files)
const {passOverall, message} = messagePr(filesCoverage)

const status = passOverall ? 'completed' : 'failure'
const conclusion = passOverall ? 'success' : 'failed'
const status = 'completed'
const conclusion = passOverall ? 'success' : 'failure'

if (checkId > 0) {
octokit.rest.checks.update({
Expand All @@ -57,9 +57,9 @@ async function run(): Promise<void> {
octokit.rest.checks.update({
...context.repo,
check_run_id: checkId,
status: 'failure',
conclusion: 'failed',
output: {title: 'Coverage Results Failed', summary: message}
status: 'completed',
conclusion: 'failure',
output: {title: 'Coverage Results Failed - ', summary: message}
})
}
}
Expand Down

0 comments on commit b0f17bd

Please sign in to comment.