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 NormalizeRepoForAPI ¶ added in v0.82.0
NormalizeRepoForAPI splits a repo string of the form "[HOST/]owner/repo" into the owner/repo portion and an optional host. Most callers pass plain "owner/repo", but GHES and Proxima installs may supply "HOST/owner/repo".
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.