fork
Configure Feed
Select the types of activity you want to include in your feed.
Monorepo for Tangled
tangled.org
fork
Configure Feed
Select the types of activity you want to include in your feed.
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.repo.merge
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 RepoMergeNSID = "sh.tangled.repo.merge"
15)
16
17// RepoMerge_Input is the input argument to a sh.tangled.repo.merge call.
18type RepoMerge_Input struct {
19 // authorEmail: Author email for the merge commit
20 AuthorEmail *string `json:"authorEmail,omitempty" cborgen:"authorEmail,omitempty"`
21 // authorName: Author name for the merge commit
22 AuthorName *string `json:"authorName,omitempty" cborgen:"authorName,omitempty"`
23 // branch: Target branch to merge into
24 Branch string `json:"branch" cborgen:"branch"`
25 // commitBody: Additional commit message body
26 CommitBody *string `json:"commitBody,omitempty" cborgen:"commitBody,omitempty"`
27 // commitMessage: Merge commit message
28 CommitMessage *string `json:"commitMessage,omitempty" cborgen:"commitMessage,omitempty"`
29 // did: DID of the repository owner
30 Did string `json:"did" cborgen:"did"`
31 // name: Name of the repository
32 Name string `json:"name" cborgen:"name"`
33 // patch: Patch content to merge
34 Patch string `json:"patch" cborgen:"patch"`
35}
36
37// RepoMerge calls the XRPC method "sh.tangled.repo.merge".
38func RepoMerge(ctx context.Context, c util.LexClient, input *RepoMerge_Input) error {
39 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.merge", nil, input, nil); err != nil {
40 return err
41 }
42
43 return nil
44}