~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

[PATCH git.sr.ht] api/webhooks: Add missing default case

Details
Message ID
<20220701202600.604953-1-admin@xenrox.net>
DKIM signature
pass
Download raw message
Patch: +2 -0
---
 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

[git.sr.ht/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CL4LSXMONLQT.2U0IIRFMC9F7Z@cirno>
In-Reply-To
<20220701202600.604953-1-admin@xenrox.net> (view parent)
DKIM signature
missing
Download raw message
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
Details
Message ID
<CL8FM0AYGU2T.3BVHPQ3K7035G@taiga>
In-Reply-To
<20220701202600.604953-1-admin@xenrox.net> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/git.sr.ht
   4558b99..483a560  master -> master
Reply to thread Export thread (mbox)