Versions in this module Expand all Collapse all v0 v0.0.21 Jun 6, 2025 v0.0.20 Jun 6, 2025 v0.0.19 Jun 5, 2025 v0.0.18 Jun 5, 2025 v0.0.17 Jun 5, 2025 v0.0.16 Jun 5, 2025 v0.0.15 Jun 5, 2025 v0.0.14 Jun 4, 2025 Changes in this version + type DefaultPermissions struct + Contents string + Issues string + Members string + Metadata string + PullRequests string + type GitHubAppManifest struct + DefaultEvents []string + DefaultPermissions DefaultPermissions + Description string + HookAttributes HookAttributes + Name string + Public bool + RedirectURL string + SetupUrl string + URL string + type GithubBranch struct + Name string + Protected bool + Ref string + SHA string + type GithubClient struct + func NewGithubClient(githubURL string, cfg *config.Config) *GithubClient + func (self *GithubClient) ClonePublicRepository(ctx context.Context, repoURL string, refName string, commitSHA string) (string, error) + func (self *GithubClient) CloneRepository(ctx context.Context, appID, installationID int64, appPrivateKey string, ...) (string, error) + func (self *GithubClient) CreateAppManifest(redirectUrl string, setupUrl string, forOrganization bool) (manifest *GitHubAppManifest, appName string, err error) + func (self *GithubClient) GetAuthenticatedClient(ctx context.Context, appID int64, installationID int64, appPrivateKey string) (*github.Client, error) + func (self *GithubClient) GetCommitSummary(ctx context.Context, installation *ent.GithubInstallation, owner, repo string, ...) (commitSHA, commitMessage string, committer *schema.GitCommitter, err error) + func (self *GithubClient) GetInstallationToken(ctx context.Context, appID int64, installationID int64, appPrivateKey string) (string, error) + func (self *GithubClient) GetRepositoryDetail(ctx context.Context, installation *ent.GithubInstallation, owner, repo string) (*GithubRepositoryDetail, error) + func (self *GithubClient) ManifestCodeConversion(ctx context.Context, code string) (*github.AppConfig, error) + func (self *GithubClient) ReadUserAdminOrganizations(ctx context.Context, installation *ent.GithubInstallation) ([]*github.Organization, error) + func (self *GithubClient) ReadUserAdminRepositories(ctx context.Context, installations []*ent.GithubInstallation) ([]*GithubRepository, error) + func (self *GithubClient) VerifyRepositoryAccess(ctx context.Context, installation *ent.GithubInstallation, owner, repo string) (canAccess bool, repoUrl, defaultBranch string, err error) + type GithubRepository struct + CloneURL string + FullName string + HTMLURL string + HomePage string + ID int64 + InstallationID int64 + Name string + Owner GithubRepositoryOwner + UpdatedAt time.Time + type GithubRepositoryDetail struct + Archived bool + Branches []*GithubBranch + CreatedAt time.Time + DefaultBranch string + Description string + Disabled bool + Fork bool + ForksCount int + FullName string + HTMLURL string + ID int64 + InstallationID int64 + Language string + Name string + OpenIssuesCount int + Owner *GithubRepositoryOwner + Private bool + PushedAt time.Time + Size int + StargazersCount int + Tags []*GithubTag + URL string + UpdatedAt time.Time + WatchersCount int + type GithubRepositoryOwner struct + AvatarURL string + ID int64 + Login string + Name string + type GithubTag struct + Name string + Ref string + SHA string + type HookAttributes struct + URL string