MCPcopy Index your code
hub / github.com/sdv-dev/SDV / _construct_url

Method _construct_url

scripts/github_client.py:48–52  ·  view source on GitHub ↗
(self, github_org: str, repo: str, resource: str, id: str | None = None)

Source from the content-addressed store, hash-verified

46 self.base_url = 'https://api.github.com/repos'
47
48 def _construct_url(self, github_org: str, repo: str, resource: str, id: str | None = None):
49 url = f'{self.base_url}/{github_org}/{repo}/{resource}'
50 if id:
51 url += f'/{id}'
52 return url
53
54 def get(
55 self,

Callers 2

getMethod · 0.95
postMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected