Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package tangled
// schema: sh.tangled.repo.pull.merge
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( RepoPullMergeNSID = "sh.tangled.repo.pull.merge")
// RepoPullMerge_Input is the input argument to a sh.tangled.repo.pull.merge call.type RepoPullMerge_Input struct { // repo: DID of the repository the pull lives on Repo string `json:"repo" cborgen:"repo"` // rkey: Record key of the pull to merge Rkey string `json:"rkey" cborgen:"rkey"`}
// RepoPullMerge_Output is the output of a sh.tangled.repo.pull.merge call.type RepoPullMerge_Output struct { // merged: At-uris of the pulls this call marked merged, bottom of the stack first Merged []string `json:"merged" cborgen:"merged"` // tip: Commit id the target branch ended on; the standing tip when the merge needed no move Tip string `json:"tip" cborgen:"tip"`}
// RepoPullMerge calls the XRPC method "sh.tangled.repo.pull.merge".func RepoPullMerge(ctx context.Context, c util.LexClient, input *RepoPullMerge_Input) (*RepoPullMerge_Output, error) { var out RepoPullMerge_Output if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.pull.merge", nil, input, &out); err != nil { return nil, err }
return &out, nil}