Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: phacility/phabricator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: rudykocur/phabricator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 2 files changed
  • 1 contributor

Commits on Mar 30, 2014

  1. Copy the full SHA
    c89d88f View commit details
  2. Copy the full SHA
    5d2e2c6 View commit details
  3. Small fix in Jira integration

    root committed Mar 30, 2014
    Copy the full SHA
    1b6d144 View commit details
Original file line number Diff line number Diff line change
@@ -64,6 +64,7 @@ protected function execute(ConduitAPIRequest $request) {
$fields = $request->getValue('fields', array());
foreach ($fields as $field => $value) {
$custom_field = idx($field_map, $field);

if (!$custom_field) {
// Just ignore this, these workflows don't make strong distictions
// about field editability on the client side.
@@ -79,6 +80,7 @@ protected function execute(ConduitAPIRequest $request) {
$phids = array();
foreach ($field_list->getFields() as $key => $field) {
$field_phids = $field->getRequiredHandlePHIDsForCommitMessage();

if (!is_array($field_phids)) {
throw new Exception(
pht(
Original file line number Diff line number Diff line change
@@ -276,4 +276,18 @@ public function shouldAppearInConduitDictionary() {
return true;
}

public function getRequiredHandlePHIDsForCommitMessage() {
$result = $this->getValue();

if(null === $result) {
return array();
}

return $result;
}

public function readValueFromCommitMessage($value) {
$this->setValue($value);
}

}