model

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateOpen           = "open"
	StateClosed         = "closed"
	MergeableStateClean = "clean"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Issue

type Issue struct {
	RepoOwner string
	RepoName  string
	Username  string
	State     string
	Labels    StringArray
	Number    int
}

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

func (StringArray) Value added in v0.5.2

func (sa StringArray) Value() (driver.Value, error)

Value converts StringArray to database value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL