Documentation
¶
Index ¶
- type GithubDirect
- func (g *GithubDirect) AcceptPullRequest(ctx context.Context, owner string, name string, ...) (*ghapp.AcceptPullRequestOutput, error)
- func (g *GithubDirect) CreatePullRequest(ctx context.Context, _ string, _ string, in githubv4.CreatePullRequestInput) (*ghapp.CreatePullRequest, error)
- func (g *GithubDirect) DoesBranchExist(ctx context.Context, owner string, name string, ref string) (bool, error)
- func (g *GithubDirect) EveryOpenPullRequest(ctx context.Context, owner string, name string) (*ghapp.GraphQLPRQuery, error)
- func (g *GithubDirect) GetContents(ctx context.Context, owner string, name string, file string) (string, error)
- func (g *GithubDirect) GoGetAuthMethod() http.AuthMethod
- func (g *GithubDirect) MergePullRequest(ctx context.Context, _ string, name string, ref string, ...) (*ghapp.MergePullRequestOutput, error)
- func (g *GithubDirect) RepositoryInfo(ctx context.Context, owner string, name string) (*ghapp.RepositoryInfo, error)
- func (g *GithubDirect) Self(ctx context.Context) (*ghapp.UserInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubDirect ¶
type GithubDirect struct {
// contains filtered or unexported fields
}
func NewFromConfig ¶
func NewFromConfig(ctx context.Context, cfg autobotcfg.GithubAppConfig, rt http2.RoundTripper, logger *zapctx.Logger) (*GithubDirect, error)
func (*GithubDirect) AcceptPullRequest ¶
func (g *GithubDirect) AcceptPullRequest(ctx context.Context, owner string, name string, in githubv4.AddPullRequestReviewInput) (*ghapp.AcceptPullRequestOutput, error)
func (*GithubDirect) CreatePullRequest ¶
func (g *GithubDirect) CreatePullRequest(ctx context.Context, _ string, _ string, in githubv4.CreatePullRequestInput) (*ghapp.CreatePullRequest, error)
func (*GithubDirect) DoesBranchExist ¶
func (*GithubDirect) EveryOpenPullRequest ¶
func (g *GithubDirect) EveryOpenPullRequest(ctx context.Context, owner string, name string) (*ghapp.GraphQLPRQuery, error)
func (*GithubDirect) GetContents ¶
func (*GithubDirect) GoGetAuthMethod ¶
func (g *GithubDirect) GoGetAuthMethod() http.AuthMethod
func (*GithubDirect) MergePullRequest ¶
func (g *GithubDirect) MergePullRequest(ctx context.Context, _ string, name string, ref string, in githubv4.MergePullRequestInput) (*ghapp.MergePullRequestOutput, error)
func (*GithubDirect) RepositoryInfo ¶
func (g *GithubDirect) RepositoryInfo(ctx context.Context, owner string, name string) (*ghapp.RepositoryInfo, error)
Click to show internal directories.
Click to hide internal directories.