{"record":{"id":"04d076054725f812","repo":"phacility/phabricator","slug":"this-diff-s-is-not-associated-with-a-reposito","errorCode":null,"errorMessage":"This diff (\"%s\") is not associated with a repository. A diff must belong to a tracked repository to be built by CircleCI.","messagePattern":"This diff \\(\"(.+?)\"\\) is not associated with a repository\\. A diff must belong to a tracked repository to be built by CircleCI\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/differential/storage/DifferentialDiff.php","lineNumber":579,"sourceCode":"        pht('The URI of the staging repository.'),\n      'repository.staging.ref' =>\n        pht('The ref name for this change in the staging repository.'),\n    );\n  }\n\n  public function newBuildableEngine() {\n    return new DifferentialBuildableEngine();\n  }\n\n\n/* -(  HarbormasterCircleCIBuildableInterface  )----------------------------- */\n\n\n  public function getCircleCIGitHubRepositoryURI() {\n    $diff_phid = $this->getPHID();\n    $repository_phid = $this->getRepositoryPHID();\n    if (!$repository_phid) {\n      throw new Exception(\n        pht(\n          'This diff (\"%s\") is not associated with a repository. A diff '.\n          'must belong to a tracked repository to be built by CircleCI.',\n          $diff_phid));\n    }\n\n    $repository = id(new PhabricatorRepositoryQuery())\n      ->setViewer(PhabricatorUser::getOmnipotentUser())\n      ->withPHIDs(array($repository_phid))\n      ->executeOne();\n    if (!$repository) {\n      throw new Exception(\n        pht(\n          'This diff (\"%s\") is associated with a repository (\"%s\") which '.\n          'could not be loaded.',\n          $diff_phid,\n          $repository_phid));\n    }","sourceCodeStart":561,"sourceCodeEnd":597,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/storage/DifferentialDiff.php#L561-L597","documentation":"Error \"This diff (\"%s\") is not associated with a repository. A diff must belong to a tracked repository to be built by CircleCI.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/differential/storage/DifferentialDiff.php:579 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"}