Skip to content

Commit

Permalink
print
Browse files Browse the repository at this point in the history
  • Loading branch information
kieronellis committed Jul 8, 2022
1 parent fb077cd commit d7af4df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action/alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ def comment_pr(repo_token, filename):
message = message.encode("ascii", "ignore").decode('utf-8')

logging.info(message)
print(message)

g = Github(repo_token)
repo = g.get_repo(os.getenv('GITHUB_REPOSITORY'))
logging.info(repo)
print(repo)
event_payload = open(os.getenv('GITHUB_EVENT_PATH')).read()
json_payload = json.loads(event_payload)
logging.info(json_payload)
print(json_payload)
if json_payload.get('number') is not None:
pr = repo.get_pull(json_payload.get('number'))
pr.create_issue_comment("```" + message + "```")
Expand Down

0 comments on commit d7af4df

Please sign in to comment.