You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrieve pull requests from a Git repository within a specified revision range.
139
+
140
+
This function extracts pull request numbers from various types of merge commits (regular merges, Homu auto merges, and fast-forward squash-merges) in a specified revision range of a repository. It then retrieves detailed pull request data from the GitHub repository based on these numbers.
141
+
142
+
Parameters
143
+
----------
144
+
repo : Repository object
145
+
The GitHub repository object from which to retrieve pull request data.
146
+
revision_range : str
147
+
The range of revisions to search for pull request merges, specified in a
148
+
format recognized by `git log`.
149
+
150
+
Returns
151
+
-------
152
+
list
153
+
A sorted list of pull request objects corresponding to the pull request numbers found in the specified revision range.
154
+
155
+
See Also
156
+
--------
157
+
Repository.get_pull : Retrieve a pull request by number from the repository.
Build the components for a contributors section based on a revision range.
197
+
198
+
This function extracts the list of authors who contributed within a specified revision range and constructs the components needed for a contributors section, including a heading and an author message.
199
+
200
+
Parameters
201
+
----------
202
+
revision_range : str
203
+
The range of revisions to search for authors, specified in a format recognized by `git log`.
204
+
heading : str, optional
205
+
The heading for the contributors section, default is "Contributors".
206
+
207
+
Returns
208
+
-------
209
+
dict
210
+
A dictionary containing the heading, author message, and list of authors who contributed within the specified revision range.
211
+
212
+
See Also
213
+
--------
214
+
get_authors : Retrieve a list of authors who contributed within a specified revision range.
Build a formatted string for the contributors section based on a revision range.
239
+
240
+
This function creates a formatted string that includes a heading, an author message, and a list of authors who contributed within a specified revision range. The formatting is designed to be suitable for inclusion in documentation.
241
+
242
+
Parameters
243
+
----------
244
+
revision_range : str
245
+
The range of revisions to search for authors, specified in a format recognized by `git log`.
246
+
heading : str, optional
247
+
The heading for the contributors section, default is "Contributors".
248
+
249
+
Returns
250
+
-------
251
+
str
252
+
A formatted string containing the contributors section.
253
+
254
+
See Also
255
+
--------
256
+
build_components : Build the components for a contributors section.
0 commit comments