<20220701202600.604953-1-admin@xenrox.net>
--- api/graph/schema.resolvers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/graph/schema.resolvers.go b/api/graph/schema.resolvers.go index 0886c89..f2fac3a 100644 --- a/api/graph/schema.resolvers.go +++ b/api/graph/schema.resolvers.go @@ -767,6 +767,8 @@ func (r *mutationResolver) CreateWebhook(ctx context.Context, config model.UserW case model.WebhookEventRepoCreated, model.WebhookEventRepoUpdate, model.WebhookEventRepoDeleted: access = "REPOSITORIES" + default: + return nil, fmt.Errorf("Unsupported event %s", ev.String()) } if !user.Grants.Has(access, auth.RO) { return nil, fmt.Errorf("Insufficient access granted for webhook event %s", ev.String()) base-commit: 4558b995c2cc9df43f95895e2619275acad1b1b2 -- 2.37.0
<CL4LSXMONLQT.2U0IIRFMC9F7Z@cirno>
<20220701202600.604953-1-admin@xenrox.net>
(view parent)
git.sr.ht/patches: SUCCESS in 5m54s [api/webhooks: Add missing default case][0] from [Thorben Günther][1] [0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/33472 [1]: admin@xenrox.net ✓ #792373 SUCCESS git.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/792373 ✓ #792372 SUCCESS git.sr.ht/patches/alpine.yml https://builds.sr.ht/~sircmpwn/job/792372 ✓ #792374 SUCCESS git.sr.ht/patches/debian.yml https://builds.sr.ht/~sircmpwn/job/792374
<CL8FM0AYGU2T.3BVHPQ3K7035G@taiga>
<20220701202600.604953-1-admin@xenrox.net>
(view parent)
Thanks! To git@git.sr.ht:~sircmpwn/git.sr.ht 4558b99..483a560 master -> master