githubapp

package
v0.0.1-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Service

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

func New

func New(
	tx dbtx.Transactor,
	githubAppStore store.GithubAppStore,
	privateKeyStore store.PrivateKeyStore,
) *Service

func ProvideService

func ProvideService(tx dbtx.Transactor, ghAppStore store.GithubAppStore, privateKeyStore store.PrivateKeyStore) *Service

func (*Service) CompleteInstallation

func (c *Service) CompleteInstallation(ctx context.Context, ghApp *types.GithubApp, installationID int64) error

func (*Service) CompleteManifest

func (c *Service) CompleteManifest(ctx context.Context, ghApp *types.GithubApp, code string) error

func (*Service) Create

func (s *Service) Create(ctx context.Context, ghApp *types.GithubApp) (*types.GithubApp, error)

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, ghApp *types.GithubApp) error

func (Service) Find

func (s Service) Find(ctx context.Context, tenantID, projectID, githubAppID int64) (*types.GithubApp, error)

func (*Service) FindByUID

func (s *Service) FindByUID(ctx context.Context, tenantID, projectID, githubAppUID int64) (*types.GithubApp, error)

func (*Service) GetCommitBySha

func (c *Service) GetCommitBySha(ctx context.Context, ghApp *types.GithubApp, repoURL string, sha string) (*github.RepositoryCommit, error)

func (*Service) GetLatestCommit

func (c *Service) GetLatestCommit(ctx context.Context, ghApp *types.GithubApp, repoURL string, branch string) (*github.RepositoryCommit, error)

func (*Service) List

func (s *Service) List(ctx context.Context, tenantID, projectID int64) ([]*types.GithubApp, error)

func (*Service) ListBranches

func (c *Service) ListBranches(ctx context.Context, ghApp *types.GithubApp, owner string, repo string) ([]*github.Branch, error)

func (*Service) ListRepos

func (c *Service) ListRepos(ctx context.Context, ghApp *types.GithubApp) (*github.ListRepositories, error)

func (*Service) Netrc

func (s *Service) Netrc(ctx context.Context, tenantID, projectID, githubAppID int64, repoURL string) (*types.Netrc, error)

Jump to

Keyboard shortcuts

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