pr

package
v0.0.0-...-95f6ed8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 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 Author

type Author struct {
	Login string `json:"login"`
}

type BaseRef

type BaseRef struct {
	BranchProtectionRule BranchProtectionRule `json:"branchProtectionRule"`
}

type BranchProtectionRule

type BranchProtectionRule struct {
	RequiredStatusCheckContexts []string `json:"requiredStatusCheckContexts"`
}

type ByIssuesString

type ByIssuesString []Issue

func (ByIssuesString) Len

func (p ByIssuesString) Len() int

func (ByIssuesString) Less

func (p ByIssuesString) Less(i, j int) bool

func (ByIssuesString) Swap

func (p ByIssuesString) Swap(i, j int)

type ByPullsString

type ByPullsString []PullRequest

func (ByPullsString) Len

func (p ByPullsString) Len() int

func (ByPullsString) Less

func (p ByPullsString) Less(i, j int) bool

func (ByPullsString) Swap

func (p ByPullsString) Swap(i, j int)

type Comments

type Comments struct {
	TotalCount int `json:"totalCount"`
}

type Commit

type Commit struct {
	StatusCheckRollup StatusCheckRollup `json:"statusCheckRollup"`
}

type CommitEntry

type CommitEntry struct {
	Commit Commit `json:"commit"`
}

type Commits

type Commits struct {
	Nodes []CommitEntry `json:"nodes"`
}

type Context

type Context struct {
	State       string `json:"state"`
	Description string `json:"description"`
	Context     string `json:"context"`
	Conclusion  string `json:"conclusion"`
	Name        string `json:"name"`
	Title       string `json:"title"`
}

type Issue

type Issue struct {
	Number     int        `json:"number"`
	Title      string     `json:"title"`
	URL        string     `json:"url"`
	CreatedAt  time.Time  `json:"createdAt"`
	Author     Author     `json:"author"`
	Labels     Labels     `json:"labels"`
	Closed     bool       `json:"closed"`
	Repository Repository `json:"repository"`
	Comments   Comments   `json:"comments"`
}

func (*Issue) ColoredTitle

func (p *Issue) ColoredTitle() string

func (*Issue) Display

func (p *Issue) Display() bool

func (*Issue) HasLabel

func (p *Issue) HasLabel(name string) bool

func (*Issue) IssueString

func (p *Issue) IssueString() string

func (*Issue) LabelsString

func (p *Issue) LabelsString() string

func (*Issue) TrimmedTitle

func (p *Issue) TrimmedTitle() string

type Label

type Label struct {
	Name string `json:"name"`
}

type Labels

type Labels struct {
	Nodes []Label `json:"nodes"`
}

type PullRequest

type PullRequest struct {
	Number         int        `json:"number"`
	Title          string     `json:"title"`
	URL            string     `json:"url"`
	Mergeable      string     `json:"mergeable"`
	CreatedAt      time.Time  `json:"createdAt"`
	Author         Author     `json:"author"`
	Labels         Labels     `json:"labels"`
	Commits        Commits    `json:"commits"`
	Closed         bool       `json:"closed"`
	Repository     Repository `json:"repository"`
	Comments       Comments   `json:"comments"`
	ReviewDecision string     `json:"reviewDecision"`
	BaseRef        BaseRef    `json:"baseRef"`
}

func (*PullRequest) ColoredReviewDecision

func (p *PullRequest) ColoredReviewDecision() string

func (*PullRequest) ColoredTitle

func (p *PullRequest) ColoredTitle() string

func (*PullRequest) ContextsString

func (p *PullRequest) ContextsString() string

func (*PullRequest) Display

func (p *PullRequest) Display() bool

func (*PullRequest) FailedContexts

func (p *PullRequest) FailedContexts() []Context

func (*PullRequest) HasContext

func (p *PullRequest) HasContext(name string) bool

func (*PullRequest) HasLabel

func (p *PullRequest) HasLabel(name string) bool

func (*PullRequest) LabelsString

func (p *PullRequest) LabelsString() string

func (*PullRequest) MergeableString

func (p *PullRequest) MergeableString() string

func (*PullRequest) PullsString

func (p *PullRequest) PullsString() string

func (*PullRequest) TrimmedTitle

func (p *PullRequest) TrimmedTitle() string

type Repository

type Repository struct {
	NameWithOwner string `json:"nameWithOwner"`
}

type StatusCheckRollup

type StatusCheckRollup struct {
	State    string        `json:"state"`
	Contexts StatusContext `json:"contexts"`
}

type StatusContext

type StatusContext struct {
	Nodes []Context `json:"nodes"`
}

Jump to

Keyboard shortcuts

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