Differential D17207 Diff 41374 src/applications/differential/customfield/DifferentialJIRAIssuesField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialJIRAIssuesField.php
| Show First 20 Lines • Show All 264 Lines • ▼ Show 20 Lines | public function applyApplicationTransactionExternalEffects( | ||||
| foreach (array_diff($edge_dsts, $edges) as $add_edge) { | foreach (array_diff($edge_dsts, $edges) as $add_edge) { | ||||
| $editor->addEdge($revision_phid, $edge_type, $add_edge); | $editor->addEdge($revision_phid, $edge_type, $add_edge); | ||||
| } | } | ||||
| $editor->save(); | $editor->save(); | ||||
| } | } | ||||
| public function shouldAppearInCommitMessage() { | |||||
| return true; | |||||
| } | |||||
| public function shouldAppearInCommitMessageTemplate() { | |||||
| return true; | |||||
| } | |||||
| public function getCommitMessageLabels() { | |||||
| return array( | |||||
| 'JIRA', | |||||
| 'JIRA Issues', | |||||
| 'JIRA Issue', | |||||
| ); | |||||
| } | |||||
| public function parseValueFromCommitMessage($value) { | |||||
| return preg_split('/[\s,]+/', $value, $limit = -1, PREG_SPLIT_NO_EMPTY); | |||||
| } | |||||
| public function readValueFromCommitMessage($value) { | |||||
| $this->setValue($value); | |||||
| return $this; | |||||
| } | |||||
| public function renderCommitMessageValue(array $handles) { | |||||
| $value = $this->getValue(); | |||||
| if (!$value) { | |||||
| return null; | |||||
| } | |||||
| return implode(', ', $value); | |||||
| } | |||||
| public function shouldAppearInConduitDictionary() { | public function shouldAppearInConduitDictionary() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function shouldAppearInConduitTransactions() { | public function shouldAppearInConduitTransactions() { | ||||
| return true; | return true; | ||||
| } | } | ||||
| protected function newConduitEditParameterType() { | protected function newConduitEditParameterType() { | ||||
| return new ConduitStringListParameterType(); | return new ConduitStringListParameterType(); | ||||
| } | } | ||||
| } | } | ||||