Changeset View
Changeset View
Standalone View
Standalone View
src/applications/doorkeeper/worker/DoorkeeperJIRAFeedWorker.php
Show First 20 Lines • Show All 226 Lines • ▼ Show 20 Lines | $provider->newJIRAFuture( | ||||
'rest/api/2/issue/'.$jira_key.'/remotelink', | 'rest/api/2/issue/'.$jira_key.'/remotelink', | ||||
'POST', | 'POST', | ||||
// format documented at http://bit.ly/1K5T0Li | // format documented at http://bit.ly/1K5T0Li | ||||
array( | array( | ||||
'globalId' => $object->getPHID(), | 'globalId' => $object->getPHID(), | ||||
'application' => array( | 'application' => array( | ||||
'type' => 'com.phacility.phabricator', | 'type' => 'com.phacility.phabricator', | ||||
'name' => 'Phabricator', | 'name' => PhabricatorPlatformSite::getName(), | ||||
), | ), | ||||
'relationship' => 'implemented in', | 'relationship' => 'implemented in', | ||||
'object' => array( | 'object' => array( | ||||
'url' => $publisher->getObjectURI($object), | 'url' => $publisher->getObjectURI($object), | ||||
'title' => $publisher->getObjectTitle($object), | 'title' => $publisher->getObjectTitle($object), | ||||
'icon' => array( | 'icon' => array( | ||||
'url16x16' => $icon_uri, | 'url16x16' => $icon_uri, | ||||
'title' => 'Phabricator', | 'title' => PhabricatorPlatformSite::getName(), | ||||
), | ), | ||||
'status' => array( | 'status' => array( | ||||
'resolved' => $publisher->isObjectClosed($object), | 'resolved' => $publisher->isObjectClosed($object), | ||||
), | ), | ||||
), | ), | ||||
))->resolveJSON(); | ))->resolveJSON(); | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0