This repository 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.mergeCommit
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 GitMergeCommitNSID = "sh.tangled.git.mergeCommit"
15)
16
17// GitMergeCommit_Input is the input argument to a sh.tangled.git.mergeCommit call.
18type GitMergeCommit_Input struct {
19 // mergeCommit: Merge commit content. Used when merge commit is created.
20 MergeCommit *GitMergeCommit_Input_MergeCommit `json:"mergeCommit,omitempty" cborgen:"mergeCommit,omitempty"`
21 Source *GitMergeCommit_Input_Source `json:"source" cborgen:"source"`
22 Style string `json:"style" cborgen:"style"`
23 Target *GitMergeCommit_Input_Target `json:"target" cborgen:"target"`
24}
25
26// Merge commit content. Used when merge commit is created.
27type GitMergeCommit_Input_MergeCommit struct {
28 Author *GitDefs_Signature `json:"author,omitempty" cborgen:"author,omitempty"`
29 Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
30}
31
32type GitMergeCommit_Input_Source struct {
33 // commit: Head commit ID to merge
34 Commit string `json:"commit" cborgen:"commit"`
35 // repo: DID of source git repository
36 Repo string `json:"repo" cborgen:"repo"`
37}
38
39type GitMergeCommit_Input_Target struct {
40 // branch: Target branch to merge into
41 Branch string `json:"branch" cborgen:"branch"`
42 // repo: DID of target git repository
43 Repo string `json:"repo" cborgen:"repo"`
44}
45
46// GitMergeCommit calls the XRPC method "sh.tangled.git.mergeCommit".
47func GitMergeCommit(ctx context.Context, c util.LexClient, input *GitMergeCommit_Input) error {
48 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.git.mergeCommit", nil, input, nil); err != nil {
49 return err
50 }
51
52 return nil
53}