contentctl icon indicating copy to clipboard operation
contentctl copied to clipboard

test & release_notes assume repo location

Open 0xC0FFEEEE opened this issue 4 months ago • 0 comments

Both of the mentioned features assume that the repository exists in the same directory as the content, which may not be the case.

They both currently appear to be using different modules (pygit2 for test & git for release_notes) so the solution can't quite be a one size fits all approach today.

There should either be a repo_path config option, or both features aligned to use the same module such as pygit2, where something like the following could be used:

repo_path = pygit2.discover_repository(self.config.path)
repo = pygit2.Repository(path=str(repo_path))

0xC0FFEEEE avatar Oct 10 '24 13:10 0xC0FFEEEE