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

Method get_pulls

github/Commit.py:312–322  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls `_

(self)

Source from the content-addressed store, hash-verified

310 return github.CommitCombinedStatus.CommitCombinedStatus(self._requester, headers, data)
311
312 def get_pulls(self) -> PaginatedList[PullRequest]:
313 """
314 :calls: `GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls <https://docs.github.com/en/rest/reference/repos#list-pull-requests-associated-with-a-commit>`_
315 """
316 return PaginatedList(
317 github.PullRequest.PullRequest,
318 self._requester,
319 f"{self.url}/pulls",
320 None,
321 headers={"Accept": "application/vnd.github.groot-preview+json"},
322 )
323
324 def get_check_runs(
325 self,

Callers 6

delete_branchMethod · 0.45
setUpMethod · 0.45
testGetPullsMethod · 0.45
testGetPullsMethod · 0.45

Calls 1

PaginatedListClass · 0.90

Tested by

no test coverage detected