Differential D17207 Diff 41374 src/applications/differential/conduit/DifferentialGetCommitMessageConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialGetCommitMessageConduitAPIMethod.php
| Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | protected function execute(ConduitAPIRequest $request) { | ||||
| } | } | ||||
| return implode("\n\n", $commit_message); | return implode("\n\n", $commit_message); | ||||
| } | } | ||||
| private function loadCustomFieldStorage( | private function loadCustomFieldStorage( | ||||
| PhabricatorUser $viewer, | PhabricatorUser $viewer, | ||||
| DifferentialRevision $revision) { | DifferentialRevision $revision) { | ||||
| $custom_field_list = PhabricatorCustomField::getObjectFields( | $custom_field_list = PhabricatorCustomField::getObjectFields( | ||||
| $revision, | $revision, | ||||
| DifferentialCustomField::ROLE_COMMITMESSAGE); | PhabricatorCustomField::ROLE_STORAGE); | ||||
| $custom_field_list | $custom_field_list | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->readFieldsFromStorage($revision); | ->readFieldsFromStorage($revision); | ||||
| $custom_field_map = array(); | $custom_field_map = array(); | ||||
| foreach ($custom_field_list->getFields() as $custom_field) { | foreach ($custom_field_list->getFields() as $custom_field) { | ||||
| if (!$custom_field->shouldUseStorage()) { | if (!$custom_field->shouldUseStorage()) { | ||||
| continue; | continue; | ||||
| Show All 11 Lines | |||||