with real org

This commit is contained in:
2022-09-15 10:50:39 +02:00
parent 2c37384af5
commit 2c9a70e13c
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

@@ -18,6 +18,8 @@ type Gitea struct {
func NewGitea(logger *zap.Logger) *Gitea {
return &Gitea{
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 {