githubclient

package
v0.0.0-...-4f0d0f2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubClient

type GithubClient struct {
	Client *github.Client
}

func NewClient

func NewClient(accessToken string) *GithubClient

NewClient is the constructor method for the GitHub client wrapper

func (*GithubClient) GetAllPullRequestsForMonth

func (ghc *GithubClient) GetAllPullRequestsForMonth(ctx context.Context, owner string, repo string, month time.Month) ([]*github.Issue, error)

GetAllPullRequests - used for the monthly report

func (*GithubClient) GetStaleFeatureRequests

func (ghc *GithubClient) GetStaleFeatureRequests(ctx context.Context, owner string, repo string, frLabel string) ([]*github.Issue, error)

GetStaleFeatureRequests returns a list of issues with the feature request label that are: - older than 60 days - have less than 5 positive reactions - have no cross referenced PR's

Jump to

Keyboard shortcuts

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