targets

package
v1.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRepoURL

func ParseRepoURL(repoURL, platformHint string) (platform, org, repo string, err error)

ParseRepoURL extracts the hosting platform, organization, and repository name from a repository URL. The URL must use HTTPS.

If platformHint is non-empty, it is used as the platform name (for self-hosted instances). If platformHint is empty, the platform is detected from the hostname (github.com → "github", gitlab.com → "gitlab").

func RepoDisplayName

func RepoDisplayName(repoURL string) string

RepoDisplayName extracts the "org/repo" portion from a repository URL for use in human-readable output.

func SanitizeRepoURL

func SanitizeRepoURL(repoURL string) string

SanitizeRepoURL converts a repository URL into a filesystem-safe name by stripping the scheme and replacing special characters with hyphens.

Types

This section is empty.

Jump to

Keyboard shortcuts

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