Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

core / api / tangled / repolistIssuesBy.go
1.4 kB 51 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.repo.listIssuesBy 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoListIssuesByNSID = "sh.tangled.repo.listIssuesBy" 15) 16 17// RepoListIssuesBy_Output is the output of a sh.tangled.repo.listIssuesBy call. 18type RepoListIssuesBy_Output struct { 19 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 20 Items []*RepoListIssues_IssueListItem `json:"items" cborgen:"items"` 21} 22 23// RepoListIssuesBy calls the XRPC method "sh.tangled.repo.listIssuesBy". 24// 25// cursor: Pagination cursor 26// order: Sort direction by createdAt. 27// state: Restrict to issues whose latest derived state matches. 28// subject: Actor DID whose issue authorings to list 29func RepoListIssuesBy(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, state string, subject string) (*RepoListIssuesBy_Output, error) { 30 var out RepoListIssuesBy_Output 31 32 params := map[string]interface{}{} 33 if cursor != "" { 34 params["cursor"] = cursor 35 } 36 if limit != 0 { 37 params["limit"] = limit 38 } 39 if order != "" { 40 params["order"] = order 41 } 42 if state != "" { 43 params["state"] = state 44 } 45 params["subject"] = subject 46 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.listIssuesBy", params, nil, &out); err != nil { 47 return nil, err 48 } 49 50 return &out, nil 51}