Open bfabio opened 4 years ago
Hi @bfabio, I want to try to solve this issue but I need the GITHUB_ACCESS_TOKEN to test the ruby script. Any way to obtain it?
@maurovitale We need to invite you to the organization, so you can create your own token. cc @sebbalex
Hi @maurovitale I sent you an invitation for the org /italia please accept it. Tnx
Hi @sebbalex, thx for the invitation I accepted and I'll try to solve this issue. I update you soon!
Hi @sebbalex @bfabio , some updates about this problem. I'm using the github explorer to interrogate the graphql github endpoint and it's quite easy to obtain the data. I created a ruby test script on the project (that I will integrate to github_importer.rb, once is finished) to test the requests; to do so, I'm using the 'gqli' lib.
github_importer.rb
is now in this repo (italia/developers.italia.it#1045)
github_importer.rb
right now uses the GitHub REST APIs and takes about 2 minutes to complete.We can probably reduce that time by using the GitHub GraphQL APIs instead, especially in the
fetch_teams
andfetch_issues
methods.Context. What's github_importer.rb?
github_importer.rb
is a script that gets executed periodically and it downloads data from GitHub resulting in the following files getting committed to this repo:github_issues.json
, loaded by Javascript at https://developers.italia.it/en/to-do (and https://developers.italia.it/it/cosa-fare)github_teams.yml
,github_members.yml
,github_tech_list.yml
, used by Jekyll in italia/developers.italia.it to build: