Add --starred-skip-size-over flag to limit starred repo size (#108)

Allow users to skip starred repositories exceeding a size threshold
when using --all-starred. Size is specified in MB and checked against
the GitHub API's repository size field.

- Only affects starred repos; user's own repos always included
- Logs each skipped repo with name and size

Closes #108
This commit is contained in:
Rodos
2025-12-20 18:04:25 +11:00
parent 875f09eeaf
commit 3c43e0f481
4 changed files with 272 additions and 4 deletions

View File

@@ -26,6 +26,8 @@ class TestCaseSensitivity:
args.private = False
args.public = False
args.all = True
args.skip_archived = False
args.starred_skip_size_over = None
# Simulate GitHub API returning canonical case
repos = [
@@ -65,6 +67,8 @@ class TestCaseSensitivity:
args.private = False
args.public = False
args.all = True
args.skip_archived = False
args.starred_skip_size_over = None
repos = [
{
@@ -93,6 +97,8 @@ class TestCaseSensitivity:
args.private = False
args.public = False
args.all = True
args.skip_archived = False
args.starred_skip_size_over = None
repos = [
{"name": "repo1", "owner": {"login": "test-user"}, "private": False, "fork": False},