gitsrht-update-hook: add oauth key
This commit is contained in:
parent
7f29427777
commit
a76ff9c1cc
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue