~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 meta.sr.ht] api/webhooks: Add missing default case

Details
Message ID
<20220701202549.603454-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 85361ca..7379e0f 100644
--- a/api/graph/schema.resolvers.go
+++ b/api/graph/schema.resolvers.go
@@ -509,6 +509,8 @@ func (r *mutationResolver) CreateWebhook(ctx context.Context, config model.Profi
			access = "PGP_KEYS"
		case model.WebhookEventSSHKeyAdded, model.WebhookEventSSHKeyRemoved:
			access = "SSH_KEYS"
		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: 88d6150199f42c93b875315ca0d4f3f925a9bd6d
-- 
2.37.0

[meta.sr.ht/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CL4LS8BJS73V.1LT6XSL5GYUIT@cirno2>
In-Reply-To
<20220701202549.603454-1-admin@xenrox.net> (view parent)
DKIM signature
missing
Download raw message
meta.sr.ht/patches: SUCCESS in 5m9s

[api/webhooks: Add missing default case][0] from [Thorben Günther][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/33471
[1]: admin@xenrox.net

✓ #792369 SUCCESS meta.sr.ht/patches/alpine.yml    https://builds.sr.ht/~sircmpwn/job/792369
✓ #792370 SUCCESS meta.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/792370
✓ #792371 SUCCESS meta.sr.ht/patches/debian.yml    https://builds.sr.ht/~sircmpwn/job/792371
Details
Message ID
<CL8FLG3IFXL4.Y8SX0YHR1UHC@taiga>
In-Reply-To
<20220701202549.603454-1-admin@xenrox.net> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/meta.sr.ht
   88d6150..7513756  master -> master
Reply to thread Export thread (mbox)