MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / get_instances

Method get_instances

github/CodeScanAlert.py:157–166  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances `_

(self)

Source from the content-addressed store, hash-verified

155 return self._url.value
156
157 def get_instances(self) -> PaginatedList[CodeScanAlertInstance]:
158 """
159 :calls: `GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances <https://docs.github.com/en/rest/code-scanning/code-scanning#list-instances-of-a-code-scanning-alert>`_
160 """
161 return PaginatedList(
162 github.CodeScanAlertInstance.CodeScanAlertInstance,
163 self._requester,
164 self.instances_url,
165 None,
166 )
167
168 def _useAttributes(self, attributes: dict[str, Any]) -> None:
169 if "assignees" in attributes: # pragma no branch

Callers 1

testCodeScanAlertsMethod · 0.80

Calls 1

PaginatedListClass · 0.90

Tested by

no test coverage detected