:calls: `GET /repos/{owner}/{repo}/stats/commit_activity `_ :rtype: None or list of :class:`github.StatsCommitActivity.StatsCommitActivity`
(self)
| 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 | """ |
no test coverage detected