Skip to content

Commit

Permalink
fix: use repository fullname to fetch contributors (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
k1nho authored Mar 4, 2024
1 parent fbf424f commit 5326875
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cmd/insights/contributors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/insights/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5326875

Please sign in to comment.