Skip to content

Commit

Permalink
fixup! fixup! [TECH-272] Only pull main if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTheisens committed May 10, 2023
1 parent 5a4e5f7 commit 9797293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mpyl/reporting/targets/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ def send_report(self, results: RunResult, text: Optional[str] = None) -> None:
access_token = integration.get_access_token(install.id)
github = Github(login_or_token=access_token.token)
repo = github.get_repo(self._github_config.repository)
if self._check_run_id:
if self._check_run_id and results:
run = repo.get_check_run(self._check_run_id)
conclusion = 'success' if results is None or results.is_success else 'failure'
conclusion = 'success' if results.is_success else 'failure'
self._logger.info(f'Setting check to {conclusion}')
run.edit(completed_at=datetime.now(), conclusion=conclusion, output=self._to_output(results))
else:
Expand Down

0 comments on commit 9797293

Please sign in to comment.