-
Notifications
You must be signed in to change notification settings - Fork 274
Closed
Description
Hi !
This project seems really cool and I'd love to try it on some of my repos.
However, those repos are private and can only be cloned via SSH (git clone git@github.com:<owner>/<repo>)
From the documentation, I was under the impression it is possible to provide the local path to the codebase in order to generate the README :
By providing a remote repository URL or path to your codebase [...]
[...]
-r or --repository: The URL or path to your code repository.
My issue is that the command doesn't seem to accept either git repositories in the git@github.com:<OWNER>/<REPO> format or local path to a git repository as in ~/projects/my-awesome-project
When using local path to codebase :
readmeai -k '<TOKEN>' -r ~/projects/my-awesome-project -o /tmp/readmai.md
[...]
File "/home/shampu/.local/lib/python3.11/site-packages/readmeai/main.py", line 23, in main
config.git = conf.GitConfig(repository=repository)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/dataclasses.py", line 286, in pydantic.dataclasses._add_pydantic_validation_attributes.handle_extra_init
File "<string>", line 5, in __init__
File "pydantic/dataclasses.py", line 305, in pydantic.dataclasses._add_pydantic_validation_attributes.new_post_init
return ('Field('
File "/home/shampu/.local/lib/python3.11/site-packages/readmeai/conf.py", line 79, in __post_init__
raise ValueError(f"Ivalid repository URL or path: {self.repository}")
ValueError: Ivalid repository URL or path: /home/shampu/projects/my-awesome-projectWhen providing path to private repo :
readmeai -k '<TOKEN>' -r 'git@github.com:Shampu/MyAwesomeProject.git' -o /tmp/readmai.md
[...]
File "/home/shampu/.local/lib/python3.11/site-packages/readmeai/main.py", line 23, in main
config.git = conf.GitConfig(repository=repository)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/dataclasses.py", line 286, in pydantic.dataclasses._add_pydantic_validation_attributes.handle_extra_init
File "<string>", line 5, in __init__
File "pydantic/dataclasses.py", line 305, in pydantic.dataclasses._add_pydantic_validation_attributes.new_post_init
return ('Field('
File "/home/shampu/.local/lib/python3.11/site-packages/readmeai/conf.py", line 79, in __post_init__
raise ValueError(f"Ivalid repository URL or path: {self.repository}")
ValueError: Ivalid repository URL or path: git@github.com:Shampu/MyAwesomeProject.gitI would love for anyone to enlighten me regarding the use of SSH cloning and local codebase for this cool project
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels