Skip to content

Conversation

mcarmonaa
Copy link
Contributor

Signed-off-by: Manuel Carmona manu.carmona90@gmail.com

@mcarmonaa mcarmonaa requested a review from jfontan July 16, 2019 13:10

// GHDiscovery will retrieve the information for all the repositories for the
// given GHRepositoriesIterator.
type GHDiscovery struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not GitHub? It's already in discovery package. Same for the file name discovery/github.go.


// NewGHOrgProvider builds a new gitcollector.Provider
// based on a discovery.GHDiscovery.
func NewGHOrgProvider(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as with discovery.GHDiscovery. This is already in provider package so it could be provider.NewGitHubOrg.

Copy link
Contributor

@jfontan jfontan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the nit pick about duplicating the name of the package in structs and files. Other than that LGTM!

Signed-off-by: Manuel Carmona <manu.carmona90@gmail.com>
@mcarmonaa mcarmonaa force-pushed the improvement/refactor-discovery branch from bd85997 to 62a8ad4 Compare July 16, 2019 13:49
@mcarmonaa mcarmonaa merged commit 4dc597c into src-d:master Jul 16, 2019
@mcarmonaa mcarmonaa deleted the improvement/refactor-discovery branch July 16, 2019 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants