Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect Github Forks #82

Closed
A-Guldborg opened this issue Nov 15, 2022 · 1 comment
Closed

Collect Github Forks #82

A-Guldborg opened this issue Nov 15, 2022 · 1 comment
Assignees
Labels
backend C# Everything code-related .NET Pull requests that update .net code

Comments

@A-Guldborg
Copy link
Collaborator

Additionally, in your GitInsight back-end applications implement a new analysis. It should be able to list all forks of a repository on GitHub. To do so, it should call the GitHub REST API and collect a list of all forks from a given repository. That is, when your GitInsight REST API receives a GET request with a GitHub repository identifier of the form <github_user>/<repository_name> or <github_organization>/<repository_name>, then besides the two already existing analyses of cloned Git repositories your application contacts the GitHub REST API to collect the number of forks of that repository.

To connect to the GitHub REST API, you need an Access Token. Read this documentation on how to receive an Access Token for the GitHub REST API. Remember and double check on how Rasmus demonstrated to handle secrets like access tokens in .Net projects. That is, do not store the access token directly in your source code. It should never end up in your source code repository that is publicly shared with the world.

@A-Guldborg A-Guldborg added .NET Pull requests that update .net code C# Everything code-related backend labels Nov 15, 2022
@OliFryser OliFryser self-assigned this Nov 15, 2022
@OliFryser
Copy link
Collaborator

#100
#99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend C# Everything code-related .NET Pull requests that update .net code
Projects
None yet
Development

No branches or pull requests

2 participants