Provisioning: Fix panic in webhook extra (#110845)
This commit is contained in:
@@ -30,7 +30,7 @@ type WebhookExtraBuilder struct {
|
||||
|
||||
// FIXME: separate the URL provider from connector to simplify operators
|
||||
func (b *WebhookExtraBuilder) WebhookURL(ctx context.Context, r *provisioning.Repository) string {
|
||||
if !b.isPublic {
|
||||
if b == nil || !b.isPublic {
|
||||
return ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user