Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubClientFactory ¶
type GitHubClientFactory struct { Initialized bool REST *github.Client GraphQL *githubv4.Client TokenProvider *TokenProvider Name string AppID int64 InstallationID int64 PrivateKeyFile string // Token is the personal access token. Not an app token or an access token. // An access token will provided via TokenProvider. Token string GitHubAPIEndpoint string GitHubGraphQLEndpoint string CACertFile string // contains filtered or unexported fields }
func NewGitHubClientFactory ¶
func NewGitHubClientFactory(name string, requiredCredential bool) *GitHubClientFactory
func (*GitHubClientFactory) Flags ¶
func (g *GitHubClientFactory) Flags(fs *cli.FlagSet)
func (*GitHubClientFactory) Init ¶
func (g *GitHubClientFactory) Init() error
func (*GitHubClientFactory) PFlags ¶
func (g *GitHubClientFactory) PFlags(fs *pflag.FlagSet)
type Mock ¶
type Mock struct { Repositories map[string]*Repository // contains filtered or unexported fields }
func (*Mock) RegisterResponder ¶
func (m *Mock) RegisterResponder(tr *httpmock.MockTransport)
func (*Mock) RegisteredTransport ¶
func (m *Mock) RegisteredTransport() *httpmock.MockTransport
func (*Mock) Repository ¶
func (m *Mock) Repository(name string) *Repository
type PullRequest ¶
type PullRequest struct { github.PullRequest Comments []*github.PullRequestComment }
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) AssertPullRequest ¶
func (r *Repository) AssertPullRequest(t *testing.T, number int) *PullRequest
func (*Repository) GetPullRequest ¶
func (r *Repository) GetPullRequest(num int) *PullRequest
func (*Repository) NextIndex ¶
func (r *Repository) NextIndex() int
func (*Repository) PullRequests ¶
func (r *Repository) PullRequests(pullRequests ...*github.PullRequest)
type TokenProvider ¶
type TokenProvider struct {
// contains filtered or unexported fields
}
type Transport ¶
type Transport struct { http.RoundTripper // contains filtered or unexported fields }
func NewTransport ¶
func NewTransport(tr http.RoundTripper, tokenProvider *TokenProvider) *Transport
func NewTransportWithApp ¶
func NewTransportWithApp(tr http.RoundTripper, app *App) *Transport
Click to show internal directories.
Click to hide internal directories.