Differential D19085 Diff 45745 src/applications/harbormaster/step/HarbormasterCircleCIBuildStepImplementation.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/step/HarbormasterCircleCIBuildStepImplementation.php
| Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | public static function getGitHubPath($uri) { | ||||
| } | } | ||||
| } | } | ||||
| public function execute( | public function execute( | ||||
| HarbormasterBuild $build, | HarbormasterBuild $build, | ||||
| HarbormasterBuildTarget $build_target) { | HarbormasterBuildTarget $build_target) { | ||||
| $viewer = PhabricatorUser::getOmnipotentUser(); | $viewer = PhabricatorUser::getOmnipotentUser(); | ||||
| if (PhabricatorEnv::getEnvConfig('phabricator.silent')) { | |||||
| $this->logSilencedCall($build, $build_target, pht('CircleCI')); | |||||
| throw new HarbormasterBuildFailureException(); | |||||
| } | |||||
| $buildable = $build->getBuildable(); | $buildable = $build->getBuildable(); | ||||
| $object = $buildable->getBuildableObject(); | $object = $buildable->getBuildableObject(); | ||||
| $object_phid = $object->getPHID(); | $object_phid = $object->getPHID(); | ||||
| if (!($object instanceof HarbormasterCircleCIBuildableInterface)) { | if (!($object instanceof HarbormasterCircleCIBuildableInterface)) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'Object ("%s") does not implement interface "%s". Only objects '. | 'Object ("%s") does not implement interface "%s". Only objects '. | ||||
| ▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines | |||||