MCPcopy Create free account
hub / github.com/github/gh-aw / IsValidGitHubIdentifier

Function IsValidGitHubIdentifier

pkg/parser/github_urls.go:378–380  ·  view source on GitHub ↗

IsValidGitHubIdentifier checks if a string is a valid GitHub user or organization identifier.

(s string)

Source from the content-addressed store, hash-verified

376
377// IsValidGitHubIdentifier checks if a string is a valid GitHub user or organization identifier.
378func IsValidGitHubIdentifier(s string) bool {
379 return isValidGitHubNameWithMaxLength(s, maxGitHubOwnerIdentifierLength)
380}
381
382// IsValidGitHubRepositoryName checks if a string is a valid GitHub repository name.
383func IsValidGitHubRepositoryName(s string) bool {

Callers 5

parseGitHubURLFunction · 0.92
parseWorkflowSpecFunction · 0.92

Calls 1