{"action":"created","comment":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls/comments/46808793","id":46808793,"diff_hunk":"@@ -0,0 +1,164 @@\n+<?php\n+\n+namespace OpenOrchestra\\MediaAdmin\\FileUtils\\Image;\n+\n+use Imagick;\n+use OpenOrchestra\\MediaAdmin\\FileUtils\\Image\\ImagickFactory;\n+use OpenOrchestra\\MediaAdmin\\MediaEvents;\n+use OpenOrchestra\\Media\\Model\\MediaInterface;\n+\n+/**\n+ * Class ImagickImageManager\n+ */\n+class ImagickImageManager implements ImageManagerInterface\n+{\n+    protected $imagickFactory;\n+\n+    /**\n+     * @param ImagickFactory $imagickFactory\n+     */\n+    public function __construct(ImagickFactory $imagickFactory)\n+    {\n+        $this->imagickFactory = $imagickFactory;\n+    }\n+\n+    /**\n+     * @param string $filePath\n+     * @param array  $format\n+     * \n+     * @return string\n+     */\n+    public function generateAlternative($filePath, array $format)\n+    {\n+        $image = $this->imagickFactory->create($filePath);\n+        $image = $this->resizeImage($format, $image);\n+\n+        $pathInfo = pathinfo($filePath);\n+        $alternativePath = $pathInfo['dirname'] . DIRECTORY_SEPARATOR . time() . $pathInfo['basename'];\n+        $this->saveImage($alternativePath, $image, $format['compression_quality']);\n+\n+        return $alternativePath;\n+    }\n+\n+    /**\n+     * Resize an image keeping its ratio\n+     *\n+     * @param array   $format\n+     * @param Imagick $image\n+     * \n+     * @return Imagick\n+     */\n+    protected function resizeImage(array $format, Imagick $image)\n+    {\n+        $maxWidth = array_key_exists('max_width', $format)? $format['max_width']: -1;\n+        $maxHeight = array_key_exists('max_height', $format)? $format['max_height']: -1;\n+\n+        if (-2 != $maxWidth + $maxHeight) {\n+            $image->setimagebackgroundcolor('#000000');\n+            $refRatio = $maxWidth / $maxHeight;\n+            $imageRatio = $image->getImageWidth() / $image->getImageHeight();\n+\n+            if ($refRatio > $imageRatio || $maxWidth == -1) {\n+                $image = $this->resizeOnHeight($image, $maxHeight);\n+            } else {\n+                $image = $this->resizeOnWidth($image, $maxWidth);\n+            }\n+        }\n+\n+        return $image;\n+    }\n+\n+    /**\n+     * Resize an image keeping its ratio to the height $height\n+     * \n+     * @param Imagick $image\n+     * @param int     $height\n+     * \n+     * @return Imagick\n+     */\n+    protected function resizeOnHeight(Imagick $image, $height)\n+    {\n+        $image->resizeImage(0, $height, Imagick::FILTER_LANCZOS, 1);\n+\n+        return $image;\n+    }\n+\n+    /**\n+     * Resize an image keeping its ratio to the width $width\n+     * \n+     * @param Imagick $image\n+     * @param int     $width\n+     * \n+     * @return Imagick\n+     */\n+    protected function resizeOnWidth(Imagick $image, $width)\n+    {\n+        $image->resizeImage($width, 0, Imagick::FILTER_LANCZOS, 1);\n+\n+        return $image;\n+    }\n+\n+    /**\n+     * Compress and save $image\n+     * \n+     * @param string  $filePath\n+     * @param Imagick $image\n+     * @param int     $compression_quality\n+     * \n+     * @return Imagick\n+     */\n+    protected function saveImage($filePath, Imagick $image, $compression_quality)\n+    {\n+        $image->setImageCompression(Imagick::COMPRESSION_JPEG);\n+        $image->setImageCompressionQuality($compression_quality);\n+        $image->stripImage();\n+        $image->writeImage($filePath);\n+\n+        return $image;\n+    }\n+\n+    /**\n+     * Extract an image from the $page of $filePath\n+     * \n+     * @param string $filePath\n+     * @param int    $page\n+     * \n+     * @return string\n+     */\n+    public function extractImageFromPdf($filePath, $page = 0)\n+    {\n+        $pathInfo = pathinfo($filePath);\n+        $extractedImagePath = $pathInfo['dirname'] . DIRECTORY_SEPARATOR\n+            . time() . $pathInfo['basename'] . '-' . $page . '.jpg';\n+\n+        $image = $this->imagickFactory->create($filePath);\n+        $image->setIteratorIndex($page);\n+        $image->writeImage($extractedImagePath);\n+\n+        return $extractedImagePath;\n+    }\n+\n+    /**\n+     * Crop $filePath with ($x, $y, $h, $w) and resize it to the $formatName\n+     * \n+     * @param string $filePath\n+     * @param int    $x\n+     * @param int    $y\n+     * @param int    $h\n+     * @param int    $w\n+     * @param array  $format\n+     */\n+    public function cropAndResize($filePath, $x, $y, $h, $w, array $format)\n+    {\n+        $image = $this->imagickFactory->create($filePath);\n+        $image->cropImage($w, $h, $x, $y);\n+        $image = $this->resizeImage($format, $image);\n+\n+        $pathInfo = pathinfo($filePath);\n+        $croppedFilePath = $pathInfo['dirname'] . DIRECTORY_SEPARATOR . time() . $pathInfo['basename'];\n+\n+        $this->saveImage($croppedFilePath, $image, $format['compression_quality']);\n+\n+        return $croppedFilePath;","path":"MediaAdmin/FileUtils/Image/ImagickImageManager.php","position":162,"original_position":162,"commit_id":"90ee222b60fc3c15d300934c9fb0482373121a21","original_commit_id":"90ee222b60fc3c15d300934c9fb0482373121a21","user":{"login":"nicolasThal","id":2675545,"avatar_url":"https://avatars.githubusercontent.com/u/2675545?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasThal","html_url":"https://github.com/nicolasThal","followers_url":"https://api.github.com/users/nicolasThal/followers","following_url":"https://api.github.com/users/nicolasThal/following{/other_user}","gists_url":"https://api.github.com/users/nicolasThal/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasThal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasThal/subscriptions","organizations_url":"https://api.github.com/users/nicolasThal/orgs","repos_url":"https://api.github.com/users/nicolasThal/repos","events_url":"https://api.github.com/users/nicolasThal/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasThal/received_events","type":"User","site_admin":false},"body":"the php doc is not corresponding","created_at":"2015-12-07T11:02:28Z","updated_at":"2015-12-07T11:02:28Z","html_url":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle/pull/97#discussion_r46808793","pull_request_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls/comments/46808793"},"html":{"href":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle/pull/97#discussion_r46808793"},"pull_request":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls/97","id":52678647,"html_url":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle/pull/97","diff_url":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle/pull/97.diff","patch_url":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle/pull/97.patch","issue_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/issues/97","number":97,"state":"open","locked":false,"title":"1.1 : refacto upload","user":{"login":"itkg-ngilain","id":6725138,"avatar_url":"https://avatars.githubusercontent.com/u/6725138?v=3","gravatar_id":"","url":"https://api.github.com/users/itkg-ngilain","html_url":"https://github.com/itkg-ngilain","followers_url":"https://api.github.com/users/itkg-ngilain/followers","following_url":"https://api.github.com/users/itkg-ngilain/following{/other_user}","gists_url":"https://api.github.com/users/itkg-ngilain/gists{/gist_id}","starred_url":"https://api.github.com/users/itkg-ngilain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itkg-ngilain/subscriptions","organizations_url":"https://api.github.com/users/itkg-ngilain/orgs","repos_url":"https://api.github.com/users/itkg-ngilain/repos","events_url":"https://api.github.com/users/itkg-ngilain/events{/privacy}","received_events_url":"https://api.github.com/users/itkg-ngilain/received_events","type":"User","site_admin":false},"body":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle/pull/97\r\nhttps://github.com/open-orchestra/open-orchestra-media-bundle/pull/141\r\nhttps://github.com/open-orchestra/open-orchestra-media-file-bundle/pull/4","created_at":"2015-12-04T14:58:51Z","updated_at":"2015-12-07T11:02:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c6d4a21fc6aaa77bc347b09a165b1952bec576b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls/97/commits","review_comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls/97/comments","review_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/issues/97/comments","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/statuses/90ee222b60fc3c15d300934c9fb0482373121a21","head":{"label":"open-orchestra:1-1_refacto_upload","ref":"1-1_refacto_upload","sha":"90ee222b60fc3c15d300934c9fb0482373121a21","user":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"repo":{"id":39456324,"name":"open-orchestra-media-admin-bundle","full_name":"open-orchestra/open-orchestra-media-admin-bundle","owner":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle","description":"The open orchestra media admin part ","fork":false,"url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle","forks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/forks","keys_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/teams","hooks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/hooks","issue_events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/events","assignees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/tags","blobs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/languages","stargazers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/stargazers","contributors_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/contributors","subscribers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/subscribers","subscription_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/subscription","commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/merges","archive_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/downloads","issues_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/labels{/name}","releases_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/releases{/id}","created_at":"2015-07-21T16:17:26Z","updated_at":"2015-11-06T17:20:24Z","pushed_at":"2015-12-07T10:52:18Z","git_url":"git://github.com/open-orchestra/open-orchestra-media-admin-bundle.git","ssh_url":"git@github.com:open-orchestra/open-orchestra-media-admin-bundle.git","clone_url":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle.git","svn_url":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle","homepage":"http://open-orchestra.com","size":19141,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"open-orchestra:master","ref":"master","sha":"149d5c5e56bec18c01ff3d20b658e37f6ed5651a","user":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"repo":{"id":39456324,"name":"open-orchestra-media-admin-bundle","full_name":"open-orchestra/open-orchestra-media-admin-bundle","owner":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle","description":"The open orchestra media admin part ","fork":false,"url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle","forks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/forks","keys_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/teams","hooks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/hooks","issue_events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/events","assignees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/tags","blobs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/languages","stargazers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/stargazers","contributors_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/contributors","subscribers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/subscribers","subscription_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/subscription","commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/merges","archive_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/downloads","issues_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/labels{/name}","releases_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/releases{/id}","created_at":"2015-07-21T16:17:26Z","updated_at":"2015-11-06T17:20:24Z","pushed_at":"2015-12-07T10:52:18Z","git_url":"git://github.com/open-orchestra/open-orchestra-media-admin-bundle.git","ssh_url":"git@github.com:open-orchestra/open-orchestra-media-admin-bundle.git","clone_url":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle.git","svn_url":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle","homepage":"http://open-orchestra.com","size":19141,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls/97"},"html":{"href":"https://github.com/open-orchestra/open-orchestra-media-admin-bundle/pull/97"},"issue":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/issues/97"},"comments":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-media-admin-bundle/statuses/90ee222b60fc3c15d300934c9fb0482373121a21"}}}}