From 518a4f213361416c261f106c2f405593faac6daa Mon Sep 17 00:00:00 2001 From: Joachim Jablon Date: Sun, 26 Sep 2021 00:52:19 +0200 Subject: [PATCH] Add debugging --- src/entrypoint | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/entrypoint b/src/entrypoint index 392a635..7b36c1d 100755 --- a/src/entrypoint +++ b/src/entrypoint @@ -38,6 +38,7 @@ def main(): ) post_comment(body=comment, gh=gh, config=config) + print(config.BADGE_ENABLED, is_main_branch(gh=gh, config=config)) if config.BADGE_ENABLED and is_main_branch(gh=gh, config=config): print("Running on default branch, saving Badge into the repo wiki") badge = compute_badge(coverage_info=coverage_info, config=config) @@ -193,6 +194,7 @@ def get_markdown_comment( def is_main_branch(gh: github.Github, config: Config) -> bool: repo = gh.get_repo(config.GITHUB_REPOSITORY) + print(repo, repo.default_branch, config.GITHUB_HEAD_REF) return repo.default_branch == config.GITHUB_HEAD_REF