client

package
v0.0.0-...-6909b63 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: BSD-2-Clause Imports: 8 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

View Source
const MaxRetries = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type GH

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

func NewClient

func NewClient(org, accessToken string) *GH

func (*GH) GetAllMergedPRIssues

func (c *GH) GetAllMergedPRIssues(date time.Time) ([]github.Issue, error)

func (*GH) GetCommit

func (c *GH) GetCommit(repo, hash string) (*github.Commit, error)

func (*GH) GetMembers

func (c *GH) GetMembers(teamId int64) ([]*github.User, error)

func (*GH) GetOrgUsers

func (c *GH) GetOrgUsers() ([]*github.User, error)

func (*GH) GetPR

func (c *GH) GetPR(prNumber int, repo string) (*github.PullRequest, error)

func (*GH) GetPRCommits

func (c *GH) GetPRCommits(prNumber int, repo string) ([]*github.RepositoryCommit, error)

func (*GH) GetPRFiles

func (c *GH) GetPRFiles(prNumber int, repo string) ([]*github.CommitFile, error)

func (*GH) GetReviews

func (c *GH) GetReviews(prNumber int, repo string) ([]*github.PullRequestReview, error)

func (*GH) GetTeams

func (c *GH) GetTeams() ([]*github.Team, error)

func (*GH) GetTeamsByUser

func (c *GH) GetTeamsByUser() map[string][]string

func (*GH) GetUser

func (c *GH) GetUser(userLogin string) (*github.User, error)

Jump to

Keyboard shortcuts

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