{"record":{"id":"f1d1bfea03990479","repo":"phacility/phabricator","slug":"this-diff-s-is-associated-with-a-repository-f1d1bf","errorCode":null,"errorMessage":"This diff (\"%s\") is associated with a repository (\"%s\") that does not have a Staging Area configured. You must configure a Staging Area to use CircleCI integration.","messagePattern":"This diff \\(\"(.+?)\"\\) is associated with a repository \\(\"(.+?)\"\\) that does not have a Staging Area configured\\. You must configure a Staging Area to use CircleCI integration\\.","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/differential/storage/DifferentialDiff.php","lineNumber":601,"sourceCode":"          $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    }\n\n    $staging_uri = $repository->getStagingURI();\n    if (!$staging_uri) {\n      throw new Exception(\n        pht(\n          'This diff (\"%s\") is associated with a repository (\"%s\") that '.\n          'does not have a Staging Area configured. You must configure a '.\n          'Staging Area to use CircleCI integration.',\n          $diff_phid,\n          $repository_phid));\n    }\n\n    $path = HarbormasterCircleCIBuildStepImplementation::getGitHubPath(\n      $staging_uri);\n    if (!$path) {\n      throw new Exception(\n        pht(\n          'This diff (\"%s\") is associated with a repository (\"%s\") that '.\n          'does not have a Staging Area (\"%s\") that is hosted on GitHub. '.\n          'CircleCI can only build from GitHub, so the Staging Area for '.\n          'the repository must be hosted there.',\n          $diff_phid,","sourceCodeStart":583,"sourceCodeEnd":619,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/storage/DifferentialDiff.php#L583-L619","documentation":"Error \"This diff (\"%s\") is associated with a repository (\"%s\") that does not have a Staging Area configured. You must configure a Staging Area to use CircleCI integration.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/differential/storage/DifferentialDiff.php:601 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Configure a Staging Area for the repository in the repository's 'Storage' or hosting settings (repository.staging.uri)","Verify the staging URI was saved correctly on the repository and is reachable","If CircleCI integration is not actually needed, remove/disable the CircleCI build step so the URI lookup is not attempted"],"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"}