Add configurable work dir to optimize the repo clone #278
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds support for configuring a custom directory for cloned repositories in auto-pr, allowing users (especially those managing many repositories) to avoid duplicating disk space and to use pre-existing local clones. The feature can be set via both the configuration file and a new CLI option, with clear precedence and robust error handling. The implementation includes thorough tests and updated documentation.
Custom repository directory support
custom_repos_diroption to the config file (config.yaml) and a--repos-dirCLI flag, allowing users to specify an existing directory for cloned repositories. The CLI flag takes precedence over the config file. [1] [2] [3] [4] [5] [6]custom_repos_dirare expanded, and provided clear error messages if referenced variables are missing.How to test the change
Documentation
README.mdwith clear instructions and usage examples for the new configuration options, including important notes for organizations managing many repositories.## Proposed changeChecklist
CHANGELOG.mdhas been updated to reflect changes