sdk

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIssues

func GetIssues(client *gitea.Client, owner, repo string, opts gitea.ListIssueOption) ([]*gitea.Issue, error)

GetIssues returns all matching Issues from a Gitea instance

func GetPulls

func GetPulls(client *gitea.Client, owner, repo string, opts gitea.ListPullRequestsOptions) ([]*gitea.PullRequest, error)

GetPulls returns all matching PRs from a Gitea instance

func GetReleases

func GetReleases(client *gitea.Client, owner, repo string, opts gitea.ListReleasesOptions) ([]*gitea.Release, error)

GetReleases returns all matching Releases from a Gitea instance

Types

type IssueFilter

type IssueFilter struct {
	Query     string
	State     State
	Author    string
	Labels    []string
	Milestone string
}

func NewIssueFilter

func NewIssueFilter(query string) *IssueFilter

func (*IssueFilter) Match

func (f *IssueFilter) Match(issue *gitea.Issue) bool

This function is high in cognitive complexity, however it is hopefully structured to be less painful than gocognit thinks

type State

type State int
const (
	None State = iota
	Open
	Closed
	Merged
)

Jump to

Keyboard shortcuts

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