Documentation
¶
Index ¶
- func New(ctx context.Context, project string) scm.Provider
- type Github
- func (g *Github) GetPullRequest(repo, branch string) (*scm.PullRequest, error)
- func (g *Github) ListRepositories() ([]*scm.Repository, error)
- func (g *Github) MergePullRequest(repo, branch string, force bool) (*scm.PullRequest, error)
- func (g *Github) OpenPullRequest(repo, branch, title, description string, reviewers []string) (*scm.PullRequest, error)
- func (g *Github) UpdatePullRequest(repo, branch, title, description string, reviewers []string, ...) (*scm.PullRequest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Github ¶
type Github struct {
// contains filtered or unexported fields
}
func (*Github) GetPullRequest ¶
func (g *Github) GetPullRequest(repo, branch string) (*scm.PullRequest, error)
GetPullRequest retrieves a pull request by repository name and source branch.
func (*Github) ListRepositories ¶
func (g *Github) ListRepositories() ([]*scm.Repository, error)
ListRepositories lists all repositories in the specified project. Supports both organization and user repositories.
func (*Github) MergePullRequest ¶
func (*Github) OpenPullRequest ¶
func (g *Github) OpenPullRequest(repo, branch, title, description string, reviewers []string) (*scm.PullRequest, error)
OpenPullRequest opens a new pull request in the specified repository.
func (*Github) UpdatePullRequest ¶
func (g *Github) UpdatePullRequest(repo, branch, title, description string, reviewers []string, appendReviewers bool) (*scm.PullRequest, error)
UpdatePullRequest updates an existing pull request.
Click to show internal directories.
Click to hide internal directories.