Monorepo for Tangled tangled.org
6

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.git.temp.getEntry 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 GitTempGetEntryNSID = "sh.tangled.git.temp.getEntry" 15) 16 17// GitTempGetEntry_Output is the output of a sh.tangled.git.temp.getEntry call. 18type GitTempGetEntry_Output struct { 19 LastCommit *GitTempDefs_Commit `json:"lastCommit,omitempty" cborgen:"lastCommit,omitempty"` 20 Mode string `json:"mode" cborgen:"mode"` 21 // name: The file name 22 Name string `json:"name" cborgen:"name"` 23 Oid string `json:"oid" cborgen:"oid"` 24 // submodule: Submodule information if path is a submodule 25 Submodule *GitTempDefs_Submodule `json:"submodule,omitempty" cborgen:"submodule,omitempty"` 26} 27 28// GitTempGetEntry calls the XRPC method "sh.tangled.git.temp.getEntry". 29// 30// path: path of the entity 31// ref: Git revision (branch, tag, or commit id) 32// repo: DID of the repository 33func GitTempGetEntry(ctx context.Context, c util.LexClient, path string, ref string, repo string) (*GitTempGetEntry_Output, error) { 34 var out GitTempGetEntry_Output 35 36 params := map[string]interface{}{} 37 params["path"] = path 38 if ref != "" { 39 params["ref"] = ref 40 } 41 params["repo"] = repo 42 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.getEntry", params, nil, &out); err != nil { 43 return nil, err 44 } 45 46 return &out, nil 47}