Documentation
¶
Index ¶
Constants ¶
View Source
const ( StateOpen = "open" StateClosed = "closed" MergeableStateClean = "clean" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PullRequest ¶
type PullRequest struct {
Merged *bool
MaintainerCanModify *bool
MilestoneNumber *int64
MilestoneTitle *string
CreatedAt time.Time
RepoOwner string
RepoName string
FullName string
Username string
Ref string
Sha string
State string
BuildStatus string
BuildConclusion string
BuildLink string
URL string
MergeCommitSHA string `db:"-"`
Labels StringArray
Number int
}
func (*PullRequest) GetMaintainerCanModify ¶ added in v0.5.8
func (pr *PullRequest) GetMaintainerCanModify() bool
GetMaintainerCanModify returns the MaintainerCanModify field if it's non-nil, zero value otherwise.
func (*PullRequest) GetMerged ¶ added in v0.5.8
func (pr *PullRequest) GetMerged() bool
GetMerged returns the Merged field if it's non-nil, zero value otherwise.
func (*PullRequest) GetMilestoneNumber ¶ added in v0.5.8
func (pr *PullRequest) GetMilestoneNumber() int64
GetMilestoneNumber returns the MilestoneNumber field if it's non-nil, zero value otherwise.
func (*PullRequest) GetMilestoneTitle ¶ added in v0.5.8
func (pr *PullRequest) GetMilestoneTitle() string
GetMilestoneTitle returns the MilestoneTitle field if it's non-nil, zero value otherwise.
type StringArray ¶ added in v0.5.2
type StringArray []string
StringArray type to load and save []string in mysql column as json using sqlx
func (*StringArray) Scan ¶ added in v0.5.2
func (sa *StringArray) Scan(value interface{}) error
Scan converts database column value to StringArray
Click to show internal directories.
Click to hide internal directories.