Skip to content

Commit

Permalink
Log.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Jan 9, 2024
1 parent 345e57a commit eb5a519
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/webhooks/github/actions/repository_maintainers.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ func (r *repositoryMaintainers) CreateRepositoryMaintainers(ctx context.Context,
Privacy: v3.String("closed"),
})
if err != nil {
// Could be that team already exists...
if !strings.Contains(err.Error(), "Name must be unique for this org") {
r.logger.Infow("maintainers team for repository already exists", "repository", p.RepositoryName, "team", name)
} else {
return fmt.Errorf("error creating maintainers team %w", err)
}
} else {
Expand Down

0 comments on commit eb5a519

Please sign in to comment.