A vibe coded tangled fork which supports pijul.
at 1edcd7707b74263a60a244da3cbb982d5016a0ae 30 lines 906 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3// Lexicon schema: sh.tangled.repo.setDefaultBranch 4 5package tangled 6 7import ( 8 "context" 9 10 lexutil "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoSetDefaultBranchNSID = "sh.tangled.repo.setDefaultBranch" 15) 16 17// RepoSetDefaultBranch_Input is the input argument to a sh.tangled.repo.setDefaultBranch call. 18type RepoSetDefaultBranch_Input struct { 19 DefaultBranch string `json:"defaultBranch" cborgen:"defaultBranch"` 20 Repo string `json:"repo" cborgen:"repo"` 21} 22 23// RepoSetDefaultBranch calls the XRPC method "sh.tangled.repo.setDefaultBranch". 24func RepoSetDefaultBranch(ctx context.Context, c lexutil.LexClient, input *RepoSetDefaultBranch_Input) error { 25 if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.repo.setDefaultBranch", nil, input, nil); err != nil { 26 return err 27 } 28 29 return nil 30}