github

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(token string) globalEntities.ForgeProvider

NewProvider creates a new GitHub provider with the given token.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider implements ForgeProvider, FileAccessProvider, and LocalGitAuthProvider for GitHub.

func (*Provider) AuthToken

func (p *Provider) AuthToken() string

func (*Provider) CloneURL

func (p *Provider) CloneURL(repo globalEntities.Repository) string

func (*Provider) ConfigureTransport

func (p *Provider) ConfigureTransport()

func (*Provider) CreateBranchWithChanges

func (p *Provider) CreateBranchWithChanges(
	ctx context.Context,
	repo globalEntities.Repository,
	input globalEntities.BranchInput,
) error

func (*Provider) DiscoverRepositories

func (p *Provider) DiscoverRepositories(
	ctx context.Context,
	org string,
) ([]globalEntities.Repository, error)

func (*Provider) GetAuthMethods

func (p *Provider) GetAuthMethods(_ string) []transport.AuthMethod

func (*Provider) GetFileContent

func (p *Provider) GetFileContent(
	ctx context.Context,
	repo globalEntities.Repository,
	path string,
) (string, error)

func (*Provider) GetPullRequestCheckStatus added in v0.6.0

func (p *Provider) GetPullRequestCheckStatus(
	ctx context.Context,
	repo globalEntities.Repository,
	prID int,
) (bool, error)

func (*Provider) GetPullRequestDiff

func (p *Provider) GetPullRequestDiff(
	ctx context.Context,
	repo globalEntities.Repository,
	prID int,
) (string, error)

func (*Provider) GetPullRequestFiles

func (p *Provider) GetPullRequestFiles(
	ctx context.Context,
	repo globalEntities.Repository,
	prID int,
) ([]globalEntities.PullRequestFile, error)

func (*Provider) GetServiceType

func (p *Provider) GetServiceType() globalEntities.ServiceType

func (*Provider) GetTags

func (p *Provider) GetTags(
	ctx context.Context,
	repo globalEntities.Repository,
) ([]string, error)

func (*Provider) HasFile

func (p *Provider) HasFile(
	ctx context.Context,
	repo globalEntities.Repository,
	path string,
) bool

func (*Provider) ListFiles

func (p *Provider) ListFiles(
	ctx context.Context,
	repo globalEntities.Repository,
	pattern string,
) ([]globalEntities.File, error)

func (*Provider) ListOpenPullRequests

func (p *Provider) ListOpenPullRequests(
	ctx context.Context,
	repo globalEntities.Repository,
) ([]globalEntities.PullRequestDetail, error)

func (*Provider) MatchesURL

func (p *Provider) MatchesURL(rawURL string) bool

func (*Provider) MergePullRequest added in v0.6.0

func (p *Provider) MergePullRequest(
	ctx context.Context,
	repo globalEntities.Repository,
	prID int,
	strategy string,
) error

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) PostPullRequestComment

func (p *Provider) PostPullRequestComment(
	ctx context.Context,
	repo globalEntities.Repository,
	prID int,
	body string,
) error

func (*Provider) PostPullRequestThreadComment

func (p *Provider) PostPullRequestThreadComment(
	ctx context.Context,
	repo globalEntities.Repository,
	prID int,
	filePath string,
	line int,
	body string,
) error

func (*Provider) PrepareCloneURL

func (p *Provider) PrepareCloneURL(url string) string

func (*Provider) PullRequestExists

func (p *Provider) PullRequestExists(
	ctx context.Context,
	repo globalEntities.Repository,
	sourceBranch string,
) (bool, error)

Jump to

Keyboard shortcuts

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