Closed zergov closed 1 week ago
Part of: https://github.com/visevol/GihubVisualisation/issues/10
Add the GitRepository class in the lib directory.
This is a wrapper over the process of cloning and extracting logs from a git repository.
api
docker compose build api
docker compose run api bin/rails c
repo = GitRepository.new("https://github.com/rails/rails") repo.clone repo.logs do |logs| logs.each do |line| p line end end
^ This clones the https://github.com/rails/rails repository, and dumps the content of all its commits (93 000).
Part of: https://github.com/visevol/GihubVisualisation/issues/10
Add the GitRepository class in the lib directory.
This is a wrapper over the process of cloning and extracting logs from a git repository.
How to test locally
api
docker container:docker compose build api
docker compose run api bin/rails c
^ This clones the https://github.com/rails/rails repository, and dumps the content of all its commits (93 000).