Differential D15293 Diff 36896 src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
| Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | $readme = pht( | ||||
| "after running its own checks, as though they were normal hook ". | "after running its own checks, as though they were normal hook ". | ||||
| "scripts."); | "scripts."); | ||||
| Filesystem::createDirectory($path, 0755); | Filesystem::createDirectory($path, 0755); | ||||
| Filesystem::writeFile($path.'/README', $readme); | Filesystem::writeFile($path.'/README', $readme); | ||||
| } | } | ||||
| private function getHookContextIdentifier(PhabricatorRepository $repository) { | private function getHookContextIdentifier(PhabricatorRepository $repository) { | ||||
| $identifier = $repository->getCallsign(); | $identifier = $repository->getPHID(); | ||||
| $instance = PhabricatorEnv::getEnvConfig('cluster.instance'); | $instance = PhabricatorEnv::getEnvConfig('cluster.instance'); | ||||
| if (strlen($instance)) { | if (strlen($instance)) { | ||||
| $identifier = "{$identifier}:{$instance}"; | $identifier = "{$identifier}:{$instance}"; | ||||
| } | } | ||||
| return $identifier; | return $identifier; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 357 Lines • Show Last 20 Lines | |||||