Skip to content

Commit

Permalink
Add missing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Mar 5, 2024
1 parent 05adeca commit 3cfd108
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bert_e/git_host/github/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,9 @@ def add_comment(self, msg: str):
return Comment.create(self.client, {'body': msg}, url=url)

def set_bot_status(self, status: str | None, title: str, summary: str):
if self.client and self.client.is_app is False:
LOG.error("Cannot set bot status without a GitHub App")
return
conclusion: str | None = None
if status == "success":
conclusion = "success"
Expand Down

0 comments on commit 3cfd108

Please sign in to comment.