types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Labels

type Labels []string

Labels for label parsing and manipulation

func ParseGithubLabels

func ParseGithubLabels(githubLabels []*github.Label) Labels

ParseGithubLabels parse label from github

func (*Labels) AddLabel

func (labels *Labels) AddLabel(label string)

AddLabel adds label

func (*Labels) DelLabel

func (labels *Labels) DelLabel(label string)

DelLabel dels label

func (Labels) HasLabel

func (labels Labels) HasLabel(label string) bool

HasLabel in labels

func (*Labels) Scan

func (labels *Labels) Scan(src interface{}) error

Scan implements Scanner interface

func (Labels) String

func (labels Labels) String() string

String trans labels into string

func (Labels) Value

func (labels Labels) Value() (driver.Value, error)

Value for storage into string

type PullRequest

type PullRequest struct {
	ID         int       `gorm:"column:id"`
	PullNumber int       `gorm:"column:pull_number"`
	Owner      string    `gorm:"column:owner"`
	Repo       string    `gorm:"column:repo"`
	Title      string    `gorm:"column:title"`
	Label      Labels    `gorm:"column:label"`
	Merge      bool      `gorm:"column:merge"`
	CreatedAt  time.Time `gorm:"column:created_at"`
}

PullRequest struct

type Repo

type Repo struct {
	Owner string
	Repo  string
}

Repo struct

func (*Repo) GetOwner

func (r *Repo) GetOwner() string

GetOwner gets owner

func (*Repo) GetRepo

func (r *Repo) GetRepo() string

GetRepo gets repo name

Jump to

Keyboard shortcuts

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