:calls: `GET /repos/{owner}/{repo}/stats/code_frequency `_ :rtype: None or list of :class:`github.StatsCodeFrequency.StatsCodeFrequency`
(self)
| 3607 | ] |
| 3608 | |
| 3609 | def get_stats_code_frequency(self) -> list[StatsCodeFrequency] | None: |
| 3610 | """ |
| 3611 | :calls: `GET /repos/{owner}/{repo}/stats/code_frequency <https://docs.github.com/en/rest/reference/repos#get-the-weekly-commit-activity>`_ |
| 3612 | :rtype: None or list of :class:`github.StatsCodeFrequency.StatsCodeFrequency` |
| 3613 | """ |
| 3614 | headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/stats/code_frequency") |
| 3615 | if not data: |
| 3616 | return None |
| 3617 | else: |
| 3618 | return [ |
| 3619 | github.StatsCodeFrequency.StatsCodeFrequency(self._requester, headers, attributes) |
| 3620 | for attributes in data |
| 3621 | ] |
| 3622 | |
| 3623 | def get_stats_participation(self) -> StatsParticipation | None: |
| 3624 | """ |
no test coverage detected