:calls: `GET /repos/{owner}/{repo}/stats/contributors `_ :rtype: None or list of :class:`github.StatsContributor.StatsContributor`
(self)
| 3580 | ) |
| 3581 | |
| 3582 | def get_stats_contributors(self) -> list[StatsContributor] | None: |
| 3583 | """ |
| 3584 | :calls: `GET /repos/{owner}/{repo}/stats/contributors <https://docs.github.com/en/rest/reference/repos#get-all-contributor-commit-activity>`_ |
| 3585 | :rtype: None or list of :class:`github.StatsContributor.StatsContributor` |
| 3586 | """ |
| 3587 | headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/stats/contributors") |
| 3588 | if not data: |
| 3589 | return None |
| 3590 | else: |
| 3591 | return [ |
| 3592 | github.StatsContributor.StatsContributor(self._requester, headers, attributes) for attributes in data |
| 3593 | ] |
| 3594 | |
| 3595 | def get_stats_commit_activity(self) -> list[StatsCommitActivity] | None: |
| 3596 | """ |
no test coverage detected