Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
Go
at icy/tmrrpn
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package tangled
// schema: sh.tangled.git.temp2.listCommits
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( GitTemp2ListCommitsNSID = "sh.tangled.git.temp2.listCommits")
// GitTemp2ListCommits_Commit is a "commit" in the sh.tangled.git.temp2.listCommits schema.type GitTemp2ListCommits_Commit struct { Author *GitDefs_Signature `json:"author" cborgen:"author"` Committer *GitDefs_Signature `json:"committer" cborgen:"committer"` ExtraHeaders []*GitTemp2ListCommits_Header `json:"extraHeaders" cborgen:"extraHeaders"` Message string `json:"message" cborgen:"message"` Oid string `json:"oid" cborgen:"oid"` Parents []string `json:"parents" cborgen:"parents"` Tree string `json:"tree" cborgen:"tree"`}
// GitTemp2ListCommits_Header is a "header" in the sh.tangled.git.temp2.listCommits schema.type GitTemp2ListCommits_Header struct { Key string `json:"key" cborgen:"key"` Value string `json:"value" cborgen:"value"`}
// GitTemp2ListCommits_Output is the output of a sh.tangled.git.temp2.listCommits call.type GitTemp2ListCommits_Output struct { Commits []*GitTemp2ListCommits_Commit `json:"commits" cborgen:"commits"`}
// GitTemp2ListCommits calls the XRPC method "sh.tangled.git.temp2.listCommits".//// limit: Maximum number of commits to return// repo: DID of the repository// skip: Number of matching commits to skip. A poor man's pagination.func GitTemp2ListCommits(ctx context.Context, c util.LexClient, after string, allRefs bool, before string, limit int64, ranges []string, repo string, skip int64) (*GitTemp2ListCommits_Output, error) { var out GitTemp2ListCommits_Output
params := map[string]interface{}{} if after != "" { params["after"] = after } if allRefs { params["allRefs"] = allRefs } if before != "" { params["before"] = before } if limit != 0 { params["limit"] = limit } if len(ranges) != 0 { params["ranges"] = ranges } params["repo"] = repo if skip != 0 { params["skip"] = skip } if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp2.listCommits", params, nil, &out); err != nil { return nil, err }
return &out, nil}