MCPcopy Create free account
hub / github.com/pollinations/pollinations / _get_headers

Method _get_headers

apps/polly/src/services/github.py:68–77  ·  view source on GitHub ↗

Get standard GitHub API headers.

(self)

Source from the content-addressed store, hash-verified

66 return has_app or has_pat
67
68 async def _get_headers(self) -> dict | None:
69 """Get standard GitHub API headers."""
70 token = await self._get_token()
71 if not token:
72 return None
73 return {
74 "Authorization": f"Bearer {token}",
75 "Accept": "application/vnd.github.v3+json",
76 "X-GitHub-Api-Version": "2022-11-28",
77 }
78
79 async def search_issues(
80 self,

Callers 15

search_issuesMethod · 0.95
get_issueMethod · 0.95
get_issue_commentsMethod · 0.95
create_issueMethod · 0.95
add_commentMethod · 0.95
_get_commentMethod · 0.95
edit_commentMethod · 0.95
delete_commentMethod · 0.95
close_issueMethod · 0.95
reopen_issueMethod · 0.95
edit_issueMethod · 0.95
add_labelsMethod · 0.95

Calls 1

_get_tokenMethod · 0.95

Tested by

no test coverage detected