:calls: `GET /repos/{owner}/{repo}/stats/participation `_ :rtype: None or :class:`github.StatsParticipation.StatsParticipation`
(self)
| 3621 | ] |
| 3622 | |
| 3623 | def get_stats_participation(self) -> StatsParticipation | None: |
| 3624 | """ |
| 3625 | :calls: `GET /repos/{owner}/{repo}/stats/participation <https://docs.github.com/en/rest/reference/repos#get-the-weekly-commit-count>`_ |
| 3626 | :rtype: None or :class:`github.StatsParticipation.StatsParticipation` |
| 3627 | """ |
| 3628 | headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/stats/participation") |
| 3629 | if not data: |
| 3630 | return None |
| 3631 | else: |
| 3632 | return github.StatsParticipation.StatsParticipation(self._requester, headers, data) |
| 3633 | |
| 3634 | def get_stats_punch_card(self) -> StatsPunchCard | None: |
| 3635 | """ |
no test coverage detected