// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: sh.tangled.repo.create import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( RepoCreateNSID = "sh.tangled.repo.create" ) // RepoCreate_Input is the input argument to a sh.tangled.repo.create call. type RepoCreate_Input struct { // defaultBranch: Default branch to push to DefaultBranch *string `json:"defaultBranch,omitempty" cborgen:"defaultBranch,omitempty"` // rkey: Rkey of the repository record Rkey string `json:"rkey" cborgen:"rkey"` // source: A source URL to clone from, populate this when forking or importing a repository. Source *string `json:"source,omitempty" cborgen:"source,omitempty"` } // RepoCreate calls the XRPC method "sh.tangled.repo.create". func RepoCreate(ctx context.Context, c util.LexClient, input *RepoCreate_Input) error { if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.create", nil, input, nil); err != nil { return err } return nil }