Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct {
Repository string `gorm:"primary_key;index:repo_created"`
ID string `gorm:"primary_key"`
IssueID string
Body string `gorm:"type:text"`
User string
CommentCreatedAt time.Time `gorm:"index:repo_created"`
CommentUpdatedAt time.Time
PullRequest bool
}
Comment is either a pull-request comment or an issue comment.
type Issue ¶
type Issue struct {
Repository string `gorm:"primary_key"`
ID string `gorm:"primary_key"`
Labels []Label
Assignees []Assignee
Title string `gorm:"type:varchar(1000)"`
Body string `gorm:"type:text"`
User string
State string
Comments int
IsPR bool
IssueClosedAt *time.Time
IssueCreatedAt time.Time
IssueUpdatedAt time.Time
}
Issue is a pull-request or issue. Its format fits into the ORM
type IssueEvent ¶
type IssueEvent struct {
Repository string `gorm:"primary_key;index:repo_created"`
ID string `gorm:"primary_key"`
Label *string
Event string
EventCreatedAt time.Time `gorm:"index:repo_created"`
IssueID string
Assignee *string
Actor *string
}
IssueEvent is an event associated to a specific issued. It's format fits into the ORM
type MySQLConfig ¶
MySQLConfig is specific to this database
func (*MySQLConfig) AddFlags ¶
func (config *MySQLConfig) AddFlags(cmd *cobra.Command)
AddFlags parses options for database configuration
func (*MySQLConfig) CreateDatabase ¶
func (config *MySQLConfig) CreateDatabase() (*gorm.DB, error)
CreateDatabase for the MySQLConfig
Click to show internal directories.
Click to hide internal directories.