@@ -302,71 +302,6 @@ def get_repo_meta(
302
302
)
303
303
return None
304
304
305
- # def get_repo_contribs(self, url: str) -> int | None:
306
- # """
307
- # Returns the count of total contributors to a repository.
308
-
309
- # Parameters
310
- # ----------
311
- # url : str
312
- # The URL of the repository.
313
-
314
- # Returns
315
- # -------
316
- # int
317
- # The count of total contributors to the repository.
318
-
319
- # Notes
320
- # -----
321
- # This method makes a GET call to the GitHub API to retrieve
322
- # total contributors for the specified repository. It then returns the
323
- # count of contributors.
324
-
325
- # If the repository is not found (status code 404), a warning message is
326
- # logged, and the method returns None.
327
- # """
328
-
329
- # repo_contribs_url = url + "/contributors"
330
-
331
- # # Get the url (normally the docs) and repository description
332
- # response = requests.get(
333
- # repo_contribs_url,
334
- # headers={"Authorization": f"token {self.get_token()}"},
335
- # )
336
-
337
- # # Handle 404 error (Repository not found)
338
- # if response.status_code == 404:
339
- # logging.warning(
340
- # f"Repository not found: {repo_contribs_url}. "
341
- # "Did the repo URL change?"
342
- # )
343
- # return None
344
- # # Return total contributors
345
- # else:
346
- # return len(response.json())
347
-
348
- # def get_last_commit(self, repo: str) -> str:
349
- # """Returns the last commit to the repository.
350
-
351
- # Parameters
352
- # ----------
353
- # str : string
354
- # A string containing a datetime object representing the datetime of
355
- # the last commit to the repo
356
-
357
- # Returns
358
- # -------
359
- # str
360
- # String representing the timestamp for the last commit to the repo.
361
- # """
362
- # url = repo + "/commits"
363
- # response = requests.get(
364
- # url, headers={"Authorization": f"token {self.get_token()}"}
365
- # ).json()
366
- # date = response[0]["commit"]["author"]["date"]
367
-
368
- # return date
369
-
370
305
def get_user_info (
371
306
self , gh_handle : str , name : Optional [str ] = None
372
307
) -> dict [str , Union [str , Any ]]:
0 commit comments