Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
1.3 kB · 44 lines
Go
at sv-fe
123456789101112131415161718192021222324252627282930313233343536373839404142434445// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package org_tangled
// schema: org.tangled.temp.git.getBranch
import ( "context"
"github.com/bluesky-social/indigo/lex/util" shtangledtypes "tangled.org/core/api/tangled")
const ( TempGitGetBranchNSID = "org.tangled.temp.git.getBranch")
// TempGitGetBranch_Output is the output of a org.tangled.temp.git.getBranch call.type TempGitGetBranch_Output struct { Author *shtangledtypes.GitDefs_Signature `json:"author" cborgen:"author"` // hash: Latest commit hash on this branch Hash string `json:"hash" cborgen:"hash"` // message: Latest commit message Message string `json:"message" cborgen:"message"` // name: Branch name Name string `json:"name" cborgen:"name"`}
// TempGitGetBranch calls the XRPC method "org.tangled.temp.git.getBranch".//// name: Branch name to get information for// repo: DID of the repositoryfunc TempGitGetBranch(ctx context.Context, c util.LexClient, name string, repo string) (*TempGitGetBranch_Output, error) { var out TempGitGetBranch_Output
params := map[string]interface{}{} params["name"] = name params["repo"] = repo if err := c.LexDo(ctx, util.Query, "", "org.tangled.temp.git.getBranch", params, nil, &out); err != nil { return nil, err }
return &out, nil}