Monorepo for Tangled
Something went wrong. Try again.
Go
12345678910111213141516171819202122232425262728293031// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package tangled
// schema: sh.tangled.repo.setDefaultBranch
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( RepoSetDefaultBranchNSID = "sh.tangled.repo.setDefaultBranch")
// RepoSetDefaultBranch_Input is the input argument to a sh.tangled.repo.setDefaultBranch call.type RepoSetDefaultBranch_Input struct { DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"` Repo string `json:"repo" cborgen:"repo"`}
// RepoSetDefaultBranch calls the XRPC method "sh.tangled.repo.setDefaultBranch".func RepoSetDefaultBranch(ctx context.Context, c util.LexClient, input *RepoSetDefaultBranch_Input) error { if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.setDefaultBranch", nil, input, nil); err != nil { return err }
return nil}