{"action":"created","comment":{"url":"https://api.github.com/repos/sulu/sulu/pulls/comments/72198198","id":72198198,"diff_hunk":"@@ -0,0 +1,225 @@\n+<?php\n+\n+/*\n+ * This file is part of Sulu.\n+ *\n+ * (c) MASSIVE ART WebServices GmbH\n+ *\n+ * This source file is subject to the MIT license that is bundled\n+ * with this source code in the file LICENSE.\n+ */\n+\n+namespace Sulu\\Bundle\\ContentBundle\\Tests\\Functional\\Repository;\n+\n+use Sulu\\Bundle\\ContentBundle\\Document\\BasePageDocument;\n+use Sulu\\Bundle\\ContentBundle\\Document\\PageDocument;\n+use Sulu\\Bundle\\ContentBundle\\Repository\\ResourceLocatorRepository;\n+use Sulu\\Bundle\\ContentBundle\\Repository\\ResourceLocatorRepositoryInterface;\n+use Sulu\\Component\\Content\\Compat\\Property;\n+use Sulu\\Component\\Content\\Compat\\StructureInterface;\n+use Sulu\\Component\\Content\\Compat\\StructureManagerInterface;\n+use Sulu\\Component\\Content\\Types\\Rlp\\ResourceLocatorInformation;\n+use Sulu\\Component\\Content\\Types\\Rlp\\Strategy\\RlpStrategyInterface;\n+use Sulu\\Component\\DocumentManager\\DocumentManagerInterface;\n+\n+/**\n+ * @group unit\n+ * @group repository\n+ */\n+class ResourceLocatorRepositoryTest extends \\PHPUnit_Framework_TestCase\n+{\n+    /**\n+     * @var ResourceLocatorRepositoryInterface\n+     */\n+    private $repository;\n+\n+    /**\n+     * @var StructureManagerInterface\n+     */\n+    private $structureManager;\n+\n+    /**\n+     * @var RlpStrategyInterface\n+     */\n+    private $rlpStrategy;\n+\n+    /**\n+     * @var DocumentManagerInterface\n+     */\n+    private $documentManager;\n+\n+    protected function setUp()\n+    {\n+        $this->structureManager = $this->prophesize(StructureManagerInterface::class);\n+        $this->rlpStrategy = $this->prophesize(RlpStrategyInterface::class);\n+        $this->documentManager = $this->prophesize(DocumentManagerInterface::class);\n+\n+        $this->repository = new ResourceLocatorRepository(\n+            $this->rlpStrategy->reveal(),\n+            $this->structureManager->reveal(),\n+            $this->documentManager->reveal()\n+        );\n+    }\n+\n+    public function testGenerateWithParentUuid()\n+    {\n+        $parts = [\n+            'title' => 'news',\n+            'subtitle' => 'football',\n+        ];\n+        $parentUuid = '0123456789abcdef';\n+        $webspace = 'sulu_io';\n+        $locale = 'en';\n+        $template = 'default';\n+\n+        $structure = $this->prophesize(StructureInterface::class);\n+        $structure->getPropertiesByTagName('sulu.rlp.part')->willReturn([\n+            new Property('subtitle', 'subtitle', 'subtitle'),\n+            new Property('title', 'title', 'title'),\n+        ]);\n+        $this->structureManager->getStructure($template)->willReturn($structure->reveal());\n+\n+        $parent = $this->prophesize(BasePageDocument::class);\n+        $parent->getPublished()->willReturn(true);\n+        $this->documentManager->find($parentUuid, $locale, ['load_ghost_content' => false])->willReturn($parent->reveal());\n+\n+        $parentPath = '/parent';\n+        $this->rlpStrategy->loadByContent($parent)->willReturn($parentPath);\n+\n+        $title = 'news-football';\n+        $path = '/parent/news-football';\n+        $this->rlpStrategy->generate($title, $parentPath, $webspace, $locale, null)->willReturn($path);\n+\n+        $result = $this->repository->generate($parts, $parentUuid, null, $webspace, $locale, $template);\n+        $this->assertEquals($result['resourceLocator'], $path);\n+    }\n+\n+    public function testGenerateWithUnpublishedParent()\n+    {\n+        $parts = [\n+            'title' => 'news',\n+            'subtitle' => 'football',\n+        ];\n+        $parentUuid = '0123456789abcdef';\n+        $webspace = 'sulu_io';\n+        $locale = 'en';\n+        $template = 'default';\n+\n+        $structure = $this->prophesize(StructureInterface::class);\n+        $structure->getPropertiesByTagName('sulu.rlp.part')->willReturn([\n+            new Property('subtitle', 'subtitle', 'subtitle'),\n+            new Property('title', 'title', 'title'),\n+        ]);\n+        $this->structureManager->getStructure($template)->willReturn($structure->reveal());\n+\n+        $grandParent = $this->prophesize(BasePageDocument::class);\n+        $grandParent->getPublished()->willReturn(true);\n+\n+        $parent = $this->prophesize(PageDocument::class);\n+        $parent->getPublished()->willReturn(false);\n+        $parent->getParent()->willReturn($grandParent->reveal());\n+\n+        $this->documentManager->find($parentUuid, $locale, ['load_ghost_content' => false])->willReturn($parent->reveal());\n+\n+        $grandParentPath = '/grandparent';\n+        $this->rlpStrategy->loadByContent($grandParent)->willReturn($grandParentPath);\n+\n+        $title = 'news-football';\n+        $path = '/grandparent/news-football';\n+        $this->rlpStrategy->generate($title, $grandParentPath, $webspace, $locale, null)->willReturn($path);\n+\n+        $result = $this->repository->generate($parts, $parentUuid, null, $webspace, $locale, $template);\n+        $this->assertEquals($result['resourceLocator'], $path);\n+    }\n+\n+    public function testGenerateWithUuid()\n+    {\n+        $parts = [\n+            'title' => 'news',\n+            'subtitle' => 'football',\n+        ];\n+        $uuid = '0123456789abcdef';\n+        $webspace = 'sulu_io';\n+        $locale = 'en';\n+        $template = 'default';\n+\n+        $structure = $this->prophesize(StructureInterface::class);\n+        $structure->getPropertiesByTagName('sulu.rlp.part')->willReturn([\n+            new Property('subtitle', 'subtitle', 'subtitle'),\n+            new Property('title', 'title', 'title'),\n+        ]);\n+        $this->structureManager->getStructure($template)->willReturn($structure->reveal());\n+\n+        $title = 'news-football';\n+        $path = '/ancestor/news-football';\n+        $this->rlpStrategy->generateForUuid($title, $uuid, $webspace, $locale, null)->willReturn($path);\n+\n+        $result = $this->repository->generate($parts, null, $uuid, $webspace, $locale, $template);\n+        $this->assertEquals($result['resourceLocator'], $path);\n+    }\n+\n+    public function testGenerate()\n+    {\n+        $parts = [\n+            'title' => 'news',\n+            'subtitle' => 'football',\n+        ];\n+        $webspace = 'sulu_io';\n+        $locale = 'en';\n+        $template = 'default';\n+\n+        $structure = $this->prophesize(StructureInterface::class);\n+        $structure->getPropertiesByTagName('sulu.rlp.part')->willReturn([\n+            new Property('subtitle', 'subtitle', 'subtitle'),\n+            new Property('title', 'title', 'title'),\n+        ]);\n+        $this->structureManager->getStructure($template)->willReturn($structure->reveal());\n+\n+        $title = 'news-football';\n+        $path = '/news-football';\n+        $this->rlpStrategy->generate($title, '/', $webspace, $locale, null)->willReturn($path);\n+\n+        $result = $this->repository->generate($parts, null, null, $webspace, $locale, $template);\n+        $this->assertEquals($result['resourceLocator'], $path);","path":"src/Sulu/Bundle/ContentBundle/Tests/Unit/Repository/ResourceLocatorRepositoryTest.php","position":183,"original_position":183,"commit_id":"a04d255d5ab6ea203a9c92d08b47684257b4232a","original_commit_id":"a04d255d5ab6ea203a9c92d08b47684257b4232a","user":{"login":"danrot","id":405874,"avatar_url":"https://avatars.githubusercontent.com/u/405874?v=3","gravatar_id":"","url":"https://api.github.com/users/danrot","html_url":"https://github.com/danrot","followers_url":"https://api.github.com/users/danrot/followers","following_url":"https://api.github.com/users/danrot/following{/other_user}","gists_url":"https://api.github.com/users/danrot/gists{/gist_id}","starred_url":"https://api.github.com/users/danrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrot/subscriptions","organizations_url":"https://api.github.com/users/danrot/orgs","repos_url":"https://api.github.com/users/danrot/repos","events_url":"https://api.github.com/users/danrot/events{/privacy}","received_events_url":"https://api.github.com/users/danrot/received_events","type":"User","site_admin":false},"body":"Actually I meant you shouldn't use the `$path` variable at all, because it is easier to read here, and needs less memory 😉 ","created_at":"2016-07-26T07:07:30Z","updated_at":"2016-07-26T07:07:30Z","html_url":"https://github.com/sulu/sulu/pull/2668#discussion_r72198198","pull_request_url":"https://api.github.com/repos/sulu/sulu/pulls/2668","_links":{"self":{"href":"https://api.github.com/repos/sulu/sulu/pulls/comments/72198198"},"html":{"href":"https://github.com/sulu/sulu/pull/2668#discussion_r72198198"},"pull_request":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2668"}}},"pull_request":{"url":"https://api.github.com/repos/sulu/sulu/pulls/2668","id":78654957,"html_url":"https://github.com/sulu/sulu/pull/2668","diff_url":"https://github.com/sulu/sulu/pull/2668.diff","patch_url":"https://github.com/sulu/sulu/pull/2668.patch","issue_url":"https://api.github.com/repos/sulu/sulu/issues/2668","number":2668,"state":"open","locked":false,"title":"resource locator generation for pages with unpublished parents","user":{"login":"nnatter","id":13310795,"avatar_url":"https://avatars.githubusercontent.com/u/13310795?v=3","gravatar_id":"","url":"https://api.github.com/users/nnatter","html_url":"https://github.com/nnatter","followers_url":"https://api.github.com/users/nnatter/followers","following_url":"https://api.github.com/users/nnatter/following{/other_user}","gists_url":"https://api.github.com/users/nnatter/gists{/gist_id}","starred_url":"https://api.github.com/users/nnatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnatter/subscriptions","organizations_url":"https://api.github.com/users/nnatter/orgs","repos_url":"https://api.github.com/users/nnatter/repos","events_url":"https://api.github.com/users/nnatter/events{/privacy}","received_events_url":"https://api.github.com/users/nnatter/received_events","type":"User","site_admin":false},"body":"| Q | A\r\n| --- | ---\r\n| Bug fix? | yes\r\n| New feature? | no\r\n| BC breaks? | no\r\n| Deprecations? | no\r\n| Fixed tickets | fixes #2646 \r\n| Related issues/PRs | -\r\n| License | MIT\r\n| Documentation PR | -\r\n\r\n#### What's in this PR?\r\n\r\nThis PR fixes resource locator generation for new pages with an unpublished parent page.\r\n\r\nThe ResourceLocatorRepository uses the first published ancestor in the same locale (or the root document) of the new page for url-generation now.","created_at":"2016-07-25T09:59:19Z","updated_at":"2016-07-26T07:07:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2131291eb20a9c552ac8ac20fd1cb04212af28a","assignee":{"login":"danrot","id":405874,"avatar_url":"https://avatars.githubusercontent.com/u/405874?v=3","gravatar_id":"","url":"https://api.github.com/users/danrot","html_url":"https://github.com/danrot","followers_url":"https://api.github.com/users/danrot/followers","following_url":"https://api.github.com/users/danrot/following{/other_user}","gists_url":"https://api.github.com/users/danrot/gists{/gist_id}","starred_url":"https://api.github.com/users/danrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrot/subscriptions","organizations_url":"https://api.github.com/users/danrot/orgs","repos_url":"https://api.github.com/users/danrot/repos","events_url":"https://api.github.com/users/danrot/events{/privacy}","received_events_url":"https://api.github.com/users/danrot/received_events","type":"User","site_admin":false},"assignees":[{"login":"danrot","id":405874,"avatar_url":"https://avatars.githubusercontent.com/u/405874?v=3","gravatar_id":"","url":"https://api.github.com/users/danrot","html_url":"https://github.com/danrot","followers_url":"https://api.github.com/users/danrot/followers","following_url":"https://api.github.com/users/danrot/following{/other_user}","gists_url":"https://api.github.com/users/danrot/gists{/gist_id}","starred_url":"https://api.github.com/users/danrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrot/subscriptions","organizations_url":"https://api.github.com/users/danrot/orgs","repos_url":"https://api.github.com/users/danrot/repos","events_url":"https://api.github.com/users/danrot/events{/privacy}","received_events_url":"https://api.github.com/users/danrot/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/sulu/sulu/milestones/16","html_url":"https://github.com/sulu/sulu/milestones/Release%201.3","labels_url":"https://api.github.com/repos/sulu/sulu/milestones/16/labels","id":1447256,"number":16,"title":"Release 1.3","description":"","creator":{"login":"chirimoya","id":627313,"avatar_url":"https://avatars.githubusercontent.com/u/627313?v=3","gravatar_id":"","url":"https://api.github.com/users/chirimoya","html_url":"https://github.com/chirimoya","followers_url":"https://api.github.com/users/chirimoya/followers","following_url":"https://api.github.com/users/chirimoya/following{/other_user}","gists_url":"https://api.github.com/users/chirimoya/gists{/gist_id}","starred_url":"https://api.github.com/users/chirimoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chirimoya/subscriptions","organizations_url":"https://api.github.com/users/chirimoya/orgs","repos_url":"https://api.github.com/users/chirimoya/repos","events_url":"https://api.github.com/users/chirimoya/events{/privacy}","received_events_url":"https://api.github.com/users/chirimoya/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":82,"state":"open","created_at":"2015-12-07T09:55:53Z","updated_at":"2016-07-25T16:31:05Z","due_on":"2016-07-13T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/sulu/sulu/pulls/2668/commits","review_comments_url":"https://api.github.com/repos/sulu/sulu/pulls/2668/comments","review_comment_url":"https://api.github.com/repos/sulu/sulu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sulu/sulu/issues/2668/comments","statuses_url":"https://api.github.com/repos/sulu/sulu/statuses/a04d255d5ab6ea203a9c92d08b47684257b4232a","head":{"label":"nnatter:bugfix/unpublished-resource-locator-generation","ref":"bugfix/unpublished-resource-locator-generation","sha":"a04d255d5ab6ea203a9c92d08b47684257b4232a","user":{"login":"nnatter","id":13310795,"avatar_url":"https://avatars.githubusercontent.com/u/13310795?v=3","gravatar_id":"","url":"https://api.github.com/users/nnatter","html_url":"https://github.com/nnatter","followers_url":"https://api.github.com/users/nnatter/followers","following_url":"https://api.github.com/users/nnatter/following{/other_user}","gists_url":"https://api.github.com/users/nnatter/gists{/gist_id}","starred_url":"https://api.github.com/users/nnatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnatter/subscriptions","organizations_url":"https://api.github.com/users/nnatter/orgs","repos_url":"https://api.github.com/users/nnatter/repos","events_url":"https://api.github.com/users/nnatter/events{/privacy}","received_events_url":"https://api.github.com/users/nnatter/received_events","type":"User","site_admin":false},"repo":{"id":63066847,"name":"sulu","full_name":"nnatter/sulu","owner":{"login":"nnatter","id":13310795,"avatar_url":"https://avatars.githubusercontent.com/u/13310795?v=3","gravatar_id":"","url":"https://api.github.com/users/nnatter","html_url":"https://github.com/nnatter","followers_url":"https://api.github.com/users/nnatter/followers","following_url":"https://api.github.com/users/nnatter/following{/other_user}","gists_url":"https://api.github.com/users/nnatter/gists{/gist_id}","starred_url":"https://api.github.com/users/nnatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnatter/subscriptions","organizations_url":"https://api.github.com/users/nnatter/orgs","repos_url":"https://api.github.com/users/nnatter/repos","events_url":"https://api.github.com/users/nnatter/events{/privacy}","received_events_url":"https://api.github.com/users/nnatter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nnatter/sulu","description":"Sulu core bundles & components","fork":true,"url":"https://api.github.com/repos/nnatter/sulu","forks_url":"https://api.github.com/repos/nnatter/sulu/forks","keys_url":"https://api.github.com/repos/nnatter/sulu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nnatter/sulu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nnatter/sulu/teams","hooks_url":"https://api.github.com/repos/nnatter/sulu/hooks","issue_events_url":"https://api.github.com/repos/nnatter/sulu/issues/events{/number}","events_url":"https://api.github.com/repos/nnatter/sulu/events","assignees_url":"https://api.github.com/repos/nnatter/sulu/assignees{/user}","branches_url":"https://api.github.com/repos/nnatter/sulu/branches{/branch}","tags_url":"https://api.github.com/repos/nnatter/sulu/tags","blobs_url":"https://api.github.com/repos/nnatter/sulu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nnatter/sulu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nnatter/sulu/git/refs{/sha}","trees_url":"https://api.github.com/repos/nnatter/sulu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nnatter/sulu/statuses/{sha}","languages_url":"https://api.github.com/repos/nnatter/sulu/languages","stargazers_url":"https://api.github.com/repos/nnatter/sulu/stargazers","contributors_url":"https://api.github.com/repos/nnatter/sulu/contributors","subscribers_url":"https://api.github.com/repos/nnatter/sulu/subscribers","subscription_url":"https://api.github.com/repos/nnatter/sulu/subscription","commits_url":"https://api.github.com/repos/nnatter/sulu/commits{/sha}","git_commits_url":"https://api.github.com/repos/nnatter/sulu/git/commits{/sha}","comments_url":"https://api.github.com/repos/nnatter/sulu/comments{/number}","issue_comment_url":"https://api.github.com/repos/nnatter/sulu/issues/comments{/number}","contents_url":"https://api.github.com/repos/nnatter/sulu/contents/{+path}","compare_url":"https://api.github.com/repos/nnatter/sulu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nnatter/sulu/merges","archive_url":"https://api.github.com/repos/nnatter/sulu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nnatter/sulu/downloads","issues_url":"https://api.github.com/repos/nnatter/sulu/issues{/number}","pulls_url":"https://api.github.com/repos/nnatter/sulu/pulls{/number}","milestones_url":"https://api.github.com/repos/nnatter/sulu/milestones{/number}","notifications_url":"https://api.github.com/repos/nnatter/sulu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nnatter/sulu/labels{/name}","releases_url":"https://api.github.com/repos/nnatter/sulu/releases{/id}","deployments_url":"https://api.github.com/repos/nnatter/sulu/deployments","created_at":"2016-07-11T12:40:56Z","updated_at":"2016-07-11T12:41:04Z","pushed_at":"2016-07-26T06:22:14Z","git_url":"git://github.com/nnatter/sulu.git","ssh_url":"git@github.com:nnatter/sulu.git","clone_url":"https://github.com/nnatter/sulu.git","svn_url":"https://github.com/nnatter/sulu","homepage":"sulu.io","size":76603,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"sulu:develop","ref":"develop","sha":"00a995ef490e5e4f25d89f32285d4dd7b4762703","user":{"login":"sulu","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu","html_url":"https://github.com/sulu","followers_url":"https://api.github.com/users/sulu/followers","following_url":"https://api.github.com/users/sulu/following{/other_user}","gists_url":"https://api.github.com/users/sulu/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu/subscriptions","organizations_url":"https://api.github.com/users/sulu/orgs","repos_url":"https://api.github.com/users/sulu/repos","events_url":"https://api.github.com/users/sulu/events{/privacy}","received_events_url":"https://api.github.com/users/sulu/received_events","type":"Organization","site_admin":false},"repo":{"id":13678015,"name":"sulu","full_name":"sulu/sulu","owner":{"login":"sulu","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu","html_url":"https://github.com/sulu","followers_url":"https://api.github.com/users/sulu/followers","following_url":"https://api.github.com/users/sulu/following{/other_user}","gists_url":"https://api.github.com/users/sulu/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu/subscriptions","organizations_url":"https://api.github.com/users/sulu/orgs","repos_url":"https://api.github.com/users/sulu/repos","events_url":"https://api.github.com/users/sulu/events{/privacy}","received_events_url":"https://api.github.com/users/sulu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sulu/sulu","description":"Sulu core bundles & components","fork":false,"url":"https://api.github.com/repos/sulu/sulu","forks_url":"https://api.github.com/repos/sulu/sulu/forks","keys_url":"https://api.github.com/repos/sulu/sulu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sulu/sulu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sulu/sulu/teams","hooks_url":"https://api.github.com/repos/sulu/sulu/hooks","issue_events_url":"https://api.github.com/repos/sulu/sulu/issues/events{/number}","events_url":"https://api.github.com/repos/sulu/sulu/events","assignees_url":"https://api.github.com/repos/sulu/sulu/assignees{/user}","branches_url":"https://api.github.com/repos/sulu/sulu/branches{/branch}","tags_url":"https://api.github.com/repos/sulu/sulu/tags","blobs_url":"https://api.github.com/repos/sulu/sulu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sulu/sulu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sulu/sulu/git/refs{/sha}","trees_url":"https://api.github.com/repos/sulu/sulu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sulu/sulu/statuses/{sha}","languages_url":"https://api.github.com/repos/sulu/sulu/languages","stargazers_url":"https://api.github.com/repos/sulu/sulu/stargazers","contributors_url":"https://api.github.com/repos/sulu/sulu/contributors","subscribers_url":"https://api.github.com/repos/sulu/sulu/subscribers","subscription_url":"https://api.github.com/repos/sulu/sulu/subscription","commits_url":"https://api.github.com/repos/sulu/sulu/commits{/sha}","git_commits_url":"https://api.github.com/repos/sulu/sulu/git/commits{/sha}","comments_url":"https://api.github.com/repos/sulu/sulu/comments{/number}","issue_comment_url":"https://api.github.com/repos/sulu/sulu/issues/comments{/number}","contents_url":"https://api.github.com/repos/sulu/sulu/contents/{+path}","compare_url":"https://api.github.com/repos/sulu/sulu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sulu/sulu/merges","archive_url":"https://api.github.com/repos/sulu/sulu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sulu/sulu/downloads","issues_url":"https://api.github.com/repos/sulu/sulu/issues{/number}","pulls_url":"https://api.github.com/repos/sulu/sulu/pulls{/number}","milestones_url":"https://api.github.com/repos/sulu/sulu/milestones{/number}","notifications_url":"https://api.github.com/repos/sulu/sulu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sulu/sulu/labels{/name}","releases_url":"https://api.github.com/repos/sulu/sulu/releases{/id}","deployments_url":"https://api.github.com/repos/sulu/sulu/deployments","created_at":"2013-10-18T12:57:02Z","updated_at":"2016-07-18T02:26:52Z","pushed_at":"2016-07-26T06:42:32Z","git_url":"git://github.com/sulu/sulu.git","ssh_url":"git@github.com:sulu/sulu.git","clone_url":"https://github.com/sulu/sulu.git","svn_url":"https://github.com/sulu/sulu","homepage":"sulu.io","size":86947,"stargazers_count":133,"watchers_count":133,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":437,"forks":52,"open_issues":437,"watchers":133,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2668"},"html":{"href":"https://github.com/sulu/sulu/pull/2668"},"issue":{"href":"https://api.github.com/repos/sulu/sulu/issues/2668"},"comments":{"href":"https://api.github.com/repos/sulu/sulu/issues/2668/comments"},"review_comments":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2668/comments"},"review_comment":{"href":"https://api.github.com/repos/sulu/sulu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2668/commits"},"statuses":{"href":"https://api.github.com/repos/sulu/sulu/statuses/a04d255d5ab6ea203a9c92d08b47684257b4232a"}}}}
{"actor":{"display_login":"danrot"}}