refactor: separate fetch and import logic
1 file changed, 3 insertions(+), 2 deletions(-)
changed files
M internal/config/repository.go → internal/config/repository.go
@@ -8,7 +8,8 @@ type RepoType int const ( - GitHub = iota + 1 + UnknownRepoType = iota + GitHub ) type Repository struct {@@ -32,7 +33,7 @@ switch strings.ToLower(name) { case "github": return GitHub, nil default: - return Unknown, fmt.Errorf("unsupported repo type %s", name) + return UnknownRepoType, fmt.Errorf("unsupported repo type %s", name) } }