// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package org_tangled // schema: org.tangled.temp.git.mergeCommit import ( "context" "github.com/bluesky-social/indigo/lex/util" shtangledtypes "tangled.org/core/api/tangled" ) const ( TempGitMergeCommitNSID = "org.tangled.temp.git.mergeCommit" ) // TempGitMergeCommit_Input is the input argument to a org.tangled.temp.git.mergeCommit call. type TempGitMergeCommit_Input struct { // mergeCommit: Merge commit content. Used when merge commit is created. MergeCommit *TempGitMergeCommit_MergeCommitContent `json:"mergeCommit,omitempty" cborgen:"mergeCommit,omitempty"` Source *TempGitMergeCommit_Source `json:"source" cborgen:"source"` Style string `json:"style" cborgen:"style"` Target *TempGitMergeCommit_Target `json:"target" cborgen:"target"` } // TempGitMergeCommit_MergeCommitContent is a "mergeCommitContent" in the org.tangled.temp.git.mergeCommit schema. // // Merge commit content. Used when merge commit is created. type TempGitMergeCommit_MergeCommitContent struct { Author *shtangledtypes.GitDefs_Signature `json:"author,omitempty" cborgen:"author,omitempty"` Message *string `json:"message,omitempty" cborgen:"message,omitempty"` } // TempGitMergeCommit_Source is a "source" in the org.tangled.temp.git.mergeCommit schema. type TempGitMergeCommit_Source struct { // commit: Head commit ID to merge Commit string `json:"commit" cborgen:"commit"` // repo: DID of source git repository Repo string `json:"repo" cborgen:"repo"` } // TempGitMergeCommit_Target is a "target" in the org.tangled.temp.git.mergeCommit schema. type TempGitMergeCommit_Target struct { // branch: Target branch to merge into Branch string `json:"branch" cborgen:"branch"` // commit: Head commit ID of target branch Commit string `json:"commit" cborgen:"commit"` // repo: DID of target git repository Repo string `json:"repo" cborgen:"repo"` } // TempGitMergeCommit calls the XRPC method "org.tangled.temp.git.mergeCommit". func TempGitMergeCommit(ctx context.Context, c util.LexClient, input *TempGitMergeCommit_Input) error { if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.git.mergeCommit", nil, input, nil); err != nil { return err } return nil }