{"record":{"id":"255a41ea39c452d7","repo":"phacility/phabricator","slug":"no-repository-was-found","errorCode":null,"errorMessage":"No repository was found.","messagePattern":"No repository was found\\.","errorType":"console","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/DiffusionLintSaveRunner.php","lineNumber":81,"sourceCode":"    $uuid = $api->getRepositoryUUID();\n    $remote_uri = $api->getRemoteURI();\n\n    $repository_query = id(new PhabricatorRepositoryQuery())\n      ->setViewer(PhabricatorUser::getOmnipotentUser());\n\n    if ($callsign) {\n      $repository_query->withCallsigns(array($callsign));\n    } else if ($uuid) {\n      $repository_query->withUUIDs(array($uuid));\n    } else if ($remote_uri) {\n      $repository_query->withURIs(array($remote_uri));\n    }\n\n    $repository = $repository_query->executeOne();\n    $branch_name = $api->getBranchName();\n\n    if (!$repository) {\n      throw new Exception(pht('No repository was found.'));\n    }\n\n    $this->branch = PhabricatorRepositoryBranch::loadOrCreateBranch(\n      $repository->getID(),\n      $branch_name);\n    $this->conn = $this->branch->establishConnection('w');\n\n    $this->lintCommit = null;\n    if (!$this->all) {\n      $this->lintCommit = $this->branch->getLintCommit();\n    }\n\n    if ($this->lintCommit) {\n      try {\n        $commit = $this->lintCommit;\n        if ($this->svnRoot) {\n          $commit = $api->getCanonicalRevisionName('@'.$commit);\n        }","sourceCodeStart":63,"sourceCodeEnd":99,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/DiffusionLintSaveRunner.php#L63-L99","documentation":"Error \"No repository was found.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/DiffusionLintSaveRunner.php:81 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"}