{"action":"created","comment":{"url":"https://api.github.com/repos/dotCMS/core/pulls/comments/184130752","pull_request_review_id":115263173,"id":184130752,"diff_hunk":"@@ -0,0 +1,206 @@\n+package com.dotcms.rest.api.v1.authentication.theme;\n+\n+import com.dotcms.repackage.javax.ws.rs.core.Response;\n+import com.dotcms.rest.InitDataObject;\n+import com.dotcms.rest.WebResource;\n+import com.dotcms.rest.exception.ForbiddenException;\n+import com.dotmarketing.beans.Host;\n+import com.dotmarketing.business.UserAPI;\n+import com.dotmarketing.exception.DotDataException;\n+import com.dotmarketing.exception.DotSecurityException;\n+import com.dotmarketing.portlets.contentlet.business.ContentletAPI;\n+import com.dotmarketing.portlets.contentlet.business.HostAPI;\n+import com.dotmarketing.portlets.contentlet.model.Contentlet;\n+import com.dotmarketing.portlets.folders.business.FolderAPI;\n+import com.dotmarketing.portlets.folders.model.Folder;\n+import com.dotmarketing.portlets.htmlpages.theme.business.ThemeAPI;\n+import com.liferay.portal.model.User;\n+import org.junit.Test;\n+import org.springframework.ui.context.Theme;\n+\n+import javax.servlet.http.HttpServletRequest;\n+import javax.servlet.http.HttpSession;\n+\n+import java.util.List;\n+\n+import static com.dotcms.util.CollectionsUtils.list;\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.assertTrue;\n+import static org.mockito.Mockito.mock;\n+import static org.mockito.Mockito.when;\n+\n+/**\n+ * test of {@link ThemeResource}\n+ */\n+public class ThemeResourceTest {\n+\n+    private  static final String FOLDER_1 = \"folder_1\";\n+    private  static final String FOLDER_2 = \"folder_2\";\n+\n+    private  static final String HOST_1 = \"host_1\";\n+    private  static final String HOST_2 = \"host_2\";\n+\n+    /**\n+     * Test of {@link ThemeResource#findThemes(HttpServletRequest, String)}\n+     *\n+     * Given: A host_id as query parameter\n+     * Should: Should create the follow lucene query: +parentpath:/application/themes/* +title:template.vtl host:[host_id]\n+     */\n+    @Test\n+    public void testFindThemesWithHostId() throws DotDataException, DotSecurityException {\n+        final String hostId = \"1\";\n+\n+        final WebResource webResource = mock(WebResource.class);\n+        final InitDataObject initDataObject = mock(InitDataObject.class);\n+        final User user = mock(User.class);\n+        final User systemUser = mock(User.class);\n+        final HttpServletRequest request = mock(HttpServletRequest.class);\n+        final UserAPI userAPI = mock(UserAPI.class);\n+        final ThemeAPI themeAPI = mock(ThemeAPI.class);\n+        final HostAPI hostAPI = mock(HostAPI.class);\n+        final FolderAPI folderAPI = mock(FolderAPI.class);\n+\n+        final Contentlet content1 = mock(Contentlet.class);\n+        final Contentlet content2 = mock(Contentlet.class);\n+        final Host host_1 = mock(Host.class);\n+        final Folder folder_1 = mock(Folder.class);\n+        final Host host_2 = mock(Host.class);\n+        final Folder folder_2 = mock(Folder.class);\n+\n+        final List<Contentlet> contentlets = list(content1, content2);\n+\n+        when(content1.getFolder()).thenReturn(FOLDER_1);\n+        when(content1.getHost()).thenReturn(HOST_1);\n+        when(content2.getFolder()).thenReturn(FOLDER_2);\n+        when(content2.getHost()).thenReturn(HOST_2);\n+\n+        when(folder_1.getName()).thenReturn(FOLDER_1);\n+        when(folder_2.getName()).thenReturn(FOLDER_2);\n+\n+        when(initDataObject.getUser()).thenReturn(user);\n+        when(webResource.init(null, true, request, true, null)).thenReturn(initDataObject);\n+        when(userAPI.getSystemUser()).thenReturn(systemUser);\n+        when(themeAPI.findAll(user, hostId)).thenReturn(contentlets);\n+\n+        when(hostAPI.find(HOST_1, systemUser, false)).thenReturn(host_1);\n+        when(folderAPI.find(FOLDER_1, systemUser, false)).thenReturn(folder_1);\n+        when(hostAPI.find(HOST_2, systemUser, false)).thenReturn(host_2);\n+        when(folderAPI.find(FOLDER_2, systemUser, false)).thenReturn(folder_2);\n+\n+        final ThemeResource themeResource = new ThemeResource(themeAPI, userAPI, hostAPI, folderAPI, webResource);\n+        final Response response = themeResource.findThemes(request, hostId);\n+\n+        final List<ThemeView> themes = (List<ThemeView>) response.getEntity();\n+\n+        assertEquals(2, themes.size());\n+        assertEquals(themes.get(0).getName(), FOLDER_1);\n+        assertEquals(themes.get(0).getHost(), host_1);\n+        assertEquals(themes.get(1).getName(), FOLDER_2);\n+        assertEquals(themes.get(1).getHost(), host_2);\n+    }\n+\n+    /**\n+     * Test of {@link ThemeResource#findThemes(HttpServletRequest, String)}\n+     *\n+     * Given: null host_id query param\n+     * Should: Should create the follow lucene query: +parentpath:/application/themes/* +title:template.vtl host:[current_host]\n+     */\n+    @Test\n+    public void testFindThemesDefaultHostId() throws DotDataException, DotSecurityException {\n+        final String hostId = \"1\";\n+\n+        final WebResource webResource = mock(WebResource.class);\n+        final InitDataObject initDataObject = mock(InitDataObject.class);\n+        final User user = mock(User.class);\n+        final User systemUser = mock(User.class);\n+        final HttpServletRequest request = mock(HttpServletRequest.class);\n+        final HttpSession session = mock(HttpSession.class);\n+        final UserAPI userAPI = mock(UserAPI.class);\n+        final ThemeAPI themeAPI = mock(ThemeAPI.class);\n+        final HostAPI hostAPI = mock(HostAPI.class);\n+        final FolderAPI folderAPI = mock(FolderAPI.class);\n+\n+        final Contentlet content1 = mock(Contentlet.class);\n+        final Contentlet content2 = mock(Contentlet.class);\n+        final Host host_1 = mock(Host.class);\n+        final Folder folder_1 = mock(Folder.class);\n+        final Host host_2 = mock(Host.class);\n+        final Folder folder_2 = mock(Folder.class);\n+\n+        final List<Contentlet> contentlets = list(content1, content2);\n+\n+        when(content1.getFolder()).thenReturn(FOLDER_1);\n+        when(content1.getHost()).thenReturn(HOST_1);\n+        when(content2.getFolder()).thenReturn(FOLDER_2);\n+        when(content2.getHost()).thenReturn(HOST_2);\n+\n+        when(folder_1.getName()).thenReturn(FOLDER_1);\n+        when(folder_2.getName()).thenReturn(FOLDER_2);\n+\n+        when(initDataObject.getUser()).thenReturn(user);\n+        when(webResource.init(null, true, request, true, null)).thenReturn(initDataObject);\n+        when(userAPI.getSystemUser()).thenReturn(systemUser);\n+        when(themeAPI.findAll(user, hostId )).thenReturn(contentlets);\n+\n+        when(hostAPI.find(HOST_1, systemUser, false)).thenReturn(host_1);\n+        when(folderAPI.find(FOLDER_1, systemUser, false)).thenReturn(folder_1);\n+        when(hostAPI.find(HOST_2, systemUser, false)).thenReturn(host_2);\n+        when(folderAPI.find(FOLDER_2, systemUser, false)).thenReturn(folder_2);\n+\n+        when(request.getSession()).thenReturn(session);\n+        when(session.getAttribute(com.dotmarketing.util.WebKeys.CMS_SELECTED_HOST_ID)).thenReturn(hostId);\n+\n+        final ThemeResource themeResource = new ThemeResource(themeAPI, userAPI, hostAPI, folderAPI, webResource);\n+        final Response response = themeResource.findThemes(request, null);\n+\n+        final List<ThemeView> themes = (List<ThemeView>) response.getEntity();\n+\n+        assertEquals(2, themes.size());\n+        assertEquals(themes.get(0).getName(), FOLDER_1);\n+        assertEquals(themes.get(0).getHost(), host_1);\n+        assertEquals(themes.get(1).getName(), FOLDER_2);\n+        assertEquals(themes.get(1).getHost(), host_2);\n+    }\n+\n+    /**\n+     * Test of {@link ThemeResource#findThemes(HttpServletRequest, String)}\n+     *\n+     * Given: a user without permission\n+     * Should: throw a {@link com.dotcms.rest.exception.ForbiddenException}\n+     */\n+    @Test\n+    public void testFindThemesThrowForbidenException() throws DotDataException {\n+        final String hostId = \"1\";\n+\n+        final WebResource webResource = mock(WebResource.class);\n+        final InitDataObject initDataObject = mock(InitDataObject.class);\n+        final User user = mock(User.class);\n+        final User systemUser = mock(User.class);\n+        final HttpServletRequest request = mock(HttpServletRequest.class);\n+        final UserAPI userAPI = mock(UserAPI.class);\n+        final ThemeAPI themeAPI = mock(ThemeAPI.class);\n+        final HostAPI hostAPI = mock(HostAPI.class);\n+        final FolderAPI folderAPI = mock(FolderAPI.class);\n+\n+\n+        when(initDataObject.getUser()).thenReturn(user);\n+        when(webResource.init(null, true, request, true, null)).thenReturn(initDataObject);\n+        when(userAPI.getSystemUser()).thenReturn(systemUser);\n+\n+        try {\n+            when(themeAPI.findAll(user, hostId))\n+                    .thenThrow(new DotSecurityException(\"\"));\n+        } catch (DotSecurityException e) {\n+            assertTrue(false);\n+        }\n+\n+        final ThemeResource themeResource = new ThemeResource(themeAPI, userAPI, hostAPI, folderAPI, webResource);\n+\n+        try {\n+            Response response = themeResource.findThemes(request, hostId);","path":"dotCMS/src/test/java/com/dotcms/rest/api/v1/authentication/theme/ThemeResourceTest.java","position":200,"original_position":200,"commit_id":"4339748101a07fffebd7da4cd52c638042c087d5","original_commit_id":"4339748101a07fffebd7da4cd52c638042c087d5","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Local variable 'response' could be declared final](https://app.codacy.com/app/dotCMS/core/pullRequest?prid=1576064)","created_at":"2018-04-25T16:46:18Z","updated_at":"2018-04-25T16:46:18Z","html_url":"https://github.com/dotCMS/core/pull/14201#discussion_r184130752","pull_request_url":"https://api.github.com/repos/dotCMS/core/pulls/14201","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/dotCMS/core/pulls/comments/184130752"},"html":{"href":"https://github.com/dotCMS/core/pull/14201#discussion_r184130752"},"pull_request":{"href":"https://api.github.com/repos/dotCMS/core/pulls/14201"}}},"pull_request":{"url":"https://api.github.com/repos/dotCMS/core/pulls/14201","id":183733577,"html_url":"https://github.com/dotCMS/core/pull/14201","diff_url":"https://github.com/dotCMS/core/pull/14201.diff","patch_url":"https://github.com/dotCMS/core/pull/14201.patch","issue_url":"https://api.github.com/repos/dotCMS/core/issues/14201","number":14201,"state":"open","locked":false,"title":"Issue 13323 create endpoint to get themes","user":{"login":"freddyucv","id":10408015,"avatar_url":"https://avatars1.githubusercontent.com/u/10408015?v=4","gravatar_id":"","url":"https://api.github.com/users/freddyucv","html_url":"https://github.com/freddyucv","followers_url":"https://api.github.com/users/freddyucv/followers","following_url":"https://api.github.com/users/freddyucv/following{/other_user}","gists_url":"https://api.github.com/users/freddyucv/gists{/gist_id}","starred_url":"https://api.github.com/users/freddyucv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freddyucv/subscriptions","organizations_url":"https://api.github.com/users/freddyucv/orgs","repos_url":"https://api.github.com/users/freddyucv/repos","events_url":"https://api.github.com/users/freddyucv/events{/privacy}","received_events_url":"https://api.github.com/users/freddyucv/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-24T13:20:10Z","updated_at":"2018-04-25T16:46:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"65bcf69530aa15dc2ddbd9a8734d709db20efb5b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotCMS/core/pulls/14201/commits","review_comments_url":"https://api.github.com/repos/dotCMS/core/pulls/14201/comments","review_comment_url":"https://api.github.com/repos/dotCMS/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotCMS/core/issues/14201/comments","statuses_url":"https://api.github.com/repos/dotCMS/core/statuses/4339748101a07fffebd7da4cd52c638042c087d5","head":{"label":"dotCMS:issue-13323-Create-endpoint-to-get-themes","ref":"issue-13323-Create-endpoint-to-get-themes","sha":"4339748101a07fffebd7da4cd52c638042c087d5","user":{"login":"dotCMS","id":1005263,"avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"repo":{"id":3729629,"name":"core","full_name":"dotCMS/core","owner":{"login":"dotCMS","id":1005263,"avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotCMS/core","description":"Source Code for dotCMS Java Enterprise Content Management System","fork":false,"url":"https://api.github.com/repos/dotCMS/core","forks_url":"https://api.github.com/repos/dotCMS/core/forks","keys_url":"https://api.github.com/repos/dotCMS/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotCMS/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotCMS/core/teams","hooks_url":"https://api.github.com/repos/dotCMS/core/hooks","issue_events_url":"https://api.github.com/repos/dotCMS/core/issues/events{/number}","events_url":"https://api.github.com/repos/dotCMS/core/events","assignees_url":"https://api.github.com/repos/dotCMS/core/assignees{/user}","branches_url":"https://api.github.com/repos/dotCMS/core/branches{/branch}","tags_url":"https://api.github.com/repos/dotCMS/core/tags","blobs_url":"https://api.github.com/repos/dotCMS/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotCMS/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotCMS/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotCMS/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotCMS/core/statuses/{sha}","languages_url":"https://api.github.com/repos/dotCMS/core/languages","stargazers_url":"https://api.github.com/repos/dotCMS/core/stargazers","contributors_url":"https://api.github.com/repos/dotCMS/core/contributors","subscribers_url":"https://api.github.com/repos/dotCMS/core/subscribers","subscription_url":"https://api.github.com/repos/dotCMS/core/subscription","commits_url":"https://api.github.com/repos/dotCMS/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotCMS/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotCMS/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotCMS/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotCMS/core/contents/{+path}","compare_url":"https://api.github.com/repos/dotCMS/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotCMS/core/merges","archive_url":"https://api.github.com/repos/dotCMS/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotCMS/core/downloads","issues_url":"https://api.github.com/repos/dotCMS/core/issues{/number}","pulls_url":"https://api.github.com/repos/dotCMS/core/pulls{/number}","milestones_url":"https://api.github.com/repos/dotCMS/core/milestones{/number}","notifications_url":"https://api.github.com/repos/dotCMS/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotCMS/core/labels{/name}","releases_url":"https://api.github.com/repos/dotCMS/core/releases{/id}","deployments_url":"https://api.github.com/repos/dotCMS/core/deployments","created_at":"2012-03-15T15:24:14Z","updated_at":"2018-04-25T14:40:30Z","pushed_at":"2018-04-25T16:15:20Z","git_url":"git://github.com/dotCMS/core.git","ssh_url":"git@github.com:dotCMS/core.git","clone_url":"https://github.com/dotCMS/core.git","svn_url":"https://github.com/dotCMS/core","homepage":"http://dotcms.com","size":329456,"stargazers_count":365,"watchers_count":365,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":312,"mirror_url":null,"archived":false,"open_issues_count":1858,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":312,"open_issues":1858,"watchers":365,"default_branch":"master"}},"base":{"label":"dotCMS:master","ref":"master","sha":"22fd8635f4c70f7bdf779091cd24a0fc46266c95","user":{"login":"dotCMS","id":1005263,"avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"repo":{"id":3729629,"name":"core","full_name":"dotCMS/core","owner":{"login":"dotCMS","id":1005263,"avatar_url":"https://avatars3.githubusercontent.com/u/1005263?v=4","gravatar_id":"","url":"https://api.github.com/users/dotCMS","html_url":"https://github.com/dotCMS","followers_url":"https://api.github.com/users/dotCMS/followers","following_url":"https://api.github.com/users/dotCMS/following{/other_user}","gists_url":"https://api.github.com/users/dotCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/dotCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotCMS/subscriptions","organizations_url":"https://api.github.com/users/dotCMS/orgs","repos_url":"https://api.github.com/users/dotCMS/repos","events_url":"https://api.github.com/users/dotCMS/events{/privacy}","received_events_url":"https://api.github.com/users/dotCMS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotCMS/core","description":"Source Code for dotCMS Java Enterprise Content Management System","fork":false,"url":"https://api.github.com/repos/dotCMS/core","forks_url":"https://api.github.com/repos/dotCMS/core/forks","keys_url":"https://api.github.com/repos/dotCMS/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotCMS/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotCMS/core/teams","hooks_url":"https://api.github.com/repos/dotCMS/core/hooks","issue_events_url":"https://api.github.com/repos/dotCMS/core/issues/events{/number}","events_url":"https://api.github.com/repos/dotCMS/core/events","assignees_url":"https://api.github.com/repos/dotCMS/core/assignees{/user}","branches_url":"https://api.github.com/repos/dotCMS/core/branches{/branch}","tags_url":"https://api.github.com/repos/dotCMS/core/tags","blobs_url":"https://api.github.com/repos/dotCMS/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotCMS/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotCMS/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotCMS/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotCMS/core/statuses/{sha}","languages_url":"https://api.github.com/repos/dotCMS/core/languages","stargazers_url":"https://api.github.com/repos/dotCMS/core/stargazers","contributors_url":"https://api.github.com/repos/dotCMS/core/contributors","subscribers_url":"https://api.github.com/repos/dotCMS/core/subscribers","subscription_url":"https://api.github.com/repos/dotCMS/core/subscription","commits_url":"https://api.github.com/repos/dotCMS/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotCMS/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotCMS/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotCMS/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotCMS/core/contents/{+path}","compare_url":"https://api.github.com/repos/dotCMS/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotCMS/core/merges","archive_url":"https://api.github.com/repos/dotCMS/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotCMS/core/downloads","issues_url":"https://api.github.com/repos/dotCMS/core/issues{/number}","pulls_url":"https://api.github.com/repos/dotCMS/core/pulls{/number}","milestones_url":"https://api.github.com/repos/dotCMS/core/milestones{/number}","notifications_url":"https://api.github.com/repos/dotCMS/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotCMS/core/labels{/name}","releases_url":"https://api.github.com/repos/dotCMS/core/releases{/id}","deployments_url":"https://api.github.com/repos/dotCMS/core/deployments","created_at":"2012-03-15T15:24:14Z","updated_at":"2018-04-25T14:40:30Z","pushed_at":"2018-04-25T16:15:20Z","git_url":"git://github.com/dotCMS/core.git","ssh_url":"git@github.com:dotCMS/core.git","clone_url":"https://github.com/dotCMS/core.git","svn_url":"https://github.com/dotCMS/core","homepage":"http://dotcms.com","size":329456,"stargazers_count":365,"watchers_count":365,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":312,"mirror_url":null,"archived":false,"open_issues_count":1858,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":312,"open_issues":1858,"watchers":365,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotCMS/core/pulls/14201"},"html":{"href":"https://github.com/dotCMS/core/pull/14201"},"issue":{"href":"https://api.github.com/repos/dotCMS/core/issues/14201"},"comments":{"href":"https://api.github.com/repos/dotCMS/core/issues/14201/comments"},"review_comments":{"href":"https://api.github.com/repos/dotCMS/core/pulls/14201/comments"},"review_comment":{"href":"https://api.github.com/repos/dotCMS/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotCMS/core/pulls/14201/commits"},"statuses":{"href":"https://api.github.com/repos/dotCMS/core/statuses/4339748101a07fffebd7da4cd52c638042c087d5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}