asw-v4 / cw-24-hackday-violet

An interactive Health Check of GitHub Repositories.
MIT License
3 stars 1 forks source link

Implement basic script for github pulling #3

Closed JimCircadian closed 6 months ago

JimCircadian commented 6 months ago

Check my API key is still working and implement a reference JSON output for each site analysed. Offer the ability to look at local clones as well, if the metrics fit?

JimCircadian commented 6 months ago
{
  "file_refs": {
    "citation": true,
    "readme": true
  },
  "content": {
    "citation": true,
    "readme": false
  },
  "last_commit_secs": 86400
}
JimCircadian commented 6 months ago
(venv) [ ... ~/cw-24-hackday-violet ]$ python src/data/gh_retrieve.py JimCircadian/duff
{"JimCircadian/duff": {"last_modified": null, "license_exists": false, "readme_exists": false}}
(venv) [... ~/cw-24-hackday-violet ]$ python src/data/gh_retrieve.py numpy/numpy
{"numpy/numpy": {"last_modified": "Tue, 30 Apr 2024 20:49:01 GMT", "license_exists": true, "readme_exists": true}}
JimCircadian commented 6 months ago
$ python src/data/gh_retrieve.py JimCircadian/duff numpy/numpy
{"JimCircadian/duff": {"last_modified_secs_ago": null, "license_exists": false, "readme_exists": false}, "numpy/numpy": {"last_modified_secs_ago": 136685, "license_exists": true, "readme_exists": true}}