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

Method get_session

apps/polly/src/services/github_pr.py:101–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99 return self.repo.split("/")[1]
100
101 async def get_session(self) -> aiohttp.ClientSession:
102 if self._session is None or self._session.closed:
103 self._session = aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=60, connect=10))
104 return self._session
105
106 async def close(self):
107 if self._session and not self._session.closed:

Callers 14

get_pr_filesMethod · 0.95
get_pr_diffMethod · 0.95
request_reviewersMethod · 0.95
create_reviewMethod · 0.95
merge_prMethod · 0.95
update_prMethod · 0.95
create_prMethod · 0.95
update_branchMethod · 0.95
add_commentMethod · 0.95
add_inline_commentMethod · 0.95
get_file_at_refMethod · 0.95
get_pr_commitsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected