Skip to content

Conversation

@manupawickramasinghe
Copy link
Collaborator

This commit enhances the GitHub repository cloning script with several new features:

  • Clone Organization Repositories: Adds the ability to clone all repositories from a specified GitHub organization.
  • Command-Line Interface: Implements a CLI using argparse that allows users to choose between cloning starred repositories or organization repositories. The user can also specify the output directory.
  • API Pagination and Rate Limiting: The script now handles paginated API responses to fetch all repositories and includes logic to wait for rate limit resets, preventing failures when dealing with a large number of repositories.
  • Updated Documentation and Tests: The README.md is updated to reflect the new usage, and unit tests are expanded to cover the new functionality. A requirements.txt file has also been added.

This commit enhances the GitHub repository cloning script with several new features:

- **Clone Organization Repositories:** Adds the ability to clone all repositories from a specified GitHub organization.
- **Command-Line Interface:** Implements a CLI using `argparse` that allows users to choose between cloning starred repositories or organization repositories. The user can also specify the output directory.
- **API Pagination and Rate Limiting:** The script now handles paginated API responses to fetch all repositories and includes logic to wait for rate limit resets, preventing failures when dealing with a large number of repositories.
- **Updated Documentation and Tests:** The `README.md` is updated to reflect the new usage, and unit tests are expanded to cover the new functionality. A `requirements.txt` file has also been added.
@manupawickramasinghe manupawickramasinghe merged commit 9381897 into main Aug 19, 2025
1 check passed
@manupawickramasinghe manupawickramasinghe deleted the feature/clone-org-repos-cli branch August 19, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants