From 53268758056a25b9135c011425b5854657752885 Mon Sep 17 00:00:00 2001 From: Kin NG <59541661+k1nho@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:28:55 -0500 Subject: [PATCH] fix: use repository fullname to fetch contributors (#77) --- cmd/insights/contributors.go | 8 ++++---- cmd/insights/repositories.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/insights/contributors.go b/cmd/insights/contributors.go index e9f2dd5..28c76a6 100644 --- a/cmd/insights/contributors.go +++ b/cmd/insights/contributors.go @@ -228,7 +228,7 @@ func findAllContributorsInsights(ctx context.Context, opts *contributorsOptions, waitGroup.Add(1) go func() { defer waitGroup.Done() - response, err := findNewRepositoryContributors(ctx, opts.APIClient, repo.Name, opts.Period) + response, err := findNewRepositoryContributors(ctx, opts.APIClient, repo.FullName, opts.Period) if err != nil { errorChan <- err return @@ -240,7 +240,7 @@ func findAllContributorsInsights(ctx context.Context, opts *contributorsOptions, waitGroup.Add(1) go func() { defer waitGroup.Done() - response, err := findRecentRepositoryContributors(ctx, opts.APIClient, repo.Name, opts.Period) + response, err := findRecentRepositoryContributors(ctx, opts.APIClient, repo.FullName, opts.Period) if err != nil { errorChan <- err return @@ -252,7 +252,7 @@ func findAllContributorsInsights(ctx context.Context, opts *contributorsOptions, waitGroup.Add(1) go func() { defer waitGroup.Done() - response, err := findAlumniRepositoryContributors(ctx, opts.APIClient, repo.Name, opts.Period) + response, err := findAlumniRepositoryContributors(ctx, opts.APIClient, repo.FullName, opts.Period) if err != nil { errorChan <- err return @@ -264,7 +264,7 @@ func findAllContributorsInsights(ctx context.Context, opts *contributorsOptions, waitGroup.Add(1) go func() { defer waitGroup.Done() - response, err := findRepeatRepositoryContributors(ctx, opts.APIClient, repo.Name, opts.Period) + response, err := findRepeatRepositoryContributors(ctx, opts.APIClient, repo.FullName, opts.Period) if err != nil { errorChan <- err return diff --git a/cmd/insights/repositories.go b/cmd/insights/repositories.go index cb03509..1b7987b 100644 --- a/cmd/insights/repositories.go +++ b/cmd/insights/repositories.go @@ -197,7 +197,7 @@ func findAllRepositoryInsights(ctx context.Context, opts *repositoriesOptions, r waitGroup.Add(1) go func() { defer waitGroup.Done() - response, err := getPullRequestInsights(ctx, opts.APIClient, repo.Name, opts.Period) + response, err := getPullRequestInsights(ctx, opts.APIClient, repo.FullName, opts.Period) if err != nil { errorChan <- err return