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

Method get_stats_contributors

github/Repository.py:3582–3593  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/stats/contributors `_ :rtype: None or list of :class:`github.StatsContributor.StatsContributor`

(self)

Source from the content-addressed store, hash-verified

3580 )
3581
3582 def get_stats_contributors(self) -> list[StatsContributor] | None:
3583 """
3584 :calls: `GET /repos/{owner}/{repo}/stats/contributors <https://docs.github.com/en/rest/reference/repos#get-all-contributor-commit-activity>`_
3585 :rtype: None or list of :class:`github.StatsContributor.StatsContributor`
3586 """
3587 headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/stats/contributors")
3588 if not data:
3589 return None
3590 else:
3591 return [
3592 github.StatsContributor.StatsContributor(self._requester, headers, attributes) for attributes in data
3593 ]
3594
3595 def get_stats_commit_activity(self) -> list[StatsCommitActivity] | None:
3596 """

Callers 1

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected