Hacktoberfest / hacktoberfest-2020

Hacktoberfest - App to manage the annual open-source challenge, used for the 2019 & 2020 seasons.
https://hacktoberfest.digitalocean.com
Other
497 stars 145 forks source link

Include repo topics and app data in exported metadata #719

Closed MattIPv4 closed 3 years ago

MattIPv4 commented 3 years ago

Description

Update the GitHub scraping logic to include all topics a repo has, as well as the app data for PRs & users.

Adding the custom DB logic to the export allows a dev to remotely export the final JSON on their local device, connecting to the remote prod/staging DB.

E.g. docker-compose exec -e HACKTOBERFEST_DATABASE_HOST=the.hacktoberfest.staging.fqdn -e HACKTOBERFEST_DATABASE_PORT=12345 -e HACKTOBERFEST_DATABASE_NAME=default -e HACKTOBERFEST_DATABASE_USERNAME=dodge -e HACKTOBERFEST_DATABASE_PASSWORD=hunter2 -e HACKTOBERFEST_DATABASE_TIMEOUT=10 -e HACKTOBERFEST_DATABASE_CUSTOM=1 app bundle exec rake export:user_stats

Test process

Requirements to merge

MattIPv4 commented 3 years ago

@katjuell this should be good to go now, including exporting locally from a remote DB.