{"action":"created","comment":{"url":"https://api.github.com/repos/wallabag/wallabag/pulls/comments/41232402","id":41232402,"diff_hunk":"@@ -0,0 +1,263 @@\n+<?php\n+\n+namespace Wallabag\\CoreBundle\\Helper;\n+\n+use PHPePub\\Core\\EPub;\n+use PHPePub\\Core\\Structure\\OPF\\DublinCore;\n+\n+class EntriesExport\n+{\n+    private $format;\n+    private $method;\n+    private $title;\n+    private $entries;\n+    private $authors = array('wallabag');\n+    private $language;\n+    private $tags;\n+\n+    public function __construct($entries)\n+    {\n+        $this->entries = $entries;\n+\n+        foreach ($entries as $entry) {\n+            $this->tags[] = $entry->getTags();\n+        }\n+        if (count($entries) === 1) {\n+            $this->language = $entries[0]->getLanguage();\n+        }\n+    }\n+\n+    /**\n+     * Sets the category of which we want to get articles, or just one entry.\n+     *\n+     * @param string $method Method to get articles\n+     */\n+    public function setMethod($method)\n+    {\n+        $this->method = $method;\n+\n+        switch ($this->method) {\n+            case 'All':\n+                $this->title = 'All Articles';\n+                break;\n+            case 'Unread':\n+                $this->title = 'Unread articles';\n+                break;\n+            case 'Starred':\n+                $this->title = 'Starred articles';\n+                break;\n+            case 'Archive':\n+                $this->title = 'Archived articles';\n+                break;\n+            case 'entry':\n+                $this->title = $this->entries[0]->getTitle();\n+                break;\n+            default:\n+                break;\n+        }\n+    }\n+\n+    /**\n+     * Sets the output format.\n+     *\n+     * @param string $format\n+     */\n+    public function exportAs($format)\n+    {\n+        $this->format = $format;\n+\n+        switch ($this->format) {\n+            case 'epub':\n+                $this->produceEpub();\n+                break;\n+\n+            case 'mobi':\n+                $this->produceMobi();\n+                break;\n+\n+            case 'pdf':\n+                $this->producePDF();\n+                break;\n+\n+            case 'csv':\n+                $this->produceCSV();\n+                break;\n+\n+            default:\n+                break;\n+        }\n+    }\n+\n+    private function produceEpub()\n+    {\n+        /*\n+         * Start and End of the book\n+         */\n+        $content_start =\n+            \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\"\n+            .\"<html xmlns=\\\"http://www.w3.org/1999/xhtml\\\" xmlns:epub=\\\"http://www.idpf.org/2007/ops\\\">\\n\"\n+            .'<head>'\n+            .\"<meta http-equiv=\\\"Default-Style\\\" content=\\\"text/html; charset=utf-8\\\" />\\n\"\n+            .'<title>'._('wallabag articles book').\"</title>\\n\"\n+            .\"</head>\\n\"\n+            .\"<body>\\n\";\n+\n+        $bookEnd = \"</body>\\n</html>\\n\";\n+\n+        $book = new EPub(EPub::BOOK_VERSION_EPUB3);\n+\n+        /*\n+         * Book metadata\n+         */\n+\n+        $book->setTitle($this->title);\n+        $book->setIdentifier($this->title, EPub::IDENTIFIER_URI); // Could also be the ISBN number, prefered for published books, or a UUID.\n+        $book->setLanguage($this->language); // Not needed, but included for the example, Language is mandatory, but EPub defaults to \"en\". Use RFC3066 Language codes, such as \"en\", \"da\", \"fr\" etc.\n+        $book->setDescription(_('Some articles saved on my wallabag'));\n+\n+        foreach ($this->authors as $author) {\n+            $book->setAuthor($author, $author);\n+        }\n+\n+        $book->setPublisher('wallabag', 'wallabag'); // I hope this is a non existant address :)\n+        $book->setDate(time()); // Strictly not needed as the book date defaults to time().\n+        $book->setSourceURL(\"http://$_SERVER[HTTP_HOST]\");\n+\n+        $book->addDublinCoreMetadata(DublinCore::CONTRIBUTOR, 'PHP');\n+        $book->addDublinCoreMetadata(DublinCore::CONTRIBUTOR, 'wallabag');\n+\n+        /*\n+         * Front page\n+         */\n+\n+        $book->setCoverImage('Cover.png', file_get_contents('themes/_global/img/appicon/apple-touch-icon-152.png'), 'image/png');\n+\n+        $cover = $content_start.'<div style=\"text-align:center;\"><p>'._('Produced by wallabag with PHPePub').'</p><p>'._('Please open <a href=\"https://github.com/wallabag/wallabag/issues\" >an issue</a> if you have trouble with the display of this E-Book on your device.').'</p></div>'.$bookEnd;\n+\n+        $book->addChapter('Notices', 'Cover2.html', $cover);\n+\n+        $book->buildTOC();\n+\n+        /*\n+         * Adding actual entries\n+         */\n+\n+        foreach ($this->entries as $entry) { //set tags as subjects\n+                foreach ($this->tags as $tag) {\n+                    $book->setSubject($tag['value']);\n+                }\n+\n+            $chapter = $content_start.$entry->getContent().$bookEnd;\n+            $book->addChapter($entry->getTitle(), htmlspecialchars($entry->getTitle()).'.html', $chapter, true, EPub::EXTERNAL_REF_ADD);\n+        }\n+        $book->finalize();\n+        $book->sendBook($this->title);\n+    }\n+\n+    private function produceMobi()\n+    {\n+        $mobi = new \\MOBI();\n+        $content = new \\MOBIFile();\n+\n+        /*\n+         * Book metadata\n+         */\n+\n+        $content->set('title', $this->title);\n+        $content->set('author', implode($this->authors));\n+        $content->set('subject', $this->title);\n+\n+        /*\n+         * Front page\n+         */\n+\n+        $content->appendParagraph('<div style=\"text-align:center;\" ><p>'._('Produced by wallabag with PHPMobi').'</p><p>'._('Please open <a href=\"https://github.com/wallabag/wallabag/issues\" >an issue</a> if you have trouble with the display of this E-Book on your device.').'</p></div>');\n+        $content->appendImage(imagecreatefrompng('themes/_global/img/appicon/apple-touch-icon-152.png'));\n+        $content->appendPageBreak();\n+\n+        /*\n+         * Adding actual entries\n+         */\n+\n+        foreach ($this->entries as $entry) {\n+            $content->appendChapterTitle($entry->getTitle());\n+            $content->appendParagraph($entry->getContent());\n+            $content->appendPageBreak();\n+        }\n+        $mobi->setContentProvider($content);\n+\n+        // the browser inside Kindle Devices doesn't likes special caracters either, we limit to A-z/0-9\n+        $this->title = preg_replace('/[^A-Za-z0-9\\-]/', '', $this->title);\n+\n+        // we offer file to download\n+        $mobi->download($this->title.'.mobi');\n+    }\n+\n+    private function producePDF()\n+    {\n+        $pdf = new \\TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n+\n+        /*\n+         * Book metadata\n+         */\n+\n+        $pdf->SetCreator(PDF_CREATOR);\n+        $pdf->SetAuthor('wallabag');\n+        $pdf->SetTitle($this->title);\n+        $pdf->SetSubject('Articles via wallabag');\n+        $pdf->SetKeywords('wallabag');\n+\n+        /*\n+         * Front page\n+         */\n+\n+        $pdf->AddPage();\n+        $intro = '<h1>'.$this->title.'</h1><div style=\"text-align:center;\" >\n+        <p>'._('Produced by wallabag with tcpdf').'</p>\n+        <p>'._('Please open <a href=\"https://github.com/wallabag/wallabag/issues\" >an issue</a> if you have trouble with the display of this E-Book on your device.').'</p>\n+        <img src=\"themes/_global/img/appicon/apple-touch-icon-152.png\" /></div>';\n+\n+        $pdf->writeHTMLCell(0, 0, '', '', $intro, 0, 1, 0, true, '', true);\n+\n+        /*\n+         * Adding actual entries\n+         */\n+\n+        foreach ($this->entries as $entry) {\n+            foreach ($this->tags as $tag) {\n+                $pdf->SetKeywords($tag['value']);\n+            }\n+\n+            $pdf->AddPage();\n+            $html = '<h1>'.$entry->getTitle().'</h1>';\n+            $html .= $entry->getContent();\n+            $pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);\n+        }\n+\n+        // set image scale factor\n+        $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n+\n+        $pdf->Output($this->title.'.pdf', 'D');\n+    }\n+\n+    private function produceCSV()\n+    {\n+        header('Content-type: application/csv');","path":"src/Wallabag/CoreBundle/Helper/EntriesExport.php","position":245,"original_position":245,"commit_id":"bb8197b14dd62d4c50ec5cb3d2dc2f2877b34ef1","original_commit_id":"bb8197b14dd62d4c50ec5cb3d2dc2f2877b34ef1","user":{"login":"j0k3r","id":62333,"avatar_url":"https://avatars.githubusercontent.com/u/62333?v=3","gravatar_id":"","url":"https://api.github.com/users/j0k3r","html_url":"https://github.com/j0k3r","followers_url":"https://api.github.com/users/j0k3r/followers","following_url":"https://api.github.com/users/j0k3r/following{/other_user}","gists_url":"https://api.github.com/users/j0k3r/gists{/gist_id}","starred_url":"https://api.github.com/users/j0k3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j0k3r/subscriptions","organizations_url":"https://api.github.com/users/j0k3r/orgs","repos_url":"https://api.github.com/users/j0k3r/repos","events_url":"https://api.github.com/users/j0k3r/events{/privacy}","received_events_url":"https://api.github.com/users/j0k3r/received_events","type":"User","site_admin":false},"body":"You should better create your own Response (from the HttpFoundation) instead of using php internal way.","created_at":"2015-10-06T07:25:59Z","updated_at":"2015-10-06T07:25:59Z","html_url":"https://github.com/wallabag/wallabag/pull/1422#discussion_r41232402","pull_request_url":"https://api.github.com/repos/wallabag/wallabag/pulls/1422","_links":{"self":{"href":"https://api.github.com/repos/wallabag/wallabag/pulls/comments/41232402"},"html":{"href":"https://github.com/wallabag/wallabag/pull/1422#discussion_r41232402"},"pull_request":{"href":"https://api.github.com/repos/wallabag/wallabag/pulls/1422"}}},"pull_request":{"url":"https://api.github.com/repos/wallabag/wallabag/pulls/1422","id":45083492,"html_url":"https://github.com/wallabag/wallabag/pull/1422","diff_url":"https://github.com/wallabag/wallabag/pull/1422.diff","patch_url":"https://github.com/wallabag/wallabag/pull/1422.patch","issue_url":"https://api.github.com/repos/wallabag/wallabag/issues/1422","number":1422,"state":"open","locked":false,"title":"V2 ebook","user":{"login":"tcitworld","id":2197836,"avatar_url":"https://avatars.githubusercontent.com/u/2197836?v=3","gravatar_id":"","url":"https://api.github.com/users/tcitworld","html_url":"https://github.com/tcitworld","followers_url":"https://api.github.com/users/tcitworld/followers","following_url":"https://api.github.com/users/tcitworld/following{/other_user}","gists_url":"https://api.github.com/users/tcitworld/gists{/gist_id}","starred_url":"https://api.github.com/users/tcitworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcitworld/subscriptions","organizations_url":"https://api.github.com/users/tcitworld/orgs","repos_url":"https://api.github.com/users/tcitworld/repos","events_url":"https://api.github.com/users/tcitworld/events{/privacy}","received_events_url":"https://api.github.com/users/tcitworld/received_events","type":"User","site_admin":false},"body":"What routes would you like ?\r\n\r\nFor now I just have `/category/ebook/format` for groups of articles and `/ebook/id/format` for one entry.\r\n","created_at":"2015-09-15T18:17:40Z","updated_at":"2015-10-06T07:25:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be5e21ac111aa0858595187d440c872d8f2c8b4d","assignee":null,"milestone":{"url":"https://api.github.com/repos/wallabag/wallabag/milestones/6","html_url":"https://github.com/wallabag/wallabag/milestones/2.0.0","labels_url":"https://api.github.com/repos/wallabag/wallabag/milestones/6/labels","id":402907,"number":6,"title":"2.0.0","description":"","creator":{"login":"nicosomb","id":121870,"avatar_url":"https://avatars.githubusercontent.com/u/121870?v=3","gravatar_id":"","url":"https://api.github.com/users/nicosomb","html_url":"https://github.com/nicosomb","followers_url":"https://api.github.com/users/nicosomb/followers","following_url":"https://api.github.com/users/nicosomb/following{/other_user}","gists_url":"https://api.github.com/users/nicosomb/gists{/gist_id}","starred_url":"https://api.github.com/users/nicosomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicosomb/subscriptions","organizations_url":"https://api.github.com/users/nicosomb/orgs","repos_url":"https://api.github.com/users/nicosomb/repos","events_url":"https://api.github.com/users/nicosomb/events{/privacy}","received_events_url":"https://api.github.com/users/nicosomb/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":3,"state":"open","created_at":"2013-08-15T19:39:25Z","updated_at":"2015-10-04T17:25:08Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/wallabag/wallabag/pulls/1422/commits","review_comments_url":"https://api.github.com/repos/wallabag/wallabag/pulls/1422/comments","review_comment_url":"https://api.github.com/repos/wallabag/wallabag/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wallabag/wallabag/issues/1422/comments","statuses_url":"https://api.github.com/repos/wallabag/wallabag/statuses/bb8197b14dd62d4c50ec5cb3d2dc2f2877b34ef1","head":{"label":"wallabag:v2-ebook","ref":"v2-ebook","sha":"bb8197b14dd62d4c50ec5cb3d2dc2f2877b34ef1","user":{"login":"wallabag","id":4143872,"avatar_url":"https://avatars.githubusercontent.com/u/4143872?v=3","gravatar_id":"","url":"https://api.github.com/users/wallabag","html_url":"https://github.com/wallabag","followers_url":"https://api.github.com/users/wallabag/followers","following_url":"https://api.github.com/users/wallabag/following{/other_user}","gists_url":"https://api.github.com/users/wallabag/gists{/gist_id}","starred_url":"https://api.github.com/users/wallabag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallabag/subscriptions","organizations_url":"https://api.github.com/users/wallabag/orgs","repos_url":"https://api.github.com/users/wallabag/repos","events_url":"https://api.github.com/users/wallabag/events{/privacy}","received_events_url":"https://api.github.com/users/wallabag/received_events","type":"Organization","site_admin":false},"repo":{"id":9193949,"name":"wallabag","full_name":"wallabag/wallabag","owner":{"login":"wallabag","id":4143872,"avatar_url":"https://avatars.githubusercontent.com/u/4143872?v=3","gravatar_id":"","url":"https://api.github.com/users/wallabag","html_url":"https://github.com/wallabag","followers_url":"https://api.github.com/users/wallabag/followers","following_url":"https://api.github.com/users/wallabag/following{/other_user}","gists_url":"https://api.github.com/users/wallabag/gists{/gist_id}","starred_url":"https://api.github.com/users/wallabag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallabag/subscriptions","organizations_url":"https://api.github.com/users/wallabag/orgs","repos_url":"https://api.github.com/users/wallabag/repos","events_url":"https://api.github.com/users/wallabag/events{/privacy}","received_events_url":"https://api.github.com/users/wallabag/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wallabag/wallabag","description":"open source self hostable read-it-later web app. Download the latest stable version: https://www.wallabag.org/pages/download-wallabag.html","fork":false,"url":"https://api.github.com/repos/wallabag/wallabag","forks_url":"https://api.github.com/repos/wallabag/wallabag/forks","keys_url":"https://api.github.com/repos/wallabag/wallabag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wallabag/wallabag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wallabag/wallabag/teams","hooks_url":"https://api.github.com/repos/wallabag/wallabag/hooks","issue_events_url":"https://api.github.com/repos/wallabag/wallabag/issues/events{/number}","events_url":"https://api.github.com/repos/wallabag/wallabag/events","assignees_url":"https://api.github.com/repos/wallabag/wallabag/assignees{/user}","branches_url":"https://api.github.com/repos/wallabag/wallabag/branches{/branch}","tags_url":"https://api.github.com/repos/wallabag/wallabag/tags","blobs_url":"https://api.github.com/repos/wallabag/wallabag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wallabag/wallabag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wallabag/wallabag/git/refs{/sha}","trees_url":"https://api.github.com/repos/wallabag/wallabag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wallabag/wallabag/statuses/{sha}","languages_url":"https://api.github.com/repos/wallabag/wallabag/languages","stargazers_url":"https://api.github.com/repos/wallabag/wallabag/stargazers","contributors_url":"https://api.github.com/repos/wallabag/wallabag/contributors","subscribers_url":"https://api.github.com/repos/wallabag/wallabag/subscribers","subscription_url":"https://api.github.com/repos/wallabag/wallabag/subscription","commits_url":"https://api.github.com/repos/wallabag/wallabag/commits{/sha}","git_commits_url":"https://api.github.com/repos/wallabag/wallabag/git/commits{/sha}","comments_url":"https://api.github.com/repos/wallabag/wallabag/comments{/number}","issue_comment_url":"https://api.github.com/repos/wallabag/wallabag/issues/comments{/number}","contents_url":"https://api.github.com/repos/wallabag/wallabag/contents/{+path}","compare_url":"https://api.github.com/repos/wallabag/wallabag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wallabag/wallabag/merges","archive_url":"https://api.github.com/repos/wallabag/wallabag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wallabag/wallabag/downloads","issues_url":"https://api.github.com/repos/wallabag/wallabag/issues{/number}","pulls_url":"https://api.github.com/repos/wallabag/wallabag/pulls{/number}","milestones_url":"https://api.github.com/repos/wallabag/wallabag/milestones{/number}","notifications_url":"https://api.github.com/repos/wallabag/wallabag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wallabag/wallabag/labels{/name}","releases_url":"https://api.github.com/repos/wallabag/wallabag/releases{/id}","created_at":"2013-04-03T12:21:14Z","updated_at":"2015-10-05T16:31:35Z","pushed_at":"2015-10-06T07:19:08Z","git_url":"git://github.com/wallabag/wallabag.git","ssh_url":"git@github.com:wallabag/wallabag.git","clone_url":"https://github.com/wallabag/wallabag.git","svn_url":"https://github.com/wallabag/wallabag","homepage":"https://www.wallabag.org","size":44253,"stargazers_count":1452,"watchers_count":1452,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":239,"mirror_url":null,"open_issues_count":241,"forks":239,"open_issues":241,"watchers":1452,"default_branch":"master"}},"base":{"label":"wallabag:v2","ref":"v2","sha":"0e8f77819951bf8c6fa47fba7c0e004bdb7e7a41","user":{"login":"wallabag","id":4143872,"avatar_url":"https://avatars.githubusercontent.com/u/4143872?v=3","gravatar_id":"","url":"https://api.github.com/users/wallabag","html_url":"https://github.com/wallabag","followers_url":"https://api.github.com/users/wallabag/followers","following_url":"https://api.github.com/users/wallabag/following{/other_user}","gists_url":"https://api.github.com/users/wallabag/gists{/gist_id}","starred_url":"https://api.github.com/users/wallabag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallabag/subscriptions","organizations_url":"https://api.github.com/users/wallabag/orgs","repos_url":"https://api.github.com/users/wallabag/repos","events_url":"https://api.github.com/users/wallabag/events{/privacy}","received_events_url":"https://api.github.com/users/wallabag/received_events","type":"Organization","site_admin":false},"repo":{"id":9193949,"name":"wallabag","full_name":"wallabag/wallabag","owner":{"login":"wallabag","id":4143872,"avatar_url":"https://avatars.githubusercontent.com/u/4143872?v=3","gravatar_id":"","url":"https://api.github.com/users/wallabag","html_url":"https://github.com/wallabag","followers_url":"https://api.github.com/users/wallabag/followers","following_url":"https://api.github.com/users/wallabag/following{/other_user}","gists_url":"https://api.github.com/users/wallabag/gists{/gist_id}","starred_url":"https://api.github.com/users/wallabag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallabag/subscriptions","organizations_url":"https://api.github.com/users/wallabag/orgs","repos_url":"https://api.github.com/users/wallabag/repos","events_url":"https://api.github.com/users/wallabag/events{/privacy}","received_events_url":"https://api.github.com/users/wallabag/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wallabag/wallabag","description":"open source self hostable read-it-later web app. Download the latest stable version: https://www.wallabag.org/pages/download-wallabag.html","fork":false,"url":"https://api.github.com/repos/wallabag/wallabag","forks_url":"https://api.github.com/repos/wallabag/wallabag/forks","keys_url":"https://api.github.com/repos/wallabag/wallabag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wallabag/wallabag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wallabag/wallabag/teams","hooks_url":"https://api.github.com/repos/wallabag/wallabag/hooks","issue_events_url":"https://api.github.com/repos/wallabag/wallabag/issues/events{/number}","events_url":"https://api.github.com/repos/wallabag/wallabag/events","assignees_url":"https://api.github.com/repos/wallabag/wallabag/assignees{/user}","branches_url":"https://api.github.com/repos/wallabag/wallabag/branches{/branch}","tags_url":"https://api.github.com/repos/wallabag/wallabag/tags","blobs_url":"https://api.github.com/repos/wallabag/wallabag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wallabag/wallabag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wallabag/wallabag/git/refs{/sha}","trees_url":"https://api.github.com/repos/wallabag/wallabag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wallabag/wallabag/statuses/{sha}","languages_url":"https://api.github.com/repos/wallabag/wallabag/languages","stargazers_url":"https://api.github.com/repos/wallabag/wallabag/stargazers","contributors_url":"https://api.github.com/repos/wallabag/wallabag/contributors","subscribers_url":"https://api.github.com/repos/wallabag/wallabag/subscribers","subscription_url":"https://api.github.com/repos/wallabag/wallabag/subscription","commits_url":"https://api.github.com/repos/wallabag/wallabag/commits{/sha}","git_commits_url":"https://api.github.com/repos/wallabag/wallabag/git/commits{/sha}","comments_url":"https://api.github.com/repos/wallabag/wallabag/comments{/number}","issue_comment_url":"https://api.github.com/repos/wallabag/wallabag/issues/comments{/number}","contents_url":"https://api.github.com/repos/wallabag/wallabag/contents/{+path}","compare_url":"https://api.github.com/repos/wallabag/wallabag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wallabag/wallabag/merges","archive_url":"https://api.github.com/repos/wallabag/wallabag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wallabag/wallabag/downloads","issues_url":"https://api.github.com/repos/wallabag/wallabag/issues{/number}","pulls_url":"https://api.github.com/repos/wallabag/wallabag/pulls{/number}","milestones_url":"https://api.github.com/repos/wallabag/wallabag/milestones{/number}","notifications_url":"https://api.github.com/repos/wallabag/wallabag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wallabag/wallabag/labels{/name}","releases_url":"https://api.github.com/repos/wallabag/wallabag/releases{/id}","created_at":"2013-04-03T12:21:14Z","updated_at":"2015-10-05T16:31:35Z","pushed_at":"2015-10-06T07:19:08Z","git_url":"git://github.com/wallabag/wallabag.git","ssh_url":"git@github.com:wallabag/wallabag.git","clone_url":"https://github.com/wallabag/wallabag.git","svn_url":"https://github.com/wallabag/wallabag","homepage":"https://www.wallabag.org","size":44253,"stargazers_count":1452,"watchers_count":1452,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":239,"mirror_url":null,"open_issues_count":241,"forks":239,"open_issues":241,"watchers":1452,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wallabag/wallabag/pulls/1422"},"html":{"href":"https://github.com/wallabag/wallabag/pull/1422"},"issue":{"href":"https://api.github.com/repos/wallabag/wallabag/issues/1422"},"comments":{"href":"https://api.github.com/repos/wallabag/wallabag/issues/1422/comments"},"review_comments":{"href":"https://api.github.com/repos/wallabag/wallabag/pulls/1422/comments"},"review_comment":{"href":"https://api.github.com/repos/wallabag/wallabag/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wallabag/wallabag/pulls/1422/commits"},"statuses":{"href":"https://api.github.com/repos/wallabag/wallabag/statuses/bb8197b14dd62d4c50ec5cb3d2dc2f2877b34ef1"}}}}