···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.repo.tag
66+77+import (
88+ "bytes"
99+ "context"
1010+1111+ "github.com/bluesky-social/indigo/lex/util"
1212+)
1313+1414+const (
1515+ RepoTagNSID = "sh.tangled.repo.tag"
1616+)
1717+1818+// RepoTag calls the XRPC method "sh.tangled.repo.tag".
1919+//
2020+// repo: Repository identifier in format 'did:plc:.../repoName'
2121+// tag: Name of tag, such as v1.3.0
2222+func RepoTag(ctx context.Context, c util.LexClient, repo string, tag string) ([]byte, error) {
2323+ buf := new(bytes.Buffer)
2424+2525+ params := map[string]interface{}{}
2626+ params["repo"] = repo
2727+ params["tag"] = tag
2828+ if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.tag", params, nil, buf); err != nil {
2929+ return nil, err
3030+ }
3131+3232+ return buf.Bytes(), nil
3333+}
+2-14
api/tangled/repotree.go
···16161717// RepoTree_LastCommit is a "lastCommit" in the sh.tangled.repo.tree schema.
1818type RepoTree_LastCommit struct {
1919- Author *RepoTree_Signature `json:"author,omitempty" cborgen:"author,omitempty"`
2019 // hash: Commit hash
2120 Hash string `json:"hash" cborgen:"hash"`
2221 // message: Commit message
···2827// RepoTree_Output is the output of a sh.tangled.repo.tree call.
2928type RepoTree_Output struct {
3029 // dotdot: Parent directory path
3131- Dotdot *string `json:"dotdot,omitempty" cborgen:"dotdot,omitempty"`
3232- Files []*RepoTree_TreeEntry `json:"files" cborgen:"files"`
3333- LastCommit *RepoTree_LastCommit `json:"lastCommit,omitempty" cborgen:"lastCommit,omitempty"`
3030+ Dotdot *string `json:"dotdot,omitempty" cborgen:"dotdot,omitempty"`
3131+ Files []*RepoTree_TreeEntry `json:"files" cborgen:"files"`
3432 // parent: The parent path in the tree
3533 Parent *string `json:"parent,omitempty" cborgen:"parent,omitempty"`
3634 // readme: Readme for this file tree
···4543 Contents string `json:"contents" cborgen:"contents"`
4644 // filename: Name of the readme file
4745 Filename string `json:"filename" cborgen:"filename"`
4848-}
4949-5050-// RepoTree_Signature is a "signature" in the sh.tangled.repo.tree schema.
5151-type RepoTree_Signature struct {
5252- // email: Author email
5353- Email string `json:"email" cborgen:"email"`
5454- // name: Author name
5555- Name string `json:"name" cborgen:"name"`
5656- // when: Author timestamp
5757- When string `json:"when" cborgen:"when"`
5846}
59476048// RepoTree_TreeEntry is a "treeEntry" in the sh.tangled.repo.tree schema.
-2
appview/db/profile.go
···453453 case models.VanityStatStarCount:
454454 query = `select count(id) from stars where subject_at like 'at://' || ? || '%'`
455455 args = append(args, did)
456456- case models.VanityStatNone:
457457- return 0, nil
458456 default:
459457 return 0, fmt.Errorf("invalid vanity stat kind: %s", stat)
460458 }
+1-1
appview/ingester.go
···317317 var stats [2]models.VanityStat
318318 for i, s := range record.Stats {
319319 if i < 2 {
320320- stats[i].Kind = models.ParseVanityStatKind(s)
320320+ stats[i].Kind = models.VanityStatKind(s)
321321 }
322322 }
323323
+1-24
appview/models/profile.go
···6060 VanityStatClosedIssueCount VanityStatKind = "closed-issue-count"
6161 VanityStatRepositoryCount VanityStatKind = "repository-count"
6262 VanityStatStarCount VanityStatKind = "star-count"
6363- VanityStatNone VanityStatKind = ""
6463)
65646666-func ParseVanityStatKind(s string) VanityStatKind {
6767- switch s {
6868- case "merged-pull-request-count":
6969- return VanityStatMergedPRCount
7070- case "closed-pull-request-count":
7171- return VanityStatClosedPRCount
7272- case "open-pull-request-count":
7373- return VanityStatOpenPRCount
7474- case "open-issue-count":
7575- return VanityStatOpenIssueCount
7676- case "closed-issue-count":
7777- return VanityStatClosedIssueCount
7878- case "repository-count":
7979- return VanityStatRepositoryCount
8080- case "star-count":
8181- return VanityStatStarCount
8282- default:
8383- return VanityStatNone
8484- }
8585-}
8686-8765func (v VanityStatKind) String() string {
8866 switch v {
8967 case VanityStatMergedPRCount:
···10078 return "Repositories"
10179 case VanityStatStarCount:
10280 return "Stars Received"
103103- default:
104104- return ""
10581 }
8282+ return ""
10683}
1078410885type VanityStat struct {