Skip to content

Latest commit

 

History

History
148 lines (106 loc) · 5.2 KB

NOTES.md

File metadata and controls

148 lines (106 loc) · 5.2 KB

Notes

Todos

  • auto-generate config/gems.yml - include all repos with gem topic or - include all repos with gem in description - why? why not? - (primary) language is ruby :-) - note: might include more bundled html/js!!!

fix - fix - fix - check - check

  • - check if any trouble with ".github" repo name (used for org profiles / settings etc.)

check errors - add a retry on HTTP 500 - why? why not?

2022-03-15T14:31:51.1132986Z update >cryptopunksnotdead/awesome-cryptopunks-bubble< [3/4] - fetching repo traffic popular paths...
2022-03-15T14:31:51.1133685Z GET /repos/cryptopunksnotdead/awesome-cryptopunks-bubble/traffic/popular/paths
2022-03-15T14:31:51.1134288Z   using (personal access) token - starting with: 81**********
2022-03-15T14:31:51.1134981Z GET https://api.github.com/repos/cryptopunksnotdead/awesome-cryptopunks-bubble/traffic/popular/paths...
2022-03-15T14:31:51.1135505Z !! HTTP ERROR: 500 Internal Server Error:
2022-03-15T14:31:51.1135988Z #<Net::HTTPInternalServerError 500 Internal Server Error readbody=true>
2022-03-15T14:31:51.1148154Z ##[error]Process completed with exit code 1.
2022-03-15T14:58:42.9710094Z update >book-templates/football< [4/4] - fetching repo traffic popular referrers...
2022-03-15T14:58:42.9710842Z GET /repos/book-templates/football/traffic/popular/referrers
2022-03-15T14:58:42.9711546Z   using (personal access) token - starting with: 81**********
2022-03-15T14:58:42.9712352Z GET https://api.github.com/repos/book-templates/football/traffic/popular/referrers...
2022-03-15T14:58:42.9712963Z !! HTTP ERROR: 403 Forbidden:
2022-03-15T14:58:42.9713472Z #<Net::HTTPForbidden 403 Forbidden readbody=true>
2022-03-15T14:58:42.9729713Z ##[error]Process completed with exit code 1.

fix - fix -fix

2020-12-27T08:42:38.8587835Z GET /repos/henrythemes/hello-minima-theme/traffic/views
2020-12-27T08:42:38.8589131Z   using (personal access) token - starting with: 81**************
2020-12-27T08:42:38.8590796Z GET https://api.github.com/repos/henrythemes/hello-minima-theme/traffic/views...
2020-12-27T08:42:38.8592012Z !! HTTP ERROR: 502 Bad Gateway:
2020-12-27T08:42:38.8593131Z #<Net::HTTPBadGateway 502 Bad Gateway readbody=true>
2020-12-27T08:42:38.8599627Z ##[error]Process completed with exit code 1.
  • check why no access with personal access token (PAT)? - print/dump error details from html body
using (personal access) token - starting with: 81**************
GET https://api.github.com/users/geraldb/repos...
!! HTTP ERROR: 403 Forbidden:
#<Net::HTTPForbidden 403 Forbidden readbody=true>
  • split update in two parts!!!, stats and traffic!!!
update >geraldb/austria< [1/4] - fetching repo traffic clones...
GET /repos/geraldb/austria/traffic/clones
  using (personal access) token - starting with: bd**************
GET https://api.github.com/repos/geraldb/austria/traffic/clones...
!! HTTP ERROR: 403 Forbidden:
#<Net::HTTPForbidden 403 Forbidden readbody=true>

add stars / starcount to SUMMARY.md

fix - check http status in githubba response e.g. 301 (Moved Permanently) etc.

add record 2017-02-11 to history...
GET /repos/slideshow-s9/slideshow-models/commits
  using basic auth - user: testdada, password: ***
"server => GitHub.com"
"date => Sat, 11 Feb 2017 18:45:49 GMT"
"content-type => application/json; charset=utf-8"
"content-length => 160"
"connection => close"
"status => 301 Moved Permanently"
"x-ratelimit-limit => 5000"
"x-ratelimit-remaining => 4288"

double check org membership (must be public)

check if set to public (otherwise org will NOT get included in api call)

add excludes / skip (for too large repos e.g. bootstrap or w/ media files etc.) e.g.:

jekyll-octopod (4):
- jekyll-octopod
- jekyll-octopod.github.io
- jekyll-octopod.github.io.source
- staging

add auto-save to github client

add auto-save; what to do with query parameters (e.g.?per-page=100):

  • strip ?? or
  • include - why? why not??

more

change gerald.json to users~geraldb.json - e.g. 1:1

keeps it generic e.g. no url/uri mapping required

config

use a /config folder for repos.yml, org.yml etc. - why? why not??

handle errors - resume backup on error ???

 #24 [2/7] build
     beercsv/build
try >git clone --mirror -n http://github.com/beercsv/build< in (C:/Users/VHHBG02/backup/2015-11-11/beercsv)...
Cloning into bare repository 'build.git'...
fatal: unable to access 'http://github.com/beercsv/build/': Recv failure: Connection was reset
false
*** error: non-zero exit!!
./backup.rb:41:in `backup': [Kernel.system] command execution failed - non-zero exit code (RuntimeError)
        from ./backup.rb:83:in `block (2 levels) in <main>'
        from ./backup.rb:78:in `each'
        from ./backup.rb:78:in `each_with_index'
        from ./backup.rb:78:in `block in <main>'
        from ./backup.rb:64:in `each'
        from ./backup.rb:64:in `<main>'