Use GitHub REST v3 API as fallback to get project metadata
imphil opened this issue · 1 comments
imphil commented
Currently we use the GitHub v4 GraphQL API to get project metadata. This API requires an authenticated client (authenticated as user, that is). We generally have the necessary tokens for all users who added their projects through the GitHub flow in the "Add project" page. But we don't have this information for
- Users who entered a GitHub-backed Git URL directly in the "Add Project" page.
- Users who's token expired for any reason.
The project metadata is still publicly available via the v3 (REST) API from GitHub, so we can fall back to this API. There should already be some code around from before we switched to GraphQL.
recrsn commented
Could we have a librecores bot user?