Monorepo for Tangled tangled.org
1

Configure Feed

Select the types of activity you want to include in your feed.

core / api / tangled / pipelinetriggerPipeline.go
1.6 kB 43 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.ci.pipeline.triggerPipeline 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 CiPipelineTriggerPipelineNSID = "sh.tangled.ci.pipeline.triggerPipeline" 15) 16 17// CiPipelineTriggerPipeline_Input is the input argument to a sh.tangled.ci.pipeline.triggerPipeline call. 18type CiPipelineTriggerPipeline_Input struct { 19 // ref: optional ref the SHA was resolved from, for display 20 Ref *string `json:"ref,omitempty" cborgen:"ref,omitempty"` 21 // repo: AT-URI of the sh.tangled.repo record 22 Repo string `json:"repo" cborgen:"repo"` 23 // sha: commit SHA to run the pipeline at 24 Sha string `json:"sha" cborgen:"sha"` 25 // workflows: Workflow names to run. When not provided, every dispatchable workflow is run. 26 Workflows []string `json:"workflows,omitempty" cborgen:"workflows,omitempty"` 27} 28 29// CiPipelineTriggerPipeline_Output is the output of a sh.tangled.ci.pipeline.triggerPipeline call. 30type CiPipelineTriggerPipeline_Output struct { 31 // pipeline: AT-URI of the created pipeline 32 Pipeline string `json:"pipeline" cborgen:"pipeline"` 33} 34 35// CiPipelineTriggerPipeline calls the XRPC method "sh.tangled.ci.pipeline.triggerPipeline". 36func CiPipelineTriggerPipeline(ctx context.Context, c util.LexClient, input *CiPipelineTriggerPipeline_Input) (*CiPipelineTriggerPipeline_Output, error) { 37 var out CiPipelineTriggerPipeline_Output 38 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.ci.pipeline.triggerPipeline", nil, input, &out); err != nil { 39 return nil, err 40 } 41 42 return &out, nil 43}