feature/gitea-integration #10

Merged
kjuulh merged 10 commits from feature/gitea-integration into v0.1 2022-09-18 00:10:44 +02:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 2c9a70e13c - Show all commits

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 {