Lines Matching +full:repo +full:- +full:token
20 ) -> tuple[Any, Any]:
23 token = os.environ.get("GITHUB_TOKEN")
24 if token is not None and url.startswith("https://api.github.com/"):
25 headers["Authorization"] = f"token {token}"
32 key in err.headers for key in ["X-RateLimit-Limit", "X-RateLimit-Used"]
36 Used: {err.headers['X-RateLimit-Used']}
37 Limit: {err.headers['X-RateLimit-Limit']}
38 Remaining: {err.headers['X-RateLimit-Remaining']}
39 Resets at: {err.headers['x-RateLimit-Reset']}"""
51 ) -> Any:
61 ) -> Any:
74 ) -> dict[str, Any]:
78 def gh_fetch_commit(org: str, repo: str, sha: str) -> dict[str, Any]:
80 f"https://api.github.com/repos/{org}/{repo}/commits/{sha}"