github

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 11 Imported by: ? 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

This section is empty.

Types

type GithubService

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

func NewGithubService

func NewGithubService(cfg *config.Config) *GithubService

func (*GithubService) CreateBranch

func (h *GithubService) CreateBranch(ctx context.Context, repo *hosting.Repository, opts *hosting.CreateBranchOpts) (*hosting.Branch, error)

func (*GithubService) CreateFile

func (*GithubService) DeleteBranch

func (h *GithubService) DeleteBranch(ctx context.Context, repo *hosting.Repository, branch *hosting.Branch) error

func (*GithubService) DeleteFile

func (h *GithubService) DeleteFile(ctx context.Context, repo *hosting.Repository, path string, opts *hosting.DeleteFileOpts) (*hosting.Commit, error)

func (*GithubService) GetBranches

func (h *GithubService) GetBranches(ctx context.Context, repo *hosting.Repository) ([]hosting.Branch, error)

func (*GithubService) GetCommit

func (*GithubService) GetCommits

func (h *GithubService) GetCommits(ctx context.Context, repo *hosting.Repository, opts *hosting.GetCommitsOpts) ([]hosting.Commit, error)

func (*GithubService) GetFiles

func (h *GithubService) GetFiles(ctx context.Context, repo *hosting.Repository, path string) (*hosting.File, []hosting.File, error)

func (*GithubService) GetRawFile

func (h *GithubService) GetRawFile(ctx context.Context, repo *hosting.Repository, path string, opts *hosting.GetFileOpts) ([]byte, error)

func (*GithubService) GetRepositories

func (h *GithubService) GetRepositories(ctx context.Context, owner string) ([]hosting.Repository, error)

func (*GithubService) GetRepository

func (h *GithubService) GetRepository(ctx context.Context, owner string, repo string) (*hosting.Repository, error)

func (*GithubService) IsKnownInstallation added in v0.1.4

func (s *GithubService) IsKnownInstallation(owner string) bool

func (*GithubService) UpdateFile

func (*GithubService) WithAuthToken added in v0.1.4

func (s *GithubService) WithAuthToken(ctx context.Context, token string) (*GithubService, error)

func (*GithubService) WithInstallation added in v0.1.4

func (s *GithubService) WithInstallation(installationID int64) (*GithubService, error)

func (*GithubService) WithInstallationOwner added in v0.1.4

func (s *GithubService) WithInstallationOwner(owner string) (*GithubService, error)

Jump to

Keyboard shortcuts

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