From d7af4df6a71a0714623b88da51fa29d53bc729d9 Mon Sep 17 00:00:00 2001 From: kieronellis <69465049+kieronellis@users.noreply.github.com> Date: Fri, 8 Jul 2022 17:21:06 +0200 Subject: [PATCH] print --- action/alert.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action/alert.py b/action/alert.py index 99c0c65..dc25494 100644 --- a/action/alert.py +++ b/action/alert.py @@ -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 + "```")