()
| 4 | |
| 5 | |
| 6 | def get_github_client(): |
| 7 | # search for app_client and client secrets first, since this allow higher api request limit |
| 8 | github_app = os.environ.get('GIT_APP_ID') |
| 9 | if github_app is None: |
| 10 | github_token = os.environ.get('GIT_TOKEN') |
| 11 | g = Github(github_token) |
| 12 | else: |
| 13 | github_app_secret = os.environ.get('GIT_APP_SECRET') |
| 14 | g = Github( |
| 15 | client_id=github_app, |
| 16 | client_secret=github_app_secret) |
| 17 | return g |
| 18 | |
| 19 | |
| 20 | # ******* |
no outgoing calls
no test coverage detected