{"record":{"id":"2853d2440e94335d","repo":"phacility/phabricator","slug":"the-name-s-is-not-a-valid-repository-short-name-2853d2","errorCode":null,"errorMessage":"The name \"%s\" is not a valid repository short name. Repository short names may not contain only uppercase letters.","messagePattern":"The name \"(.+?)\" is not a valid repository short name\\. Repository short names may not contain only uppercase letters\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/repository/storage/PhabricatorRepository.php","lineNumber":421,"sourceCode":"    if (!preg_match('/[a-zA-Z0-9]\\z/', $slug)) {\n      throw new Exception(\n        pht(\n          'The name \"%s\" is not a valid repository short name. Repository '.\n          'short names must end with a letter or number.',\n          $slug));\n    }\n\n    if (preg_match('/__|--|\\\\.\\\\./', $slug)) {\n      throw new Exception(\n        pht(\n          'The name \"%s\" is not a valid repository short name. Repository '.\n          'short names must not contain multiple consecutive underscores, '.\n          'hyphens, or periods.',\n          $slug));\n    }\n\n    if (preg_match('/^[A-Z]+\\z/', $slug)) {\n      throw new Exception(\n        pht(\n          'The name \"%s\" is not a valid repository short name. Repository '.\n          'short names may not contain only uppercase letters.',\n          $slug));\n    }\n\n    if (preg_match('/^\\d+\\z/', $slug)) {\n      throw new Exception(\n        pht(\n          'The name \"%s\" is not a valid repository short name. Repository '.\n          'short names may not contain only numbers.',\n          $slug));\n    }\n\n    if (preg_match('/\\\\.git/', $slug)) {\n      throw new Exception(\n        pht(\n          'The name \"%s\" is not a valid repository short name. Repository '.","sourceCodeStart":403,"sourceCodeEnd":439,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/repository/storage/PhabricatorRepository.php#L403-L439","documentation":"Fires from assertValidRepositorySlug when the name consists entirely of uppercase letters. All-uppercase slugs are reserved to avoid colliding with the visual namespace of all-uppercase callsigns; the guard runs during transaction validation and rejects the name.","triggerScenarios":"Thrown at src/applications/repository/storage/PhabricatorRepository.php:421 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include at least one lowercase letter, digit or separator in the short name."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}