Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanTitle ¶ added in v1.0.0
CleanTitle returns the string with spaces trimmed and the first rune title-cased
Types ¶
type Contributor ¶
Contributor is a project contributor
type ContributorList ¶
type ContributorList []Contributor
ContributorList is a slice of Contributors that can be sorted
func (ContributorList) Len ¶
func (cl ContributorList) Len() int
Len is the length of the ContributorList
func (ContributorList) Less ¶
func (cl ContributorList) Less(i, j int) bool
Less determines whether a Contributor comes before another Contributor
func (ContributorList) Swap ¶
func (cl ContributorList) Swap(i, j int)
Swap swaps Contributors in a ContributorList
type GitHub ¶
GitHub defines a GitHub service
func (*GitHub) Contributors ¶
func (gh *GitHub) Contributors() (ContributorList, error)
Contributors returns a list of contributors from GitHub
type Gitea ¶
type Gitea struct { Milestone string GitTag string Token string BaseURL string Owner string Repo string Issues bool }
Gitea defines a Gitea service
func (*Gitea) Contributors ¶
func (ge *Gitea) Contributors() (ContributorList, error)
Contributors returns a list of contributors from Gitea
type Label ¶
type Label struct {
Name string
}
Label is the minimum information needed for a PR label
Click to show internal directories.
Click to hide internal directories.