models

package
v0.8.0-test1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitlabCommit

type GitlabCommit struct {
	Sha            string `gorm:"primaryKey;type:char(40)"`
	Title          string
	Message        string
	ShortId        string
	AuthorName     string
	AuthorEmail    string
	AuthoredDate   time.Time
	CommitterName  string
	CommitterEmail string
	CommittedDate  time.Time
	WebUrl         string
	Additions      int `gorm:"comment:Added lines of code"`
	Deletions      int `gorm:"comment:Deleted lines of code"`
	Total          int `gorm:"comment:Sum of added/deleted lines of code"`
	common.NoPKModel
}

type GitlabMergeRequest

type GitlabMergeRequest struct {
	GitlabId         int `gorm:"primaryKey"`
	Iid              int `gorm:"index"`
	ProjectId        int `gorm:"index"`
	State            string
	Title            string
	WebUrl           string
	UserNotesCount   int
	WorkInProgress   bool
	SourceBranch     string
	MergedAt         *time.Time
	GitlabCreatedAt  time.Time
	ClosedAt         *time.Time
	MergedByUsername string
	Description      string
	AuthorUsername   string
	FirstCommentTime *time.Time `gorm:"comment:Time when the first comment occurred"`
	ReviewRounds     int        `gorm:"comment:How many rounds of review this MR went through"`

	common.NoPKModel
}

type GitlabMergeRequestCommit

type GitlabMergeRequestCommit struct {
	CommitId       string `gorm:"primaryKey"`
	Title          string
	Message        string
	ShortId        string
	AuthorName     string
	AuthorEmail    string
	AuthoredDate   time.Time
	CommitterName  string
	CommitterEmail string
	CommittedDate  time.Time
	WebUrl         string
	common.NoPKModel
}

type GitlabMergeRequestCommitMergeRequest

type GitlabMergeRequestCommitMergeRequest struct {
	MergeRequestCommitId string `gorm:"primaryKey"`
	MergeRequestId       int    `gorm:"primaryKey;autoIncrement:false"`
	common.NoPKModel
}

type GitlabMergeRequestNote

type GitlabMergeRequestNote struct {
	GitlabId        int `gorm:"primaryKey"`
	MergeRequestId  int `gorm:"index"`
	MergeRequestIid int `gorm:"comment:Used in API requests ex. /api/merge_requests/<THIS_IID>"`
	NoteableType    string
	AuthorUsername  string
	Body            string
	GitlabCreatedAt time.Time
	Confidential    bool
	Resolvable      bool `gorm:"comment:Is or is not review comment"`
	System          bool `gorm:"comment:Is or is not auto-generated vs. human generated"`

	common.NoPKModel
}

type GitlabPipeline

type GitlabPipeline struct {
	GitlabId        int `gorm:"primaryKey"`
	ProjectId       int `gorm:"index"`
	GitlabCreatedAt time.Time
	Status          string
	Ref             string
	Sha             string
	WebUrl          string
	Duration        int
	StartedAt       *time.Time
	FinishedAt      *time.Time
	Coverage        string
	common.NoPKModel
}

type GitlabProject

type GitlabProject struct {
	GitlabId                int    `gorm:"primaryKey"`
	Name                    string `gorm:"type:varchar(255)"`
	Description             string
	DefaultBranch           string `gorm:"varchar(255)"`
	PathWithNamespace       string
	WebUrl                  string
	CreatorId               int
	Visibility              string
	OpenIssuesCount         int
	StarCount               int
	ForkedFromProjectId     int
	ForkedFromProjectWebUrl string

	CreatedDate time.Time
	UpdatedDate *time.Time
	common.NoPKModel
}

type GitlabProjectCommit added in v0.6.0

type GitlabProjectCommit struct {
	GitlabProjectId int    `gorm:"primaryKey"`
	CommitSha       string `gorm:"primaryKey;type:char(40)"`
}

type GitlabReviewer

type GitlabReviewer struct {
	GitlabId       int `gorm:"primaryKey"`
	MergeRequestId int `gorm:"index"`
	ProjectId      int `gorm:"index"`
	Name           string
	Username       string
	State          string
	AvatarUrl      string
	WebUrl         string
	common.NoPKModel
}

type GitlabTag added in v0.9.0

type GitlabTag struct {
	Name               string `gorm:"primaryKey;type:char(60)"`
	Message            string
	Target             string
	Protected          bool
	ReleaseDescription string
	common.NoPKModel
}

type GitlabUser added in v0.6.0

type GitlabUser struct {
	Email string `gorm:"primaryKey;type:varchar(255)"`
	Name  string `gorm:"type:varchar(255)"`
}

Jump to

Keyboard shortcuts

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