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

Method get_stats_punch_card

github/Repository.py:3634–3643  ·  view source on GitHub ↗

:calls: `GET /repos/{owner}/{repo}/stats/punch_card `_ :rtype: None or :class:`github.StatsPunchCard.StatsPunchCard`

(self)

Source from the content-addressed store, hash-verified

3632 return github.StatsParticipation.StatsParticipation(self._requester, headers, data)
3633
3634 def get_stats_punch_card(self) -> StatsPunchCard | None:
3635 """
3636 :calls: `GET /repos/{owner}/{repo}/stats/punch_card <https://docs.github.com/en/rest/reference/repos#get-the-hourly-commit-count-for-each-day>`_
3637 :rtype: None or :class:`github.StatsPunchCard.StatsPunchCard`
3638 """
3639 headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/stats/punch_card")
3640 if not data:
3641 return None
3642 else:
3643 return github.StatsPunchCard.StatsPunchCard(self._requester, headers, data)
3644
3645 def get_subscribers(self) -> PaginatedList[NamedUser]:
3646 """

Callers 1

Calls 1

requestJsonAndCheckMethod · 0.80

Tested by

no test coverage detected