github

package
v0.0.0-...-09eb631 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustSetupGitHub

func MustSetupGitHub(cfg *core.Configuration)

Types

type GitHub

type GitHub struct {
	// contains filtered or unexported fields
}

func MustInitGitHub

func MustInitGitHub(cfg *core.Configuration) *GitHub

func (*GitHub) CreatePR

func (gh *GitHub) CreatePR(title, body, repoDir string) error

func (*GitHub) GetCodeOwners

func (gh *GitHub) GetCodeOwners() (owners OwnerMap, err error)

func (*GitHub) ListBranches

func (gh *GitHub) ListBranches(maxAge int) error

func (*GitHub) ListCodeOwners

func (gh *GitHub) ListCodeOwners() (core.Ownership, error)

func (*GitHub) ListReviewers

func (gh *GitHub) ListReviewers() (reviewers Reviewers, err error)

func (*GitHub) OpenCommit

func (gh *GitHub) OpenCommit(m *core.Manifest, commit *core.GitCommit) error

func (*GitHub) OpenCompareBranchPage

func (gh *GitHub) OpenCompareBranchPage(m *core.Manifest) error

func (*GitHub) OpenCompareCommitsPage

func (gh *GitHub) OpenCompareCommitsPage(m *core.Manifest, commit *core.GitCommit, ref string) error

func (*GitHub) OpenPR

func (gh *GitHub) OpenPR(m *core.Manifest, pr string) error

func (*GitHub) OpenPage

func (gh *GitHub) OpenPage(m *core.Manifest, p ...string) error

func (*GitHub) PopulateOwners

func (gh *GitHub) PopulateOwners(m *core.Manifest) error

func (*GitHub) SearchIssues

func (gh *GitHub) SearchIssues(issueType, role string, closed, openAll bool) error

type OwnerMap

type OwnerMap map[string][]string

type Reviewers

type Reviewers []string

Jump to

Keyboard shortcuts

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