github

package
v0.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, project string) scm.Provider

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 (g *Github) MergePullRequest(repo, branch string, force bool) (*scm.PullRequest, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL