Add separate type for PullRequest.Mergeable field
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
This commit is contained in:
parent
1a6f59820e
commit
feb5aa55b9
1 changed files with 9 additions and 1 deletions
|
|
@ -16,6 +16,14 @@ type PullRequestAndTotalCount struct {
|
|||
SearchCapped bool
|
||||
}
|
||||
|
||||
type PullRequestMergeable string
|
||||
|
||||
const (
|
||||
PullRequestMergeableConflicting PullRequestMergeable = "CONFLICTING"
|
||||
PullRequestMergeableMergeable PullRequestMergeable = "MERGEABLE"
|
||||
PullRequestMergeableUnknown PullRequestMergeable = "UNKNOWN"
|
||||
)
|
||||
|
||||
type PullRequest struct {
|
||||
ID string
|
||||
Number int
|
||||
|
|
@ -27,7 +35,7 @@ type PullRequest struct {
|
|||
HeadRefName string
|
||||
HeadRefOid string
|
||||
Body string
|
||||
Mergeable string
|
||||
Mergeable PullRequestMergeable
|
||||
Additions int
|
||||
Deletions int
|
||||
ChangedFiles int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue