This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / api / tangled / tempgetMergeBase.go
1.1 kB 39 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.git.temp.getMergeBase 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 GitTempGetMergeBaseNSID = "sh.tangled.git.temp.getMergeBase" 15) 16 17// GitTempGetMergeBase_Output is the output of a sh.tangled.git.temp.getMergeBase call. 18type GitTempGetMergeBase_Output struct { 19 Commit string `json:"commit" cborgen:"commit"` 20} 21 22// GitTempGetMergeBase calls the XRPC method "sh.tangled.git.temp.getMergeBase". 23// 24// base: Ref used to find the common base. 25// head: Ref to list history for. 26// repo: DID of the repository 27func GitTempGetMergeBase(ctx context.Context, c util.LexClient, base string, head string, repo string) (*GitTempGetMergeBase_Output, error) { 28 var out GitTempGetMergeBase_Output 29 30 params := map[string]interface{}{} 31 params["base"] = base 32 params["head"] = head 33 params["repo"] = repo 34 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.getMergeBase", params, nil, &out); err != nil { 35 return nil, err 36 } 37 38 return &out, nil 39}