add reviewer assigning

This commit is contained in:
2026-07-29 09:49:51 +02:00
parent a82f5e7e9f
commit 1d90e364ee
17 changed files with 1475 additions and 47 deletions

View File

@@ -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