Skip to content

Commit

Permalink
Merge pull request #733 from camptocamp/fix-pr-check-private2
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 6028ba3 + 2881051 commit 321898d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions c2cciutils/scripts/pr_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import requests

import c2cciutils
import c2cciutils.pr_checks


Expand All @@ -30,6 +31,7 @@ def main() -> None:
commits_response = requests.get(
github_event["event"]["pull_request"]["_links"]["commits"]["href"],
timeout=int(os.environ.get("C2CCIUTILS_TIMEOUT", "30")),
headers=c2cciutils.add_authorization_header({}),
)
commits_response.raise_for_status()
commits = commits_response.json()
Expand Down

0 comments on commit 321898d

Please sign in to comment.