forked from
tangled.org/core
Monorepo for Tangled
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.repo.forkSync
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 RepoForkSyncNSID = "sh.tangled.repo.forkSync"
15)
16
17// RepoForkSync_Input is the input argument to a sh.tangled.repo.forkSync call.
18type RepoForkSync_Input struct {
19 // branch: Branch to sync
20 Branch string `json:"branch" cborgen:"branch"`
21 // did: DID of the fork owner
22 Did string `json:"did" cborgen:"did"`
23 // name: Name of the forked repository
24 Name string `json:"name" cborgen:"name"`
25 // repo: DID of the repository
26 Repo *string `json:"repo,omitempty" cborgen:"repo,omitempty"`
27 // source: AT-URI of the source repository
28 Source string `json:"source" cborgen:"source"`
29}
30
31// RepoForkSync calls the XRPC method "sh.tangled.repo.forkSync".
32func RepoForkSync(ctx context.Context, c util.LexClient, input *RepoForkSync_Input) error {
33 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.forkSync", nil, input, nil); err != nil {
34 return err
35 }
36
37 return nil
38}