with real org

This commit is contained in:
Kasper Juul Hermansen 2022-09-15 10:50:39 +02:00
parent 2c37384af5
commit 2c9a70e13c
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
2 changed files with 5 additions and 3 deletions

View File

@ -139,7 +139,7 @@ select:
- git@git.front.kjuulh.io:kjuulh/kraken-test.git
providers:
- gitea: https://git.front.kjuulh.io
organisation: "kraken"
organisation: "cibus"
actions:
- type: go
entry: "main.go"

View File

@ -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 {