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