MCPcopy Index your code
hub / github.com/firmai/financial-machine-learning / get_github_client

Function get_github_client

git_util.py:6–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def 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# *******

Callers 2

search_repoFunction · 0.90
get_repo_statusFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected