gitsrht-update-hook: add oauth key

This commit is contained in:
Drew DeVault 2021-02-18 11:37:18 -05:00
parent 7f29427777
commit a76ff9c1cc
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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) {