Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadWithConfig ¶
Types ¶
type Config ¶
type Config struct {
Prefix string
RepoURL string
DownloadURL string
CommitURL string
AuthToken string
// SkipCommitAPI bypasses the GitHub-style commit-resolution HTTP call
// and uses `git ls-remote` exclusively. Set this for Forgejo-style hosts
// whose REST API doesn't expose a `/commits/{ref}` endpoint with the same
// shape as GitHub's, so error messages don't mislead the operator with
// references to GitHub or a synthetic sentinel URL.
SkipCommitAPI bool
// VendorLabel is the display name used in error messages (e.g. "GitHub"
// or "Forgejo"). Defaults to "GitHub" if empty.
VendorLabel string
}
Click to show internal directories.
Click to hide internal directories.