Add auto-merge setting and merge now functionality
This commit is contained in:
87
types.go
87
types.go
@@ -21,41 +21,46 @@ type PullRequest struct {
|
||||
|
||||
type PRDetails struct {
|
||||
PullRequest
|
||||
Body string
|
||||
CreatedAt time.Time
|
||||
BaseRef string
|
||||
HeadRef string
|
||||
Mergeable string
|
||||
MergeState string
|
||||
ConflictFiles []string
|
||||
ConflictFileError string
|
||||
Assignees []string
|
||||
Reviewers []Reviewer
|
||||
Labels []string
|
||||
Milestone string
|
||||
Additions int
|
||||
Deletions int
|
||||
ChangedFiles int
|
||||
CommitCount int
|
||||
CommentCount int
|
||||
HeadOID string
|
||||
BaseOID string
|
||||
RepositoryURL string
|
||||
CheckState string
|
||||
Checks []Check
|
||||
ReviewDecision string
|
||||
Conversation []PRComment
|
||||
Reviews []ReviewSummary
|
||||
Permissions ViewerPermissions
|
||||
Requirements MergeRequirements
|
||||
Threads []ReviewThread
|
||||
ThreadsTruncated bool
|
||||
Timeline []TimelineEvent
|
||||
DataIssues []DataIssue
|
||||
Rulesets []Ruleset
|
||||
MergeQueue *MergeQueue
|
||||
FromCache bool
|
||||
CachedAt time.Time
|
||||
Body string
|
||||
CreatedAt time.Time
|
||||
BaseRef string
|
||||
HeadRef string
|
||||
Mergeable string
|
||||
MergeState string
|
||||
State string
|
||||
Merged bool
|
||||
MergedAt time.Time
|
||||
AutoMerge *AutoMergeRequest
|
||||
AllowedMergeMethods []string
|
||||
ConflictFiles []string
|
||||
ConflictFileError string
|
||||
Assignees []string
|
||||
Reviewers []Reviewer
|
||||
Labels []string
|
||||
Milestone string
|
||||
Additions int
|
||||
Deletions int
|
||||
ChangedFiles int
|
||||
CommitCount int
|
||||
CommentCount int
|
||||
HeadOID string
|
||||
BaseOID string
|
||||
RepositoryURL string
|
||||
CheckState string
|
||||
Checks []Check
|
||||
ReviewDecision string
|
||||
Conversation []PRComment
|
||||
Reviews []ReviewSummary
|
||||
Permissions ViewerPermissions
|
||||
Requirements MergeRequirements
|
||||
Threads []ReviewThread
|
||||
ThreadsTruncated bool
|
||||
Timeline []TimelineEvent
|
||||
DataIssues []DataIssue
|
||||
Rulesets []Ruleset
|
||||
MergeQueue *MergeQueue
|
||||
FromCache bool
|
||||
CachedAt time.Time
|
||||
}
|
||||
|
||||
type DataIssue struct {
|
||||
@@ -82,6 +87,17 @@ type PullRequestMetadata struct {
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type AutoMergeRequest struct {
|
||||
MergeMethod string
|
||||
EnabledBy string
|
||||
EnabledAt time.Time
|
||||
}
|
||||
|
||||
type PullRequestMergeResult struct {
|
||||
Merged bool
|
||||
MergedAt time.Time
|
||||
}
|
||||
|
||||
type RepositoryBranch struct {
|
||||
Name string
|
||||
UpdatedAt time.Time
|
||||
@@ -158,6 +174,7 @@ type ViewerPermissions struct {
|
||||
CanReact bool
|
||||
CanSubscribe bool
|
||||
CanEnableMerge bool
|
||||
CanDisableMerge bool
|
||||
}
|
||||
|
||||
type MergeRequirements struct {
|
||||
|
||||
Reference in New Issue
Block a user