dsi-clinic / cocoa

Clinic Opinionated Codebase Oversight and Analysis
1 stars 0 forks source link

Run code on all current (public) repos! #13

Closed NickRoss closed 4 months ago

NickRoss commented 4 months ago

Please create a function which takes in a list of repos

["https://github.com/dsi-clinic/2023-Autumn-Clinic-Fermi-CaloDiffusionPaper", "https://github.com/dsi-clinic/2024-winter-rafi-poultry-cafos"] clones those repos and then executes the code parser on it.

You'll need to solve issue #6 first.

  1. Verify there is space (no conflict of dir name) "temp_repo_dir" clone all into there. More advanced: you can use tempdir(named=True).
  2. clone the repo into it.
  3. Run the eval on it, keep the results.
  4. print to screen

clone_repo function should be placed in repo.py. You will probably need to run fetch also to get all branches.