Skip to content

Commit

Permalink
chore: remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni committed Jul 23, 2024
1 parent 06a1a09 commit be45197
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ var repoRecentReleasesQuery struct {
}

func recentContributions(count int) []Contribution {
// fmt.Printf("Finding recent contributions...\n")

var contributions []Contribution
variables := map[string]interface{}{
"username": githubv4.String(username),
Expand Down Expand Up @@ -125,16 +123,13 @@ func recentContributions(count int) []Contribution {
return contributions[i].OccurredAt.After(contributions[j].OccurredAt)
})

// fmt.Printf("Found %d contributions!\n", len(repos))
if len(contributions) > count {
return contributions[:count]
}
return contributions
}

func recentPullRequests(count int) []PullRequest {
// fmt.Printf("Finding recently created pullRequests...\n")

var pullRequests []PullRequest
variables := map[string]interface{}{
"username": githubv4.String(username),
Expand All @@ -160,7 +155,6 @@ func recentPullRequests(count int) []PullRequest {
}
}

// fmt.Printf("Found %d pullRequests!\n", len(pullRequests))
return pullRequests
}

Expand Down Expand Up @@ -188,13 +182,10 @@ func recentCreatedRepos(owner string, count int) []Repo {
}
}

// fmt.Printf("Found %d repos!\n", len(repos))
return repos
}

func recentForkedRepos(owner string, count int) []Repo {
// fmt.Printf("Finding recently created repos...\n")

var repos []Repo
variables := map[string]interface{}{
"owner": githubv4.String(owner),
Expand All @@ -217,14 +208,10 @@ func recentForkedRepos(owner string, count int) []Repo {
break
}
}

// fmt.Printf("Found %d repos!\n", len(repos))
return repos
}

func recentReleases(count int) []Repo {
// fmt.Printf("Finding recent releases...\n")

var after *githubv4.String
var repos []Repo

Expand All @@ -238,7 +225,6 @@ func recentReleases(count int) []Repo {
panic(err)
}

// fmt.Printf("%+v\n", query)
if len(recentReleasesQuery.User.RepositoriesContributedTo.Edges) == 0 {
break
}
Expand Down Expand Up @@ -273,7 +259,6 @@ func recentReleases(count int) []Repo {
return repos[i].LastRelease.PublishedAt.After(repos[j].LastRelease.PublishedAt)
})

// fmt.Printf("Found %d repos!\n", len(repos))
if len(repos) > count {
return repos[:count]
}
Expand Down Expand Up @@ -311,7 +296,6 @@ func recentPushedRepos(owner string, count int) []Repo {
} `graphql:"repositories(first: $count, privacy: PUBLIC, orderBy: {field: PUSHED_AT, direction: DESC})"`
} `graphql:"repositoryOwner(login: $owner)"`
}
fmt.Printf("Finding repos with recent pushes owned by %s\n", owner)
var repos []Repo
variables := map[string]interface{}{
"count": githubv4.Int(count),
Expand All @@ -328,7 +312,6 @@ func recentPushedRepos(owner string, count int) []Repo {
break
}
}
fmt.Printf("Found %d repos!\n", len(repos))
return repos
}

Expand Down

0 comments on commit be45197

Please sign in to comment.