nameisxi / outliers-backend

0 stars 0 forks source link

Repo's owner to GithubAccount during GithubRepo creation #13

Closed nameisxi closed 2 years ago

nameisxi commented 2 years ago

While creating GithubRepo objects the repo data includes an "owner" value that includes information of the repo's owner.

The owner of the repo can be different than the user to whom with the current repo is associated (for example, the associated account could be just a contributor, for example). In this case, the repo's API endpoints will be faulty as they are formed using the owner's username.

For example: 'username': henrinikku, 'repos': [ { id: 234343, owner: { 'login': 'nameisxi', ... } ... }

=> languages_url = 'https://api.github.com/repos/nameisxi/repo_name/languages'