{"action":"created","comment":{"url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments/56855746","id":56855746,"diff_hunk":"@@ -0,0 +1,633 @@\n+<?php\n+\n+/**\n+ * @file\n+ * Code for the NewsroomHelper class.\n+ */\n+\n+/**\n+ * NewsroomHelper class.\n+ */\n+class NewsroomHelper {\n+\n+  /**\n+   * Merges a term_tid and its children into one array.\n+   *\n+   * @param int $term_tid\n+   *   Term id.\n+   * @param int $term_vid\n+   *   Vid id.\n+   *\n+   * @return array.\n+   *   tids\n+   */\n+  public static function getTermChildren($term_tid, $term_vid = NULL) {\n+    // We need parent ID also in the output array to use it in query.\n+    $parent_children_tids = array($term_tid);\n+    $children_tids = array_keys(taxonomy_get_children($term_tid, $term_vid));\n+    if (count($children_tids) > 0) {\n+      $parent_children_tids = array_merge($parent_children_tids, $children_tids);\n+    }\n+\n+    return $parent_children_tids;\n+  }\n+\n+  /**\n+   * Helper function to serialize PDO object into an array.\n+   */\n+  public static function convertPdoToArray($query) {\n+    $data = array();\n+    if ($query) {\n+      while ($result = $query->fetchAssoc()) {\n+        $data[] = $result;\n+      }\n+    }\n+\n+    return $data;\n+  }\n+\n+  /**\n+   * Returns newsroom URL.\n+   *\n+   * @return string\n+   *   Newsroom URL.\n+   */\n+  public static function getNewsroomUrl() {\n+    return 'newsroom/' . implode('/', func_get_args());\n+  }\n+\n+  /**\n+   * Returns newsroom agenda URL.\n+   *\n+   * @return string\n+   *   Newsroom agenda URL.\n+   */\n+  public static function getNewsroomAgendaUrl() {\n+    return 'newsroom-agenda/' . implode('/', func_get_args());\n+  }\n+\n+  /**\n+   * Prepare options for the content type select.\n+   *\n+   * @param string $type\n+   *   Type of the options to generate.\n+   *\n+   * @return array\n+   *   Array of options.\n+   */\n+  public static function prepareOptions($type) {\n+    $options = array();\n+    if (is_numeric($type)) {\n+      for ($i = 1; $i <= $type; $i++) {\n+        $options[$i] = $i;\n+      }\n+    }\n+    else {\n+      // Get a list of the existing content type.\n+      $content_types = node_type_get_types();\n+      // Exclude the ct used for the import.\n+      unset($content_types[NEXTEUROPA_NEWSROOM_CONTENT_TYPE]);\n+      unset($content_types['newsroom_selection']);\n+      // Build options for selecting content types.\n+      foreach ($content_types as $name => $content_type) {\n+        if ($content_type->disabled !== 1) {\n+          $options[$name] = $content_type->name;\n+        }\n+      }\n+    }\n+    return $options;\n+  }\n+\n+  /**\n+   * Call newsroom items import with the certain URL.\n+   *\n+   * @param string $url\n+   *   URL to call.\n+   */\n+  public static function runFeedImporter($url, $importer_id) {\n+    $source = feeds_source($importer_id);\n+    $config = $source->getConfig();\n+    $config['FeedsHTTPFetcher']['source'] = $url;\n+    $source->setConfig($config);\n+    $source->import();\n+    // Restore the default URL in order to run importers manually or via cron.\n+    $config['FeedsHTTPFetcher']['source'] = NewsroomHelper::restoreFeedImporter($importer_id);\n+    $source->setConfig($config);\n+    $source->save();\n+  }\n+\n+  /**\n+   * Restore default URL of importer.\n+   *\n+   * @param string $importer_id\n+   *   Importer ID.\n+   *\n+   * @return string\n+   *   URL.\n+   */\n+  public static function restoreFeedImporter($importer_id) {\n+    $url = '';\n+    if ($importer_id == NEXTEUROPA_NEWSROOM_TOPIC_IMPORTER || $importer_id == NEXTEUROPA_NEWSROOM_SERVICE_IMPORTER) {\n+      $url = NewsroomHelper::buildImportUrl(NEXTEUROPA_NEWSROOM_TOPIC_FULL);\n+    }\n+\n+    if ($importer_id == NEXTEUROPA_NEWSROOM_TYPE_IMPORTER) {\n+      $url = NewsroomHelper::buildImportUrl(NEXTEUROPA_NEWSROOM_TYPE_FULL);\n+    }\n+\n+    if ($importer_id == NEXTEUROPA_NEWSROOM_ITEM_IMPORTER) {\n+      $url = NewsroomHelper::buildImportUrl(NEXTEUROPA_NEWSROOM_ITEM_FULL);\n+    }\n+\n+    return $url;\n+  }\n+\n+  /**\n+   * Builds import url.\n+   *\n+   * @param string $url_part\n+   *   Part of URL.\n+   *\n+   * @return string\n+   *   URL.\n+   */\n+  public static function buildImportUrl($url_part) {\n+    global $_newsroom_universe_url;\n+    return $_newsroom_universe_url . $url_part;\n+  }\n+\n+  /**\n+   * Get newsroom item by Id.\n+   */\n+  public static function getNodeByNewsroomItemId($newsroom_id = 0) {\n+    $newsroom_data = &drupal_static(__FUNCTION__);\n+    $cache_key = 'newsroom_item_by_id:' . $newsroom_id;\n+    if (!isset($newsroom_data)) {\n+      $cache = cache_get($cache_key, NEXTEUROPA_NEWSROOM_CACHE_TABLE);\n+      if ($cache) {\n+        $newsroom_data = $cache->data;\n+      }\n+      else {\n+        $query = new EntityFieldQuery();\n+        $newsroom_item = $query\n+          ->entityCondition('entity_type', 'node')\n+          ->fieldCondition('field_newsroom_item_id', 'value', $newsroom_id, '=')\n+          ->execute();\n+        $newsroom_data = isset($newsroom_item['node']) ? $newsroom_item['node'] : FALSE;\n+        cache_set($cache_key, $newsroom_data, NEXTEUROPA_NEWSROOM_CACHE_TABLE, time() + 3600);\n+      }\n+    }\n+    return $newsroom_data;\n+  }\n+\n+  /**\n+   * Finds a menu item for a given path.\n+   */\n+  public static function getMenuByPath($path) {\n+    $cache_key = 'get_menu_by_path' . md5($path);\n+    $cache = cache_get($cache_key, NEXTEUROPA_NEWSROOM_CACHE_TABLE);\n+    if ($cache) {\n+      $data = $cache->data;\n+    }\n+    else {\n+      $query = db_select('menu_links', 'ml')\n+        ->fields('ml')\n+        ->condition('ml.link_path', $path)\n+        ->execute();\n+      $data = NewsroomHelper::convertPdoToArray($query);\n+      cache_set($cache_key, $data, NEXTEUROPA_NEWSROOM_CACHE_TABLE);\n+    }\n+    return $data;\n+  }\n+\n+  /**\n+   * Helper to retrieve a mlid for a given path.\n+   *\n+   * @param string $topic_ids\n+   *   Topic term ids.\n+   *\n+   * @return array\n+   *   Field data.\n+   */\n+  public static function getNodesAssociatedToTopics($topic_ids) {\n+    $topic_ids = is_array($topic_ids) ? $topic_ids : array($topic_ids);\n+    $cache_key = 'get_topic_entities' . md5(implode('', $topic_ids));\n+    $cache = cache_get($cache_key, NEXTEUROPA_NEWSROOM_CACHE_TABLE);\n+    if ($cache) {\n+      $data = $cache->data;\n+    }\n+    else {\n+      $query = db_select('field_data_field_associated_newsroom_topic', 'f')\n+        ->fields('f')\n+        ->condition('f.field_associated_newsroom_topic_tid', $topic_ids)\n+        ->execute();\n+      $data = NewsroomHelper::convertPdoToArray($query);\n+\n+      cache_set($cache_key, $data, NEXTEUROPA_NEWSROOM_CACHE_TABLE);\n+    }\n+    return $data;\n+  }\n+\n+  /**\n+   * Get combined node newsroom topics.\n+   *\n+   * @param object $node_wrapper\n+   *   Node wrapper.\n+   *\n+   * @return array\n+   *   Newsroom topics.\n+   */\n+  public static function getNodeTopics($node_wrapper) {\n+    $nid = $node_wrapper->__isset('nid') ? $node_wrapper->nid->value() : NULL;\n+    $cache_key = 'get_node_topics:' . $nid;\n+    $cache = cache_get($cache_key, NEXTEUROPA_NEWSROOM_CACHE_TABLE);\n+    if ($cache) {\n+      $topics = $cache->data;\n+    }\n+    else {\n+      $primary_topics = $node_wrapper->__isset('field_primary_topic') ? $node_wrapper->field_primary_topic->value() : NULL;\n+      if (!empty($primary_topics)) {\n+        $primary_topics = !is_array($primary_topics) ? array($primary_topics) : $primary_topics;\n+      }\n+      else {\n+        $primary_topics = array();\n+      }\n+\n+      // Get regular topics.\n+      $topics = $node_wrapper->__isset('field_newsroom_topics') ? $node_wrapper->field_newsroom_topics->value() : NULL;\n+      if (!empty($topics)) {\n+        $topics = !is_array($topics) ? array($topics) : $topics;\n+      }\n+      else {\n+        $topics = array();\n+      }\n+\n+      $topics = array_merge($primary_topics, $topics);\n+\n+      cache_set($cache_key, $topics, NEXTEUROPA_NEWSROOM_CACHE_TABLE);\n+    }\n+    return $topics;\n+  }\n+\n+  /**\n+   * Active menu for newsroom items.\n+   *\n+   * Returns wich menu item should be active for a newsroom item\n+   * based on the assigned topics.\n+   */\n+  public static function fetchActiveMenu($topic_id) {\n+    $cache_key = 'fetch_active_menu' . $topic_id;\n+    $cache = cache_get($cache_key, NEXTEUROPA_NEWSROOM_CACHE_TABLE);\n+    if ($cache) {\n+      $path = $cache->data;\n+    }\n+    else {\n+      $path = FALSE;\n+\n+      // Check if they are added to menu.\n+      $menu_items = array();\n+      // Fetch entities associated to topic using the special field.\n+      $topic_entities = NewsroomHelper::getNodesAssociatedToTopics($topic_id);\n+\n+      if (count($topic_entities) > 0) {\n+        foreach ($topic_entities as $entity) {\n+          // Could use entity_uri() but we would have to load the full entity...\n+          $menu_link_items = NewsroomHelper::getMenuByPath(str_replace('_', '/', $entity['entity_type']) . '/' . $entity['entity_id']);","path":"profiles/common/modules/features/nexteuropa_newsroom/classes/NewsroomHelper.inc","position":295,"original_position":295,"commit_id":"3ec0c0faaf02dc0e15453ec75bc32753112c7739","original_commit_id":"3ec0c0faaf02dc0e15453ec75bc32753112c7739","user":{"login":"tatarbj","id":781403,"avatar_url":"https://avatars.githubusercontent.com/u/781403?v=3","gravatar_id":"","url":"https://api.github.com/users/tatarbj","html_url":"https://github.com/tatarbj","followers_url":"https://api.github.com/users/tatarbj/followers","following_url":"https://api.github.com/users/tatarbj/following{/other_user}","gists_url":"https://api.github.com/users/tatarbj/gists{/gist_id}","starred_url":"https://api.github.com/users/tatarbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatarbj/subscriptions","organizations_url":"https://api.github.com/users/tatarbj/orgs","repos_url":"https://api.github.com/users/tatarbj/repos","events_url":"https://api.github.com/users/tatarbj/events{/privacy}","received_events_url":"https://api.github.com/users/tatarbj/received_events","type":"User","site_admin":false},"body":"because the urls are editable just like the pathauto settings by webmasters/administrator users it's a quite bad practice to hardcode the url of menu path like it is here!","created_at":"2016-03-21T16:48:03Z","updated_at":"2016-03-21T16:48:03Z","html_url":"https://github.com/ec-europa/platform-dev/pull/358#discussion_r56855746","pull_request_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/358","_links":{"self":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments/56855746"},"html":{"href":"https://github.com/ec-europa/platform-dev/pull/358#discussion_r56855746"},"pull_request":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/358"}}},"pull_request":{"url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/358","id":59671833,"html_url":"https://github.com/ec-europa/platform-dev/pull/358","diff_url":"https://github.com/ec-europa/platform-dev/pull/358.diff","patch_url":"https://github.com/ec-europa/platform-dev/pull/358.patch","issue_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/358","number":358,"state":"open","locked":false,"title":"Nexteuropa newsroom 2.0","user":{"login":"LOBsTerr","id":537500,"avatar_url":"https://avatars.githubusercontent.com/u/537500?v=3","gravatar_id":"","url":"https://api.github.com/users/LOBsTerr","html_url":"https://github.com/LOBsTerr","followers_url":"https://api.github.com/users/LOBsTerr/followers","following_url":"https://api.github.com/users/LOBsTerr/following{/other_user}","gists_url":"https://api.github.com/users/LOBsTerr/gists{/gist_id}","starred_url":"https://api.github.com/users/LOBsTerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LOBsTerr/subscriptions","organizations_url":"https://api.github.com/users/LOBsTerr/orgs","repos_url":"https://api.github.com/users/LOBsTerr/repos","events_url":"https://api.github.com/users/LOBsTerr/events{/privacy}","received_events_url":"https://api.github.com/users/LOBsTerr/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-17T16:41:48Z","updated_at":"2016-03-21T16:48:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92fe4e682fe85fc45b7c868ae98478f03ae5ee4d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/358/commits","review_comments_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/358/comments","review_comment_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/358/comments","statuses_url":"https://api.github.com/repos/ec-europa/platform-dev/statuses/3ec0c0faaf02dc0e15453ec75bc32753112c7739","head":{"label":"LOBsTerr:nexteuropa_newsroom-2.0","ref":"nexteuropa_newsroom-2.0","sha":"3ec0c0faaf02dc0e15453ec75bc32753112c7739","user":{"login":"LOBsTerr","id":537500,"avatar_url":"https://avatars.githubusercontent.com/u/537500?v=3","gravatar_id":"","url":"https://api.github.com/users/LOBsTerr","html_url":"https://github.com/LOBsTerr","followers_url":"https://api.github.com/users/LOBsTerr/followers","following_url":"https://api.github.com/users/LOBsTerr/following{/other_user}","gists_url":"https://api.github.com/users/LOBsTerr/gists{/gist_id}","starred_url":"https://api.github.com/users/LOBsTerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LOBsTerr/subscriptions","organizations_url":"https://api.github.com/users/LOBsTerr/orgs","repos_url":"https://api.github.com/users/LOBsTerr/repos","events_url":"https://api.github.com/users/LOBsTerr/events{/privacy}","received_events_url":"https://api.github.com/users/LOBsTerr/received_events","type":"User","site_admin":false},"repo":{"id":42644513,"name":"platform-dev","full_name":"LOBsTerr/platform-dev","owner":{"login":"LOBsTerr","id":537500,"avatar_url":"https://avatars.githubusercontent.com/u/537500?v=3","gravatar_id":"","url":"https://api.github.com/users/LOBsTerr","html_url":"https://github.com/LOBsTerr","followers_url":"https://api.github.com/users/LOBsTerr/followers","following_url":"https://api.github.com/users/LOBsTerr/following{/other_user}","gists_url":"https://api.github.com/users/LOBsTerr/gists{/gist_id}","starred_url":"https://api.github.com/users/LOBsTerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LOBsTerr/subscriptions","organizations_url":"https://api.github.com/users/LOBsTerr/orgs","repos_url":"https://api.github.com/users/LOBsTerr/repos","events_url":"https://api.github.com/users/LOBsTerr/events{/privacy}","received_events_url":"https://api.github.com/users/LOBsTerr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LOBsTerr/platform-dev","description":"NextEuropa platform","fork":true,"url":"https://api.github.com/repos/LOBsTerr/platform-dev","forks_url":"https://api.github.com/repos/LOBsTerr/platform-dev/forks","keys_url":"https://api.github.com/repos/LOBsTerr/platform-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LOBsTerr/platform-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LOBsTerr/platform-dev/teams","hooks_url":"https://api.github.com/repos/LOBsTerr/platform-dev/hooks","issue_events_url":"https://api.github.com/repos/LOBsTerr/platform-dev/issues/events{/number}","events_url":"https://api.github.com/repos/LOBsTerr/platform-dev/events","assignees_url":"https://api.github.com/repos/LOBsTerr/platform-dev/assignees{/user}","branches_url":"https://api.github.com/repos/LOBsTerr/platform-dev/branches{/branch}","tags_url":"https://api.github.com/repos/LOBsTerr/platform-dev/tags","blobs_url":"https://api.github.com/repos/LOBsTerr/platform-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LOBsTerr/platform-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LOBsTerr/platform-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/LOBsTerr/platform-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LOBsTerr/platform-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/LOBsTerr/platform-dev/languages","stargazers_url":"https://api.github.com/repos/LOBsTerr/platform-dev/stargazers","contributors_url":"https://api.github.com/repos/LOBsTerr/platform-dev/contributors","subscribers_url":"https://api.github.com/repos/LOBsTerr/platform-dev/subscribers","subscription_url":"https://api.github.com/repos/LOBsTerr/platform-dev/subscription","commits_url":"https://api.github.com/repos/LOBsTerr/platform-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/LOBsTerr/platform-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/LOBsTerr/platform-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/LOBsTerr/platform-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/LOBsTerr/platform-dev/contents/{+path}","compare_url":"https://api.github.com/repos/LOBsTerr/platform-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LOBsTerr/platform-dev/merges","archive_url":"https://api.github.com/repos/LOBsTerr/platform-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LOBsTerr/platform-dev/downloads","issues_url":"https://api.github.com/repos/LOBsTerr/platform-dev/issues{/number}","pulls_url":"https://api.github.com/repos/LOBsTerr/platform-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/LOBsTerr/platform-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/LOBsTerr/platform-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LOBsTerr/platform-dev/labels{/name}","releases_url":"https://api.github.com/repos/LOBsTerr/platform-dev/releases{/id}","deployments_url":"https://api.github.com/repos/LOBsTerr/platform-dev/deployments","created_at":"2015-09-17T08:27:49Z","updated_at":"2016-02-01T11:02:57Z","pushed_at":"2016-03-21T07:53:02Z","git_url":"git://github.com/LOBsTerr/platform-dev.git","ssh_url":"git@github.com:LOBsTerr/platform-dev.git","clone_url":"https://github.com/LOBsTerr/platform-dev.git","svn_url":"https://github.com/LOBsTerr/platform-dev","homepage":null,"size":45708,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"ec-europa:develop","ref":"develop","sha":"74ebef9e5bebd7d8e9253ad27d32b4c19e7e06df","user":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars.githubusercontent.com/u/10885565?v=3","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"repo":{"id":41666809,"name":"platform-dev","full_name":"ec-europa/platform-dev","owner":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars.githubusercontent.com/u/10885565?v=3","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ec-europa/platform-dev","description":"NextEuropa platform","fork":false,"url":"https://api.github.com/repos/ec-europa/platform-dev","forks_url":"https://api.github.com/repos/ec-europa/platform-dev/forks","keys_url":"https://api.github.com/repos/ec-europa/platform-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ec-europa/platform-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ec-europa/platform-dev/teams","hooks_url":"https://api.github.com/repos/ec-europa/platform-dev/hooks","issue_events_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/events{/number}","events_url":"https://api.github.com/repos/ec-europa/platform-dev/events","assignees_url":"https://api.github.com/repos/ec-europa/platform-dev/assignees{/user}","branches_url":"https://api.github.com/repos/ec-europa/platform-dev/branches{/branch}","tags_url":"https://api.github.com/repos/ec-europa/platform-dev/tags","blobs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ec-europa/platform-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/ec-europa/platform-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ec-europa/platform-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/ec-europa/platform-dev/languages","stargazers_url":"https://api.github.com/repos/ec-europa/platform-dev/stargazers","contributors_url":"https://api.github.com/repos/ec-europa/platform-dev/contributors","subscribers_url":"https://api.github.com/repos/ec-europa/platform-dev/subscribers","subscription_url":"https://api.github.com/repos/ec-europa/platform-dev/subscription","commits_url":"https://api.github.com/repos/ec-europa/platform-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/ec-europa/platform-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/ec-europa/platform-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/ec-europa/platform-dev/contents/{+path}","compare_url":"https://api.github.com/repos/ec-europa/platform-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ec-europa/platform-dev/merges","archive_url":"https://api.github.com/repos/ec-europa/platform-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ec-europa/platform-dev/downloads","issues_url":"https://api.github.com/repos/ec-europa/platform-dev/issues{/number}","pulls_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/ec-europa/platform-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/ec-europa/platform-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ec-europa/platform-dev/labels{/name}","releases_url":"https://api.github.com/repos/ec-europa/platform-dev/releases{/id}","deployments_url":"https://api.github.com/repos/ec-europa/platform-dev/deployments","created_at":"2015-08-31T09:16:12Z","updated_at":"2016-03-01T11:23:15Z","pushed_at":"2016-03-21T14:40:46Z","git_url":"git://github.com/ec-europa/platform-dev.git","ssh_url":"git@github.com:ec-europa/platform-dev.git","clone_url":"https://github.com/ec-europa/platform-dev.git","svn_url":"https://github.com/ec-europa/platform-dev","homepage":null,"size":46416,"stargazers_count":12,"watchers_count":12,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":26,"forks":6,"open_issues":26,"watchers":12,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/358"},"html":{"href":"https://github.com/ec-europa/platform-dev/pull/358"},"issue":{"href":"https://api.github.com/repos/ec-europa/platform-dev/issues/358"},"comments":{"href":"https://api.github.com/repos/ec-europa/platform-dev/issues/358/comments"},"review_comments":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/358/comments"},"review_comment":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/358/commits"},"statuses":{"href":"https://api.github.com/repos/ec-europa/platform-dev/statuses/3ec0c0faaf02dc0e15453ec75bc32753112c7739"}}}}