add reviewer assigning
This commit is contained in:
27
types.go
27
types.go
@@ -37,6 +37,7 @@ type PRDetails struct {
|
||||
ConflictFileError string
|
||||
Assignees []string
|
||||
Reviewers []Reviewer
|
||||
RequestedReviewers []string
|
||||
Labels []string
|
||||
Milestone string
|
||||
Additions int
|
||||
@@ -83,6 +84,8 @@ type PullRequestMetadata struct {
|
||||
Title string
|
||||
Body string
|
||||
BaseRef string
|
||||
Reviewers []string
|
||||
Assignees []string
|
||||
Mergeable string
|
||||
MergeState string
|
||||
UpdatedAt time.Time
|
||||
@@ -105,6 +108,29 @@ type RepositoryBranch struct {
|
||||
IsDefault bool
|
||||
}
|
||||
|
||||
type RepositoryUser struct {
|
||||
ID string
|
||||
Login string
|
||||
Name string
|
||||
CanReview bool
|
||||
CanAssign bool
|
||||
RecentCommits int
|
||||
RecentAdditions int
|
||||
LastContributionAt time.Time
|
||||
}
|
||||
|
||||
type PullRequestPeopleUpdate struct {
|
||||
CurrentReviewers []string
|
||||
CurrentAssignees []string
|
||||
Reviewers []string
|
||||
Assignees []string
|
||||
}
|
||||
|
||||
type PullRequestPeople struct {
|
||||
Reviewers []string
|
||||
Assignees []string
|
||||
}
|
||||
|
||||
type Check struct {
|
||||
ID string
|
||||
Name string
|
||||
@@ -169,6 +195,7 @@ type ReviewSummary struct {
|
||||
type ViewerPermissions struct {
|
||||
Repository string
|
||||
CanUpdatePR bool
|
||||
CanAssign bool
|
||||
CanResolveAny bool
|
||||
CanUnresolveAny bool
|
||||
CanReplyAny bool
|
||||
|
||||
Reference in New Issue
Block a user