Files
diple/types.go
2026-07-27 14:04:08 +02:00

62 lines
1.1 KiB
Go

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
}