Monorepo for Tangled
0

Configure Feed

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

lexicons: `git.temp.getMergeBase`

Signed-off-by: Seongmin Lee <git@boltless.me>

Seongmin Lee (Jul 14, 2026, 1:21 AM +0900) 20a8192d 24d9f534

+93
+39
api/tangled/tempgetMergeBase.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package tangled 4 + 5 + // schema: sh.tangled.git.temp.getMergeBase 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + const ( 14 + GitTempGetMergeBaseNSID = "sh.tangled.git.temp.getMergeBase" 15 + ) 16 + 17 + // GitTempGetMergeBase_Output is the output of a sh.tangled.git.temp.getMergeBase call. 18 + type 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 27 + func 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 + }
+54
lexicons/git/temp/getMergeBase.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.getMergeBase", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "parameters": { 8 + "type": "params", 9 + "required": ["repo", "base", "head"], 10 + "properties": { 11 + "repo": { 12 + "type": "string", 13 + "format": "did", 14 + "description": "DID of the repository" 15 + }, 16 + "base": { 17 + "type": "string", 18 + "description": "Ref used to find the common base." 19 + }, 20 + "head": { 21 + "type": "string", 22 + "description": "Ref to list history for." 23 + } 24 + } 25 + }, 26 + "output": { 27 + "encoding": "application/json", 28 + "schema": { 29 + "type": "object", 30 + "required": ["commit"], 31 + "properties": { 32 + "commit": { 33 + "type": "string" 34 + } 35 + } 36 + } 37 + }, 38 + "errors": [ 39 + { 40 + "name": "RepoNotFound", 41 + "description": "Repository not found or access denied" 42 + }, 43 + { 44 + "name": "RefNotFound", 45 + "description": "Git reference not found" 46 + }, 47 + { 48 + "name": "InvalidRequest", 49 + "description": "Invalid request parameters" 50 + } 51 + ] 52 + } 53 + } 54 + }