Versions in this module Expand all Collapse all v1 v1.2.2 Mar 18, 2024 v1.2.0 Mar 18, 2024 Changes in this version + var ErrBranchProtectionDeletion = errors.New("error deleting branch protection rules") + var ErrIssueNotFound = errors.New("issue not found") + var ErrRepositoryNotFound = errors.New("repository not found") + type BranchProtectionRule struct + Nodes []struct{ ... } + PageInfo struct{ ... } + type GEI struct + func NewGEI(source, target, sourceToken, targetToken string) GEI + func (gei *GEI) MigrateCodeScanning(repository string) error + func (gei *GEI) MigrateRepo(repository string) error + func (gei *GEI) MigrateSecretScanning(repository string) error + type GitHubClient struct + func NewGitHubClient(ctx context.Context, logger *slog.Logger, token string) (*GitHubClient, error) + func (gc *GitHubClient) ArchiveRepository(ctx context.Context, organization string, repository string) error + func (gc *GitHubClient) ChangeArchiveRepository(ctx context.Context, organization string, repository string, archive bool) error + func (gc *GitHubClient) ChangeGHASOrgSettings(ctx context.Context, organization string, activate bool) error + func (gc *GitHubClient) ChangeGhasRepoSettings(ctx context.Context, organization string, repository Repository, ghas string, ...) error + func (gc *GitHubClient) ChangeRepositoryVisibility(ctx context.Context, organization string, repository string, visibility string) error + func (gc *GitHubClient) CreateIssue(ctx context.Context, organization string, repository string, title string, ...) error + func (gc *GitHubClient) CreateRepository(ctx context.Context, organization string, repository string) error + func (gc *GitHubClient) DeleteBranchProtections(ctx context.Context, organization string, repository string) error + func (gc *GitHubClient) DisableWorkflowsForRepository(ctx context.Context, organization string, repository string, ...) error + func (gc *GitHubClient) EnableWorkflowsForRepository(ctx context.Context, organization string, repository string, ...) error + func (gc *GitHubClient) GetAllActiveWorkflowsForRepository(ctx context.Context, organization string, repository string) ([]Workflow, error) + func (gc *GitHubClient) GetAllWorkflowsForRepository(ctx context.Context, organization string, repository string) ([]Workflow, error) + func (gc *GitHubClient) GetCodeScanningAnalysis(ctx context.Context, organization string, repository string, ...) ([]ScanningAnalysis, error) + func (gc *GitHubClient) GetIssue(ctx context.Context, organization string, repository string, issueNumber int) (Issue, error) + func (gc *GitHubClient) GetRepositories(ctx context.Context, org string) ([]Repository, error) + func (gc *GitHubClient) GetRepository(ctx context.Context, repoName string, org string) (Repository, error) + func (gc *GitHubClient) UnarchiveRepository(ctx context.Context, organization string, repository string) error + type Issue *github.Issue + type Repository *github.Repository + type ScanningAnalysis *github.ScanningAnalysis + type Workflow *github.Workflow