Documentation ¶
Index ¶
- type GitHubApiClient
- type GitHubApiClientImpl
- func (g *GitHubApiClientImpl) CheckPrIsForInfraAndCreatedByRenovate(ctx context.Context, org, repo string, prNum int) (bool, string, error)
- func (g *GitHubApiClientImpl) CreateIssueComment(ctx context.Context, org, repo string, prNum int, body string) error
- func (g *GitHubApiClientImpl) CreateLabels(ctx context.Context, org, repo string, prNum int, labels []string) error
- func (g *GitHubApiClientImpl) CreatePullRequest(ctx context.Context, org, repo, headBranch, baseBranch, title, body string) (prNum int, err error)
- func (g *GitHubApiClientImpl) DeleteBranch(ctx context.Context, org, repo, headBranch string) error
- func (g *GitHubApiClientImpl) GetPullRequestTitleAndChangedFilepaths(ctx context.Context, org, repo string, prNum int) (string, []string, error)
- func (g *GitHubApiClientImpl) HealthCheck() error
- func (g *GitHubApiClientImpl) UpdatePullRequestBody(ctx context.Context, org, repo string, prNum int, body string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubApiClient ¶
type GitHubApiClient interface { CheckPrIsForInfraAndCreatedByRenovate(ctx context.Context, org, repo string, prNum int) (bool, string, error) CreateIssueComment(ctx context.Context, org, repo string, prNum int, body string) error CreateLabels(ctx context.Context, org, repo string, prNum int, labels []string) error CreatePullRequest(ctx context.Context, org, repo, headBranch, baseBranch, title, body string) (prNum int, err error) DeleteBranch(ctx context.Context, org, repo, headBranch string) error GetPullRequestTitleAndChangedFilepaths(ctx context.Context, org, repo string, prNum int) (string, []string, error) HealthCheck() error UpdatePullRequestBody(ctx context.Context, org, repo string, prNum int, body string) error }
func NewGitHubApiClientImpl ¶
func NewGitHubApiClientImpl(token string) GitHubApiClient
type GitHubApiClientImpl ¶
type GitHubApiClientImpl struct {
// contains filtered or unexported fields
}
func (*GitHubApiClientImpl) CheckPrIsForInfraAndCreatedByRenovate ¶
func (*GitHubApiClientImpl) CreateIssueComment ¶
func (*GitHubApiClientImpl) CreateLabels ¶
func (*GitHubApiClientImpl) CreatePullRequest ¶
func (*GitHubApiClientImpl) DeleteBranch ¶
func (g *GitHubApiClientImpl) DeleteBranch(ctx context.Context, org, repo, headBranch string) error
func (*GitHubApiClientImpl) GetPullRequestTitleAndChangedFilepaths ¶
func (*GitHubApiClientImpl) HealthCheck ¶
func (g *GitHubApiClientImpl) HealthCheck() error
func (*GitHubApiClientImpl) UpdatePullRequestBody ¶
Click to show internal directories.
Click to hide internal directories.