Skip to content

Commit

Permalink
Merge pull request #731 from camptocamp/fix-pr-check-private
Browse files Browse the repository at this point in the history
Be able to use pull request checks on private repository
  • Loading branch information
sbrunner authored Sep 26, 2022
2 parents d5f67ce + e559e0d commit 6028ba3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion c2cciutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_master_branch(repo: List[str]) -> Tuple[str, bool]:
master_branch = default_branch_json["repository"]["defaultBranchRef"]["name"] if success else "master"
except RuntimeError as runtime_error:
print(runtime_error)
print("Failback to master")
print("Fallback to master")
return master_branch, success


Expand Down
1 change: 1 addition & 0 deletions c2cciutils/pr_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def add_issue_link(github_event: Dict[str, Any], **kwargs: Any) -> bool:
comments_response = requests.get(
github_event["event"]["pull_request"]["_links"]["comments"]["href"],
timeout=int(os.environ.get("C2CCIUTILS_TIMEOUT", "30")),
headers=c2cciutils.add_authorization_header({}),
)
comments_response.raise_for_status()
comments = comments_response.json()
Expand Down

0 comments on commit 6028ba3

Please sign in to comment.