githubapp

package
v0.0.1-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 15 Imported by: 1 module, 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

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