this repo has no description
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.git.keepCommit
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 GitKeepCommitNSID = "sh.tangled.git.keepCommit"
15)
16
17// GitKeepCommit_Input is the input argument to a sh.tangled.git.keepCommit call.
18type GitKeepCommit_Input struct {
19 // ref: ref to keep
20 Ref string `json:"ref" cborgen:"ref"`
21 // repo: AT-URI of the repository
22 Repo string `json:"repo" cborgen:"repo"`
23}
24
25// GitKeepCommit_Output is the output of a sh.tangled.git.keepCommit call.
26type GitKeepCommit_Output struct {
27 // commitId: Keeped commit hash
28 CommitId string `json:"commitId" cborgen:"commitId"`
29}
30
31// GitKeepCommit calls the XRPC method "sh.tangled.git.keepCommit".
32func GitKeepCommit(ctx context.Context, c util.LexClient, input *GitKeepCommit_Input) (*GitKeepCommit_Output, error) {
33 var out GitKeepCommit_Output
34 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.git.keepCommit", nil, input, &out); err != nil {
35 return nil, err
36 }
37
38 return &out, nil
39}