Versions in this module Expand all Collapse all v1 v1.23.14 Apr 4, 2026 v1.23.13 Mar 26, 2026 Changes in this version + const GitHttpsProtocolType + const GitSshProtocolType + var ErrGitHubCliNotLoggedIn = errors.New("gh cli is not logged in") + var ErrRepositoryNameInUse = errors.New("repository name already in use") + var ErrUserNotAuthorized = errors.New(...) + var GitHubHostName = "github.com" + var TokenEnvVars = []string + var Version semver.Version = semver.MustParse("2.86.0") + func RunningOnCodespaces() bool + type ApiCallOptions struct + Headers []string + type AuthStatus struct + LoggedIn bool + type Cli struct + func NewGitHubCli(console input.Console, commandRunner exec.CommandRunner) *Cli + func (cli *Cli) ApiCall(ctx context.Context, hostname, path string, options ApiCallOptions) (string, error) + func (cli *Cli) BinaryPath() string + func (cli *Cli) CheckInstalled(ctx context.Context) error + func (cli *Cli) CreateEnvironmentIfNotExist(ctx context.Context, repoName string, envName string) error + func (cli *Cli) CreatePrivateRepository(ctx context.Context, name string) error + func (cli *Cli) DeleteEnvironment(ctx context.Context, repoName string, envName string) error + func (cli *Cli) DeleteSecret(ctx context.Context, repoSlug string, name string) error + func (cli *Cli) DeleteVariable(ctx context.Context, repoSlug string, name string) error + func (cli *Cli) EnsureInstalled(ctx context.Context) error + func (cli *Cli) GetAuthStatus(ctx context.Context, hostname string) (AuthStatus, error) + func (cli *Cli) GetGitProtocolType(ctx context.Context) (string, error) + func (cli *Cli) GitHubActionsExists(ctx context.Context, repoSlug string) (bool, error) + func (cli *Cli) InstallUrl() string + func (cli *Cli) ListRepositories(ctx context.Context) ([]GhCliRepository, error) + func (cli *Cli) ListSecrets(ctx context.Context, repoSlug string) ([]string, error) + func (cli *Cli) ListVariables(ctx context.Context, repoSlug string, options *ListVariablesOptions) (map[string]string, error) + func (cli *Cli) Login(ctx context.Context, hostname string) error + func (cli *Cli) Name() string + func (cli *Cli) SetSecret(ctx context.Context, repoSlug string, name string, value string) error + func (cli *Cli) SetVariable(ctx context.Context, repoSlug string, name string, value string, ...) error + func (cli *Cli) ViewRepository(ctx context.Context, name string) (GhCliRepository, error) + type GhCliRepository struct + HttpsUrl string + NameWithOwner string + SshUrl string + type GitHubActionsResponse struct + TotalCount int + type ListVariablesOptions struct + Environment string + type SetVariableOptions struct + Environment string