From a76ff9c1cc33229908ba00e915e9cb806e74b612 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 18 Feb 2021 11:37:18 -0500 Subject: [PATCH] gitsrht-update-hook: add oauth key --- api/graph/schema.graphqls | 4 +--- gitsrht-update-hook/manifest.go | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/api/graph/schema.graphqls b/api/graph/schema.graphqls index 2ef2669..7ff8631 100644 --- a/api/graph/schema.graphqls +++ b/api/graph/schema.graphqls @@ -18,9 +18,7 @@ enum AccessKind { } # Decorates fields for which access requires a particular OAuth 2.0 scope with -# read or write access. For the meta.sr.ht API, you have access to all public -# information without any special permissions - user profile information, -# public keys, and so on. +# read or write access. directive @access(scope: AccessScope!, kind: AccessKind!) on FIELD_DEFINITION # https://semver.org diff --git a/gitsrht-update-hook/manifest.go b/gitsrht-update-hook/manifest.go index 088aebe..c4ee834 100644 --- a/gitsrht-update-hook/manifest.go +++ b/gitsrht-update-hook/manifest.go @@ -18,6 +18,7 @@ type Manifest struct { Sources []string `yaml:"sources",omitempty` Tasks []map[string]string `yaml:"tasks"` Triggers []map[string]interface{} `yaml:"triggers",omitempty` + OAuth string `yaml:"oauth",omitempty` } func ManifestFromYAML(src string) (Manifest, error) { -- 2.38.4