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

Method get_stats_commit_activity

github/Repository.py:3595–3607  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

3593 ]
3594
3595 def get_stats_commit_activity(self) -> list[StatsCommitActivity] | None:
3596 """
3597 :calls: `GET /repos/{owner}/{repo}/stats/commit_activity <https://docs.github.com/en/rest/reference/repos#get-the-last-year-of-commit-activity>`_
3598 :rtype: None or list of :class:`github.StatsCommitActivity.StatsCommitActivity`
3599 """
3600 headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/stats/commit_activity")
3601 if not data:
3602 return None
3603 else:
3604 return [
3605 github.StatsCommitActivity.StatsCommitActivity(self._requester, headers, attributes)
3606 for attributes in data
3607 ]
3608
3609 def get_stats_code_frequency(self) -> list[StatsCodeFrequency] | None:
3610 """

Callers 1

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected