Documentation
¶
Index ¶
- type Github
- func (g Github) CreatePullRequest(ctx context.Context, repo domain.Repository, newPR domain.NewPullRequest) error
- func (g Github) GetPullRequestStatuses(ctx context.Context, orgName, branchName string) ([]domain.PullRequest, error)
- func (g Github) GetRepositories(ctx context.Context, orgName string) ([]domain.Repository, error)
- func (g Github) MergePullRequest(ctx context.Context, pr domain.PullRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Github ¶
type Github struct {
// contains filtered or unexported fields
}
Github contain github configuration
func (Github) CreatePullRequest ¶
func (g Github) CreatePullRequest(ctx context.Context, repo domain.Repository, newPR domain.NewPullRequest) error
CreatePullRequest creates a pull request
func (Github) GetPullRequestStatuses ¶
func (g Github) GetPullRequestStatuses(ctx context.Context, orgName, branchName string) ([]domain.PullRequest, error)
GetPullRequestStatuses gets the statuses of all pull requests of with a specific branch name in an organization
func (Github) GetRepositories ¶
GetRepositories fetches repositories from and organization
func (Github) MergePullRequest ¶
Click to show internal directories.
Click to hide internal directories.