initial working read only state
This commit is contained in:
61
types.go
Normal file
61
types.go
Normal file
@@ -0,0 +1,61 @@
|
||||
package main
|
||||
|
||||
import "time"
|
||||
|
||||
type PullRequest struct {
|
||||
ID string
|
||||
Number int
|
||||
Title string
|
||||
URL string
|
||||
Author string
|
||||
IsDraft bool
|
||||
UpdatedAt time.Time
|
||||
ReviewCount int
|
||||
ViewerAuthored bool
|
||||
}
|
||||
|
||||
type PRDetails struct {
|
||||
PullRequest
|
||||
Body string
|
||||
BaseRef string
|
||||
HeadRef string
|
||||
Mergeable string
|
||||
Assignees []string
|
||||
Reviewers []Reviewer
|
||||
CheckState string
|
||||
ReviewDecision string
|
||||
Threads []ReviewThread
|
||||
ThreadsTruncated bool
|
||||
}
|
||||
|
||||
type Reviewer struct {
|
||||
Login string
|
||||
State string
|
||||
}
|
||||
|
||||
type ReviewThread struct {
|
||||
ID string
|
||||
Path string
|
||||
Line int
|
||||
StartLine int
|
||||
DiffSide string
|
||||
IsResolved bool
|
||||
IsOutdated bool
|
||||
IsTruncated bool
|
||||
Comments []ReviewComment
|
||||
}
|
||||
|
||||
type ReviewComment struct {
|
||||
ID string
|
||||
Author string
|
||||
Body string
|
||||
DiffHunk string
|
||||
Line int
|
||||
StartLine int
|
||||
OriginalLine int
|
||||
OriginalStartLine int
|
||||
OriginalCommitOID string
|
||||
Outdated bool
|
||||
CreatedAt time.Time
|
||||
URL string
|
||||
}
|
||||
Reference in New Issue
Block a user