github

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: MIT Imports: 11 Imported by: 0

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