Help us shape the future of Go! Take the 2026 Go Developer Survey

github

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRemoteHostIsNotGitHub = errors.New("not a github host")

Functions

func EnsureRemote

func EnsureRemote(ctx context.Context, repositoryPath string, remoteName string, gitCli *git.Cli) (string, error)

ensureRemote ensures that a git repository located at `repositoryPath` has a remote and it is configured with a URL for a repository hosted on GitHub. It returns the repository slug `(<organization>/<repo>)`.

func GetSlugForRemote

func GetSlugForRemote(remoteUrl string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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