Skip to content

Commit

Permalink
Merge pull request #4 from Logitech/adoroshenko/reverting-checks-upda…
Browse files Browse the repository at this point in the history
…te-logic

reverting checks update logic
  • Loading branch information
kramachandran1980 authored Apr 17, 2020
2 parents de12b02 + 0884000 commit 26f0cc0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,6 @@ Toolkit.run(

const statuses = [title_passed, branch_passed, commits_passed]

const checks = await tools.github.checks.listForRef(Object.assign({'status': 'completed'}, repoInfo))
const promises = checks.data.check_runs.filter(check_run => check_run.name === "pr_lint").map(async (check_run) => {
await tools.github.checks.update({
owner: repository.owner.login,
repo: repository.name,
check_run_id: check_run.id,
conclusion: 'neutral',
})
})
await Promise.all(promises)

if (statuses.some(status => status === false )){
tools.exit.failure("PR Linting Failed")
} else {
Expand Down

0 comments on commit 26f0cc0

Please sign in to comment.