Documentation
¶
Overview ¶
Package repoutil provides utility functions for working with GitHub repository slugs and URLs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseGitHubURL ¶
ParseGitHubURL extracts the owner and repo from a GitHub URL. Handles both SSH (git@github.com:owner/repo.git) and HTTPS (https://github.com/owner/repo.git) formats.
func SanitizeForFilename ¶
SanitizeForFilename converts a repository slug (owner/repo) to a filename-safe string. Replaces "/" with "-". Returns "clone-mode" if the slug is empty.
func SplitRepoSlug ¶
SplitRepoSlug splits a repository slug (owner/repo) into owner and repo parts. Returns an error if the slug format is invalid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.