{"record":{"id":"eea05b781631643d","repo":"phacility/phabricator","slug":"no-repository-exists-with-phid-s","errorCode":null,"errorMessage":"No repository exists with PHID \"%s\".","messagePattern":"No repository exists with PHID \"(.+?)\"\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/conduit/DiffusionGetLintMessagesConduitAPIMethod.php","lineNumber":41,"sourceCode":"      'files'          => 'required list<string>',\n    );\n  }\n\n  protected function defineReturnType() {\n    return 'list<dict>';\n  }\n\n  protected function execute(ConduitAPIRequest $request) {\n    $viewer = $request->getUser();\n\n    $repository_phid = $request->getValue('repositoryPHID');\n    $repository = id(new PhabricatorRepositoryQuery())\n      ->setViewer($viewer)\n      ->withPHIDs(array($repository_phid))\n      ->executeOne();\n\n    if (!$repository) {\n      throw new Exception(\n        pht('No repository exists with PHID \"%s\".', $repository_phid));\n    }\n\n    $branch_name = $request->getValue('branch');\n    if ($branch_name == '') {\n      $repository = id(new PhabricatorRepositoryQuery())\n        ->setViewer($request->getUser())\n        ->withIDs(array($repository->getID()))\n        ->executeOne();\n      $branch_name = $repository->getDefaultArcanistBranch();\n    }\n\n    $branch = id(new PhabricatorRepositoryBranch())->loadOneWhere(\n      'repositoryID = %d AND name = %s',\n      $repository->getID(),\n      $branch_name);\n    if (!$branch || !$branch->getLintCommit()) {\n      return array();","sourceCodeStart":23,"sourceCodeEnd":59,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/conduit/DiffusionGetLintMessagesConduitAPIMethod.php#L23-L59","documentation":"Error \"No repository exists with PHID \"%s\".\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/conduit/DiffusionGetLintMessagesConduitAPIMethod.php:41 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}