~emersion/hottub

53735d3138c4c6ff24e7b7abe4c8ee67ab453d5a — Simon Ser 7 months ago 744dfe8
Shorten $includeSecrets GQL variable a bit
2 files changed, 5 insertions(+), 5 deletions(-)

M buildssrht/gql.go
M buildssrht/operations.graphql
M buildssrht/gql.go => buildssrht/gql.go +3 -3
@@ 526,12 526,12 @@ type WebhookTriggerInput struct {
	Url string `json:"url"`
}

func SubmitJob(client *gqlclient.Client, ctx context.Context, manifest string, tags []string, note *string, includeSecrets *bool, visibility Visibility) (submit *Job, err error) {
	op := gqlclient.NewOperation("mutation submitJob ($manifest: String!, $tags: [String!], $note: String, $includeSecrets: Boolean, $visibility: Visibility!) {\n\tsubmit(manifest: $manifest, secrets: $includeSecrets, tags: $tags, note: $note, visibility: $visibility) {\n\t\tid\n\t\towner {\n\t\t\tcanonicalName\n\t\t}\n\t}\n}\n")
func SubmitJob(client *gqlclient.Client, ctx context.Context, manifest string, tags []string, note *string, secrets *bool, visibility Visibility) (submit *Job, err error) {
	op := gqlclient.NewOperation("mutation submitJob ($manifest: String!, $tags: [String!], $note: String, $secrets: Boolean, $visibility: Visibility!) {\n\tsubmit(manifest: $manifest, secrets: $secrets, tags: $tags, note: $note, visibility: $visibility) {\n\t\tid\n\t\towner {\n\t\t\tcanonicalName\n\t\t}\n\t}\n}\n")
	op.Var("manifest", manifest)
	op.Var("tags", tags)
	op.Var("note", note)
	op.Var("includeSecrets", includeSecrets)
	op.Var("secrets", secrets)
	op.Var("visibility", visibility)
	var respData struct {
		Submit *Job

M buildssrht/operations.graphql => buildssrht/operations.graphql +2 -2
@@ 1,5 1,5 @@
mutation submitJob($manifest: String!, $tags: [String!], $note: String, $includeSecrets: Boolean, $visibility: Visibility!) {
    submit(manifest: $manifest, secrets: $includeSecrets, tags: $tags, note: $note, visibility: $visibility) {
mutation submitJob($manifest: String!, $tags: [String!], $note: String, $secrets: Boolean, $visibility: Visibility!) {
    submit(manifest: $manifest, secrets: $secrets, tags: $tags, note: $note, visibility: $visibility) {
        id
        owner {
            canonicalName