ikurotime / gitgud

public
main / internal/domain/pullrequest.go
610 B · Go Raw
 1package domain
 2
 3import "time"
 4
 5type PRState string
 6
 7const (
 8	PROpen   PRState = "open"
 9	PRMerged PRState = "merged"
10	PRClosed PRState = "closed"
11)
12
13type PullRequest struct {
14	ID         int64
15	RepoID     int64
16	Number     int
17	AuthorID   int64
18	AuthorName string
19	Title      string
20	Body       string
21	BaseBranch string
22	HeadBranch string
23	State      PRState
24	CreatedAt  time.Time
25}
26
27type PRComment struct {
28	ID         int64
29	PRID       int64
30	AuthorID   int64
31	AuthorName string
32	Body       string
33	CreatedAt  time.Time
34}
35
36type Comparison struct {
37	Commits   []Commit
38	Files     []FileDiff
39	Mergeable bool
40}