{"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":"Lookup failure in DiffusionLintSaveRunner::run: the runner resolved a callsign, repository UUID, or remote URI from the working-copy API and issued an omnipotent PhabricatorRepositoryQuery, but no repository row matched. The lint process is running against a working copy whose origin cannot be correlated with any tracked Phabricator repository, so there is no repository context to save lint results under.","triggerScenarios":"Thrown at src/applications/diffusion/DiffusionLintSaveRunner.php:81 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the working copy's remote URI/callsign matches a repository configured in Phabricator exactly (including protocol and trailing slashes)","Create or reconfigure the repository in Phabricator so its callsign, UUID, or URI matches the working copy","If the repository URI changed, update the Phabricator repository record to include the new URI"],"exampleFix":null,"handlingStrategy":"fallback","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"}