models

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubCommit

type GithubCommit struct {
	Sha            string `gorm:"primaryKey"`
	RepositoryId   int    `gorm:"index"`
	AuthorName     string
	AuthorEmail    string
	AuthoredDate   time.Time
	CommitterName  string
	CommitterEmail string
	CommittedDate  time.Time
	Message        string
	Url            string
	Additions      int
	Deletions      int

	models.NoPKModel
}

type GithubIssue

type GithubIssue struct {
	GithubId        int `gorm:"primaryKey"`
	Number          int `gorm:"index"`
	State           string
	Title           string
	Body            string
	Priority        string
	Type            string
	Status          string
	Assignee        string
	LeadTimeMinutes uint
	ClosedAt        sql.NullTime
	GithubCreatedAt time.Time
	GithubUpdatedAt time.Time

	models.NoPKModel
}

type GithubIssueComment added in v0.3.0

type GithubIssueComment struct {
	GithubId        int `gorm:"primaryKey"`
	IssueId         int `gorm:"index"` // This value links to pull request
	Body            string
	AuthorUsername  string
	GithubCreatedAt time.Time

	models.NoPKModel
}

type GithubIssueEvent added in v0.3.0

type GithubIssueEvent struct {
	GithubId        int `gorm:"primaryKey"`
	IssueId         int `gorm:"index"` // This value links to pull request
	Type            string
	AuthorUsername  string
	GithubCreatedAt time.Time

	models.NoPKModel
}

type GithubIssueLabel added in v0.3.0

type GithubIssueLabel struct {
	GithubId    int `gorm:"primaryKey"`
	Name        string
	Description string
	Color       string

	models.NoPKModel
}

type GithubIssueLabelIssue added in v0.3.0

type GithubIssueLabelIssue struct {
	IssueLabelId int `gorm:"index"`
	IssueId      int `gorm:"index"`
	models.NoPKModel
}

type GithubPullRequest

type GithubPullRequest struct {
	GithubId        int `gorm:"primaryKey"`
	RepositoryId    int `gorm:"index"`
	Number          int `gorm:"index"` // This number is used in GET requests to the API associated to reviewers / comments / etc.
	State           string
	Title           string
	GithubCreatedAt time.Time
	ClosedAt        sql.NullTime
	// In order to get the following fields, we need to collect PRs individually from GitHub
	Additions      int
	Deletions      int
	Comments       int
	Commits        int
	ReviewComments int
	Merged         bool
	MergedAt       sql.NullTime

	models.NoPKModel
}

type GithubPullRequestComment

type GithubPullRequestComment struct {
	GithubId        int `gorm:"primaryKey"`
	PullRequestId   int `gorm:"index"` // This value links to pull request
	Body            string
	AuthorUsername  string
	GithubCreatedAt time.Time

	models.NoPKModel
}

type GithubPullRequestCommit

type GithubPullRequestCommit struct {
	Sha            string `gorm:"primaryKey"`
	PullRequestId  int    `gorm:"index"` // This value links to pull request
	AuthorName     string
	AuthorEmail    string
	AuthoredDate   time.Time
	CommitterName  string
	CommitterEmail string
	CommittedDate  time.Time
	Message        string
	Url            string

	models.NoPKModel
}

type GithubPullRequestCommitPullRequest

type GithubPullRequestCommitPullRequest struct {
	PullRequestCommitSha string `gorm:"index"`
	PullRequestId        int    `gorm:"index"`
	models.NoPKModel
}

type GithubRepository

type GithubRepository struct {
	GithubId int `gorm:"primaryKey"`
	Name     string
	HTMLUrl  string

	models.NoPKModel
}

type GithubReviewer

type GithubReviewer struct {
	GithubId      int `gorm:"primaryKey"`
	Login         string
	PullRequestId int

	models.NoPKModel
}

Jump to

Keyboard shortcuts

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