MCPcopy Create free account
hub / github.com/pytorch/pytorch / get_token

Function get_token

scripts/release_notes/common.py:199–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198
199def get_token():
200 env_token = os.environ.get("GITHUB_TOKEN")
201 if env_token is not None:
202 print("using GITHUB_TOKEN from environment variable")
203 return env_token
204 else:
205 return get_ghstack_token()
206
207
208token = get_token()

Callers 1

common.pyFile · 0.85

Calls 2

get_ghstack_tokenFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…