MCPcopy Index your code
hub / github.com/pollinations/pollinations / _github_headers

Function _github_headers

social/scripts/common.py:446–451  ·  view source on GitHub ↗

Standard GitHub API headers.

(token: str)

Source from the content-addressed store, hash-verified

444
445
446def _github_headers(token: str) -> Dict:
447 """Standard GitHub API headers."""
448 return {
449 "Accept": "application/vnd.github+json",
450 "Authorization": f"Bearer {token}",
451 }
452
453
454def commit_image_to_branch(

Callers 15

_ensure_branchFunction · 0.90
_create_blobsFunction · 0.90
_attempt_tree_commitFunction · 0.90
_news_branch_existsFunction · 0.90
_path_exists_on_newsFunction · 0.90
load_snapshot_from_newsFunction · 0.90
load_models_mdFunction · 0.90
commit_text_to_newsFunction · 0.90
commit_image_to_branchFunction · 0.85
get_file_shaFunction · 0.85
commit_gistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected