PyGithub / PyGithub/PyGithub

fail to explore some very simple repositories like near/near-docusaurus-styles

Open
#2,294 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.8k
Forks
1.9k
Avg merge
17m
Merged PRs (30d)
2

Description

Trying to execute those lines :

from github import Github

gc = Github()
repos = gc.get_user(login='near').get_repos()
repo = repos[65]
print(repo)
open_pulls = repo.get_pulls(state='open')
print('open_pulls OK')
stats_commit_activity = repo.get_stats_commit_activity()
print('stats_commit_activity OK')

The display is :

Repository(full_name="near/near-docusaurus-styles")
open_pulls OK

And then, frozen screen, during a lot of time, (15 mn at least ...).
If I'm patient enough, I obtain finally an answer talking about Exception and recursivity...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the provided Python snippet and start at the repo.get_stats_commit_activity() entry point for near/near-docusaurus-styles. Trace the exception and recursion reported after the long wait, then verify that this repository's commit-activity request returns or fails promptly rather than hanging.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.