with real org
This commit is contained in:
@@ -17,7 +17,9 @@ type Gitea struct {
|
||||
|
||||
func NewGitea(logger *zap.Logger) *Gitea {
|
||||
return &Gitea{
|
||||
logger: logger,
|
||||
logger: logger,
|
||||
giteamu: sync.Mutex{},
|
||||
giteaClients: make(map[string]*gitea.Client, 0),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +37,7 @@ func (g *Gitea) ListRepositoriesForOrganization(ctx context.Context, server stri
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("could not list repos: %w", err)
|
||||
}
|
||||
|
||||
if resp.StatusCode >= 300 {
|
||||
|
Reference in New Issue
Block a user