Monorepo for Tangled
tangled.org
1package models
2
3import "github.com/bluesky-social/indigo/atproto/syntax"
4
5type RefKind int
6
7const (
8 RefKindIssue RefKind = iota
9 RefKindPull
10)
11
12func (k RefKind) String() string {
13 if k == RefKindIssue {
14 return "issues"
15 } else {
16 return "pulls"
17 }
18}
19
20// /@alice.com/cool-proj/issues/123
21// /@alice.com/cool-proj/issues/123#comment-3mleetx5lhz22
22type ReferenceLink struct {
23 Handle string
24 Repo string
25 Kind RefKind
26 SubjectId int
27 CommentRkey *syntax.RecordKey
28}
29
30type RichReferenceLink struct {
31 ReferenceLink
32 Title string
33 // reusing PullState for both issue & PR
34 State PullState
35}