Skip to content

Commit fb956e8

Browse files
committed
Update .gitignore to include .venv and fix formatting in githubapi.py pagination
1 parent e189e7c commit fb956e8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
*.pdf
55
__pycache__/
66
.mypy_cache/
7-
*.pyc
7+
*.pyc
8+
.venv/

githubapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def list_dependabot_alerts(
503503
def list_org_repos(self, org: str) -> Generator[str, None, None]:
504504
"""List all repository full names (owner/repo) in an organization."""
505505
url = self.construct_api_url("org", org, "/repos", {"type": "all"}, "cursor")
506-
for repo in self.paginate(url, progress=False):
506+
for repo in self.paginate(url, progress=False, cursor=True):
507507
yield repo["full_name"]
508508

509509
def list_enterprise_orgs(self, enterprise: str) -> list[str]:

0 commit comments

Comments
 (0)