MCPcopy
hub / github.com/PyGithub/PyGithub / commits

Method commits

github/Comparison.py:103–124  ·  view source on GitHub ↗

This is a `paginated property `_. Iterating over this paginated list may fetch multiple pages. The size of these pages can be controlled via the ``…_per_page`` parameter of :meth:`gi

(self)

Source from the content-addressed store, hash-verified

101
102 @property
103 def commits(self) -> PaginatedList[Commit]:
104 """
105 This is a `paginated property <https://pygithub.readthedocs.io/en/stable/utilities.html#classes-with-paginated-properties>`_.
106
107 Iterating over this paginated list may fetch multiple pages. The size of these pages can be controlled via
108 the ``…_per_page`` parameter of :meth:`github.Repository.Repository.compare`,
109 :meth:`github.Comparison.Comparison.get_commits`, or :meth:`github.Github`.
110
111 If no ``per_page`` is given, the default page size is 250. The maximum is 1000.
112
113 At most 10000 commits can be retrieved.
114 """
115 return PaginatedList(
116 github.Commit.Commit,
117 self._requester,
118 self.url,
119 self._pagination_parameters,
120 list_item="commits",
121 total_count_item="total_commits",
122 firstData=self.raw_data if self.completed else None,
123 firstHeaders=self.raw_headers if self.completed else None,
124 )
125
126 @property
127 def diff_url(self) -> str:

Callers

nothing calls this directly

Calls 1

PaginatedListClass · 0.90

Tested by

no test coverage detected