Monorepo for Tangled
0

Configure Feed

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

core / api / tangled / cicancelPipeline.go
1.0 kB 34 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.ci.cancelPipeline 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 CiCancelPipelineNSID = "sh.tangled.ci.cancelPipeline" 15) 16 17// CiCancelPipeline_Input is the input argument to a sh.tangled.ci.cancelPipeline call. 18type CiCancelPipeline_Input struct { 19 // pipeline: pipeline TID 20 Pipeline string `json:"pipeline" cborgen:"pipeline"` 21 // repo: git repository DID 22 Repo string `json:"repo" cborgen:"repo"` 23 // workflows: Workflow names to filter. When not provided, entire pipeline will be canceled. 24 Workflows []string `json:"workflows,omitempty" cborgen:"workflows,omitempty"` 25} 26 27// CiCancelPipeline calls the XRPC method "sh.tangled.ci.cancelPipeline". 28func CiCancelPipeline(ctx context.Context, c util.LexClient, input *CiCancelPipeline_Input) error { 29 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.ci.cancelPipeline", nil, input, nil); err != nil { 30 return err 31 } 32 33 return nil 34}