~xenrox

~xenrox/test2

Last active 10 days ago
View more

Recent activity

[PATCH hg.sr.ht] api/webhooks: Add missing default case 3 days ago

From Thorben Günther to ~sircmpwn/sr.ht-dev

# HG changeset patch
# User Thorben Günther <admin@xenrox.net>
# Date 1656707251 -7200
#      Fri Jul 01 22:27:31 2022 +0200
# Node ID 028049d85eb74404324c5e5f0ea7ad563e5c56ac
# Parent  05667befed23319d7153f33ef64015aa79c97af0
api/webhooks: Add missing default case

diff --git a/api/graph/schema.resolvers.go b/api/graph/schema.resolvers.go
--- a/api/graph/schema.resolvers.go
+++ b/api/graph/schema.resolvers.go
@@ -417,6 +417,8 @@
		case model.WebhookEventRepoCreated, model.WebhookEventRepoUpdate,
			model.WebhookEventRepoDeleted:
[message trimmed]

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

From Thorben Günther to ~sircmpwn/sr.ht-dev

---
 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())
[message trimmed]

[PATCH meta.sr.ht] api/webhooks: Add missing default case 3 days ago

From Thorben Günther to ~sircmpwn/sr.ht-dev

---
 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())
[message trimmed]

Re: [PATCH] Use cobra.FixedCompletions 3 days ago

From Thorben Günther to ~emersion/hut-dev

Pushed, thanks!

[PATCH] todo: Add ticket webhook list 5 days ago

From Thorben Günther to ~emersion/hut-dev

---
 doc/hut.1.scd                    |  3 ++
 srht/todosrht/gql.go             | 23 +++++++++++++++
 srht/todosrht/operations.graphql | 31 +++++++++++++++++++++
 todo.go                          | 48 ++++++++++++++++++++++++++++++++
 4 files changed, 105 insertions(+)

diff --git a/doc/hut.1.scd b/doc/hut.1.scd
index 7fdb0f0..50167df 100644
--- a/doc/hut.1.scd
+++ b/doc/hut.1.scd
@@ -620,6 +620,9 @@ Options are:
*ticket webhook delete* <ID>
	Delete a ticket webhook.
[message trimmed]

[PATCH 5/5] todo: Implement user-webhook ID completion 6 days ago

From Thorben Günther to ~emersion/hut-dev

---
 srht/todosrht/gql.go             |  9 +++++++++
 srht/todosrht/operations.graphql |  9 +++++++++
 todo.go                          | 20 +++++++++++++++++++-
 3 files changed, 37 insertions(+), 1 deletion(-)

diff --git a/srht/todosrht/gql.go b/srht/todosrht/gql.go
index ce701b9..91aaa41 100644
--- a/srht/todosrht/gql.go
+++ b/srht/todosrht/gql.go
@@ -847,6 +847,15 @@ func UserWebhooks(client *gqlclient.Client, ctx context.Context) (userWebhooks *
	return respData.UserWebhooks, err
}

[message trimmed]

[PATCH 4/5] hg: Implement user-webhook ID completion 6 days ago

From Thorben Günther to ~emersion/hut-dev

---
 hg.go                          | 20 +++++++++++++++++++-
 srht/hgsrht/gql.go             |  9 +++++++++
 srht/hgsrht/operations.graphql |  9 +++++++++
 3 files changed, 37 insertions(+), 1 deletion(-)

diff --git a/hg.go b/hg.go
index 1620678..2112cbd 100644
--- a/hg.go
+++ b/hg.go
@@ -239,7 +239,7 @@ func newHgUserWebhookDeleteCommand() *cobra.Command {
		Use:               "delete <ID>",
		Short:             "Delete a user webhook",
		Args:              cobra.ExactArgs(1),
[message trimmed]

[PATCH 3/5] lists: Implement user-webhook ID completion 6 days ago

From Thorben Günther to ~emersion/hut-dev

---
 lists.go                          | 20 +++++++++++++++++++-
 srht/listssrht/gql.go             |  9 +++++++++
 srht/listssrht/operations.graphql |  9 +++++++++
 3 files changed, 37 insertions(+), 1 deletion(-)

diff --git a/lists.go b/lists.go
index 7994615..21ec8fd 100644
--- a/lists.go
+++ b/lists.go
@@ -671,7 +671,7 @@ func newListsUserWebhookDeleteCommand() *cobra.Command {
		Use:               "delete <ID>",
		Short:             "Delete a user webhook",
		Args:              cobra.ExactArgs(1),
[message trimmed]

[PATCH 2/5] git: Implement user-webhook ID completion 6 days ago

From Thorben Günther to ~emersion/hut-dev

---
 git.go                          | 20 +++++++++++++++++++-
 srht/gitsrht/gql.go             |  9 +++++++++
 srht/gitsrht/operations.graphql |  9 +++++++++
 3 files changed, 37 insertions(+), 1 deletion(-)

diff --git a/git.go b/git.go
index 124c505..a99ec79 100644
--- a/git.go
+++ b/git.go
@@ -659,7 +659,7 @@ func newGitUserWebhookDeleteCommand() *cobra.Command {
		Use:               "delete <ID>",
		Short:             "Delete a user webhook",
		Args:              cobra.ExactArgs(1),
[message trimmed]

[PATCH 1/5] meta: Implement user-webhook ID completion 6 days ago

From Thorben Günther to ~emersion/hut-dev

---
 meta.go                          | 20 +++++++++++++++++++-
 srht/metasrht/gql.go             |  9 +++++++++
 srht/metasrht/operations.graphql |  9 +++++++++
 3 files changed, 37 insertions(+), 1 deletion(-)

diff --git a/meta.go b/meta.go
index c54ab16..1666200 100644
--- a/meta.go
+++ b/meta.go
@@ -547,7 +547,7 @@ func newMetaUserWebhookDeleteCommand() *cobra.Command {
		Use:               "delete <ID>",
		Short:             "Delete a user webhook",
		Args:              cobra.ExactArgs(1),
[message trimmed]