forked from
tangled.org/core
fork
Configure Feed
Select the types of activity you want to include in your feed.
this repo has no description
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.forkStatus
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 RepoForkStatusNSID = "sh.tangled.repo.forkStatus"
15)
16
17// RepoForkStatus_Input is the input argument to a sh.tangled.repo.forkStatus call.
18type RepoForkStatus_Input struct {
19 // branch: Branch to check status for
20 Branch string `json:"branch" cborgen:"branch"`
21 // did: DID of the fork owner
22 Did string `json:"did" cborgen:"did"`
23 // hiddenRef: Hidden ref to use for comparison
24 HiddenRef string `json:"hiddenRef" cborgen:"hiddenRef"`
25 // name: Name of the forked repository
26 Name string `json:"name" cborgen:"name"`
27 // source: Source repository URL
28 Source string `json:"source" cborgen:"source"`
29}
30
31// RepoForkStatus_Output is the output of a sh.tangled.repo.forkStatus call.
32type RepoForkStatus_Output struct {
33 // status: Fork status: 0=UpToDate, 1=FastForwardable, 2=Conflict, 3=MissingBranch
34 Status int64 `json:"status" cborgen:"status"`
35}
36
37// RepoForkStatus calls the XRPC method "sh.tangled.repo.forkStatus".
38func RepoForkStatus(ctx context.Context, c util.LexClient, input *RepoForkStatus_Input) (*RepoForkStatus_Output, error) {
39 var out RepoForkStatus_Output
40 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.forkStatus", nil, input, &out); err != nil {
41 return nil, err
42 }
43
44 return &out, nil
45}