forked from
tangled.org/core
fork
Configure Feed
Select the types of activity you want to include in your feed.
this repo has no description
fork
Configure Feed
Select the types of activity you want to include in your feed.
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.repo.setDefaultBranch
6
7import (
8 "context"
9
10 "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 util.LexClient, input *RepoSetDefaultBranch_Input) error {
25 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.setDefaultBranch", nil, input, nil); err != nil {
26 return err
27 }
28
29 return nil
30}