Exemple #1
0
        /// <summary>
        /// Finds 3 repos per githubId per run. I.e: if runs is set to 1 finds 3 repos that belong to the initial githubId.
        /// If runs is set to 2, finds 3 repos that follow the initial githubId and then 3 repos that belong to each of those repos 3 stargazers.
        /// </summary>
        /// <param name="githubId"> githubId that all repos stem from </param>
        /// <param name="runs"> One-indexed value for how deep the runs go (max 3 required by project) </param>
        /// <returns> A list of repos that follow the githubId, sometimes indirectly (repos from stargazers of repos of the githubId) </returns>
        public async Task <IEnumerable <Repo> > FindReposByGithubId(long githubId, int runs)
        {
            var username = (await _api.FindUserByGithubId(githubId)).Login; // grab username

            return(await FindReposByUsername(username, runs));              // run like you would with usernames
        }