{"action":"created","comment":{"url":"https://api.github.com/repos/owncloud/core/pulls/comments/46672638","id":46672638,"diff_hunk":"@@ -0,0 +1,243 @@\n+<?php\n+/**\n+ * @author Vincent Petry <pvince81@owncloud.com>\n+ *\n+ * @copyright Copyright (c) 2015, ownCloud, Inc.\n+ * @license AGPL-3.0\n+ *\n+ * This code is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU Affero General Public License, version 3,\n+ * as published by the Free Software Foundation.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+ * GNU Affero General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Affero General Public License, version 3,\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>\n+ *\n+ */\n+namespace OCA\\DAV\\SystemTag;\n+\n+use Sabre\\DAV\\Exception\\NotFound;\n+use Sabre\\DAV\\PropFind;\n+use Sabre\\DAV\\PropPatch;\n+use Sabre\\DAV\\Exception\\BadRequest;\n+use Sabre\\DAV\\Exception\\UnsupportedMediaType;\n+use Sabre\\DAV\\Exception\\Conflict;\n+\n+use OCP\\SystemTag\\ISystemTag;\n+use OCP\\SystemTag\\ISystemTagManager;\n+use OCP\\SystemTag\\TagAlreadyExistsException;\n+use Sabre\\HTTP\\RequestInterface;\n+use Sabre\\HTTP\\ResponseInterface;\n+\n+class SystemTagPlugin extends \\Sabre\\DAV\\ServerPlugin {\n+\n+\t// namespace\n+\tconst NS_OWNCLOUD = 'http://owncloud.org/ns';\n+\tconst ID_PROPERTYNAME = '{http://owncloud.org/ns}id';\n+\tconst DISPLAYNAME_PROPERTYNAME = '{http://owncloud.org/ns}display-name';\n+\tconst USERVISIBLE_PROPERTYNAME = '{http://owncloud.org/ns}user-visible';\n+\tconst USERASSIGNABLE_PROPERTYNAME = '{http://owncloud.org/ns}user-assignable';\n+\n+\t/**\n+\t * @var \\Sabre\\DAV\\Server $server\n+\t */\n+\tprivate $server;\n+\n+\t/**\n+\t * @var ISystemTagManager\n+\t */\n+\tprotected $tagManager;\n+\n+\t/**\n+\t * System tags plugin\n+\t *\n+\t * @param ISystemTagManager $tagManager tag manager\n+\t */\n+\tpublic function __construct(ISystemTagManager $tagManager) {\n+\t\t$this->tagManager = $tagManager;\n+\t}\n+\n+\t/**\n+\t * This initializes the plugin.\n+\t *\n+\t * This function is called by \\Sabre\\DAV\\Server, after\n+\t * addPlugin is called.\n+\t *\n+\t * This method should set up the required event subscriptions.\n+\t *\n+\t * @param \\Sabre\\DAV\\Server $server\n+\t * @return void\n+\t */\n+\tpublic function initialize(\\Sabre\\DAV\\Server $server) {\n+\n+\t\t$server->xml->namespaceMap[self::NS_OWNCLOUD] = 'oc';\n+\n+\t\t$server->protectedProperties[] = self::ID_PROPERTYNAME;\n+\n+\t\t$server->on('propFind', array($this, 'handleGetProperties'));\n+\t\t$server->on('propPatch', array($this, 'handleUpdateProperties'));\n+\t\t$server->on('method:POST', [$this, 'httpPost']);\n+\n+\t\t$this->server = $server;\n+\t}\n+\n+\t/**\n+\t * We intercept this to handle POST requests on calendars.\n+\t *\n+\t * @param RequestInterface $request request object\n+\t * @param ResponseInterface $response response object\n+\t * @return null|false\n+\t */\n+\tpublic function httpPost(RequestInterface $request, ResponseInterface $response) {\n+\t\t$path = $request->getPath();\n+\n+\t\t// Making sure the node exists\n+\t\ttry {\n+\t\t\t$node = $this->server->tree->getNodeForPath($path);\n+\t\t} catch (NotFound $e) {\n+\t\t\treturn null;\n+\t\t}\n+\n+\t\tif ($node instanceof SystemTagsByIdCollection || $node instanceof SystemTagsObjectMappingCollection) {\n+\t\t\t$data = $request->getBodyAsString();\n+\n+\t\t\t$tag = $this->createTag($data, $request->getHeader('Content-Type'));\n+\n+\t\t\tif ($node instanceof SystemTagsObjectMappingCollection) {\n+\t\t\t\t// also add to collection\n+\t\t\t\t$node->createFile($tag->getId());\n+\t\t\t\t$url = $request->getBaseUrl() . 'systemtags/';\n+\t\t\t} else {\n+\t\t\t\t$url = $request->getUrl();\n+\t\t\t}\n+\n+\t\t\tif ($url[strlen($url) - 1] !== '/') {\n+\t\t\t\t$url .= '/';\n+\t\t\t}\n+\n+\t\t\t$response->setHeader('Location', $url . $tag->getId());\n+\n+\t\t\t// created\n+\t\t\t$response->setStatus(201);\n+\t\t\treturn false;\n+\t\t}\n+\t}\n+\n+\t/**\n+\t * Creates a new tag\n+\t *\n+\t * @param string $data\n+\t * @param string $contentType content type of the data\n+\t * @return ISystemTag newly created system tag\n+\t *\n+\t * @throws BadRequest if a field was missing\n+\t * @throws Conflict\n+\t * @throws UnsupportedMediaType if the content type is not supported\n+\t */\n+\tprivate function createTag($data, $contentType = 'application/json') {\n+\t\tif ($contentType === 'application/json') {\n+\t\t\t$data = json_decode($data, true);\n+\t\t\t// TODO: application/x-www-form-urlencoded ?","path":"apps/dav/lib/systemtag/systemtagplugin.php","position":144,"original_position":144,"commit_id":"fe95fd5bec5e4b52112ab68cff0d942bb8ffb226","original_commit_id":"fe95fd5bec5e4b52112ab68cff0d942bb8ffb226","user":{"login":"blizzz","id":2184312,"avatar_url":"https://avatars.githubusercontent.com/u/2184312?v=3","gravatar_id":"","url":"https://api.github.com/users/blizzz","html_url":"https://github.com/blizzz","followers_url":"https://api.github.com/users/blizzz/followers","following_url":"https://api.github.com/users/blizzz/following{/other_user}","gists_url":"https://api.github.com/users/blizzz/gists{/gist_id}","starred_url":"https://api.github.com/users/blizzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blizzz/subscriptions","organizations_url":"https://api.github.com/users/blizzz/orgs","repos_url":"https://api.github.com/users/blizzz/repos","events_url":"https://api.github.com/users/blizzz/events{/privacy}","received_events_url":"https://api.github.com/users/blizzz/received_events","type":"User","site_admin":false},"body":"if not necessary now, kill this TODO. Code is not really a task tracker, and if there's no consumer for it, no need to have it lying around.","created_at":"2015-12-04T11:26:09Z","updated_at":"2015-12-04T11:26:09Z","html_url":"https://github.com/owncloud/core/pull/20786#discussion_r46672638","pull_request_url":"https://api.github.com/repos/owncloud/core/pulls/20786","_links":{"self":{"href":"https://api.github.com/repos/owncloud/core/pulls/comments/46672638"},"html":{"href":"https://github.com/owncloud/core/pull/20786#discussion_r46672638"},"pull_request":{"href":"https://api.github.com/repos/owncloud/core/pulls/20786"}}},"pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/20786","id":51988244,"html_url":"https://github.com/owncloud/core/pull/20786","diff_url":"https://github.com/owncloud/core/pull/20786.diff","patch_url":"https://github.com/owncloud/core/pull/20786.patch","issue_url":"https://api.github.com/repos/owncloud/core/issues/20786","number":20786,"state":"open","locked":false,"title":"DAV endpoint for system tags","user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"body":"- [x] REQUIRES: https://github.com/owncloud/core/pull/20650\r\n- ~~TODO: add endpoint to retrieve all files/folders tagged by a specific tag?~~\r\n- [x] TODO: PUT doesn't work, needs discussion\r\n- ~~TODO: allow MOVE for rename in \"by-name\", only if target name doesn't exist~~\r\n\r\nBELOW is obsolete, jump to https://github.com/owncloud/core/pull/20786#issuecomment-160735964\r\n\r\n--------------------------------------------\r\n\r\n@DeepDiver1975 @nickvergessen \r\n\r\n- Currently the URLs look like this:\r\n    - http://root:admin@localhost/owncloud/remote.php/dav/systemtags/$userId/by-id/$tagId\r\n    - http://root:admin@localhost/owncloud/remote.php/dav/systemtags/$userId/by-name/$tagName_$userVisible_$userAssignable\r\n- by-id is used to list tags by id for direct access when the id is known\r\n- by-id cannot be used to PUT because we cannot know the id beforehand, so read-only\r\n- by-name is used mostly to create new tags using a known name compound. For example \"tag1\" with user visible true and user assignable false will have the name \"tag1_1_0\". This is needed to have unique names and also because PUT expects us to know the URL beforehand (no generated ids here)\r\n- DELETE works in both endpoints\r\n\r\nQuestions:\r\n- are these endpoints acceptable ?\r\n- regarding creating new tags:\r\n    - body is empty as it's not a file\r\n    - Sabre reports the exception \"PUT only allowed for files\"\r\n    - it is not clear how to pass additional properties to a PUT call, maybe headers (although, not relevant for this task as we don't have any additional properties)\r\n    - should we use POST instead of PUT ? There is a RFC proposal here for POST http://greenbytes.de/tech/webdav/rfc5995.html\r\n\r\n@evert mind helping with the PUT questions ? Are there any examples how to use non-files as sabre resources ?\r\n","created_at":"2015-11-27T12:04:02Z","updated_at":"2015-12-04T11:26:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2107f9d7a3d84d375ca279700b898cbc31f9c9f6","assignee":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/48","html_url":"https://github.com/owncloud/core/milestones/9.0-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/48/labels","id":1196845,"number":48,"title":"9.0-current","description":"","creator":{"login":"cmonteroluque","id":879976,"avatar_url":"https://avatars.githubusercontent.com/u/879976?v=3","gravatar_id":"","url":"https://api.github.com/users/cmonteroluque","html_url":"https://github.com/cmonteroluque","followers_url":"https://api.github.com/users/cmonteroluque/followers","following_url":"https://api.github.com/users/cmonteroluque/following{/other_user}","gists_url":"https://api.github.com/users/cmonteroluque/gists{/gist_id}","starred_url":"https://api.github.com/users/cmonteroluque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmonteroluque/subscriptions","organizations_url":"https://api.github.com/users/cmonteroluque/orgs","repos_url":"https://api.github.com/users/cmonteroluque/repos","events_url":"https://api.github.com/users/cmonteroluque/events{/privacy}","received_events_url":"https://api.github.com/users/cmonteroluque/received_events","type":"User","site_admin":false},"open_issues":583,"closed_issues":569,"state":"open","created_at":"2015-07-07T14:21:23Z","updated_at":"2015-12-04T11:13:33Z","due_on":"2016-03-08T04:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/owncloud/core/pulls/20786/commits","review_comments_url":"https://api.github.com/repos/owncloud/core/pulls/20786/comments","review_comment_url":"https://api.github.com/repos/owncloud/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owncloud/core/issues/20786/comments","statuses_url":"https://api.github.com/repos/owncloud/core/statuses/fe95fd5bec5e4b52112ab68cff0d942bb8ffb226","head":{"label":"owncloud:systemtags-dav","ref":"systemtags-dav","sha":"fe95fd5bec5e4b52112ab68cff0d942bb8ffb226","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":5550552,"name":"core","full_name":"owncloud/core","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/core","description":"The ownCloud core","fork":false,"url":"https://api.github.com/repos/owncloud/core","forks_url":"https://api.github.com/repos/owncloud/core/forks","keys_url":"https://api.github.com/repos/owncloud/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/core/teams","hooks_url":"https://api.github.com/repos/owncloud/core/hooks","issue_events_url":"https://api.github.com/repos/owncloud/core/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/core/events","assignees_url":"https://api.github.com/repos/owncloud/core/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/core/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/core/tags","blobs_url":"https://api.github.com/repos/owncloud/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/core/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/core/languages","stargazers_url":"https://api.github.com/repos/owncloud/core/stargazers","contributors_url":"https://api.github.com/repos/owncloud/core/contributors","subscribers_url":"https://api.github.com/repos/owncloud/core/subscribers","subscription_url":"https://api.github.com/repos/owncloud/core/subscription","commits_url":"https://api.github.com/repos/owncloud/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/core/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/core/merges","archive_url":"https://api.github.com/repos/owncloud/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/core/downloads","issues_url":"https://api.github.com/repos/owncloud/core/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/core/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/core/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/core/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/core/releases{/id}","created_at":"2012-08-25T10:32:48Z","updated_at":"2015-12-04T10:13:02Z","pushed_at":"2015-12-04T11:22:11Z","git_url":"git://github.com/owncloud/core.git","ssh_url":"git@github.com:owncloud/core.git","clone_url":"https://github.com/owncloud/core.git","svn_url":"https://github.com/owncloud/core","homepage":"https://owncloud.org/","size":281130,"stargazers_count":3904,"watchers_count":3904,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1253,"mirror_url":null,"open_issues_count":1826,"forks":1253,"open_issues":1826,"watchers":3904,"default_branch":"master"}},"base":{"label":"owncloud:master","ref":"master","sha":"1fe7957fd0210c6a3f6ad5c810f1ba5814ff68d6","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":5550552,"name":"core","full_name":"owncloud/core","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/core","description":"The ownCloud core","fork":false,"url":"https://api.github.com/repos/owncloud/core","forks_url":"https://api.github.com/repos/owncloud/core/forks","keys_url":"https://api.github.com/repos/owncloud/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/core/teams","hooks_url":"https://api.github.com/repos/owncloud/core/hooks","issue_events_url":"https://api.github.com/repos/owncloud/core/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/core/events","assignees_url":"https://api.github.com/repos/owncloud/core/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/core/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/core/tags","blobs_url":"https://api.github.com/repos/owncloud/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/core/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/core/languages","stargazers_url":"https://api.github.com/repos/owncloud/core/stargazers","contributors_url":"https://api.github.com/repos/owncloud/core/contributors","subscribers_url":"https://api.github.com/repos/owncloud/core/subscribers","subscription_url":"https://api.github.com/repos/owncloud/core/subscription","commits_url":"https://api.github.com/repos/owncloud/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/core/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/core/merges","archive_url":"https://api.github.com/repos/owncloud/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/core/downloads","issues_url":"https://api.github.com/repos/owncloud/core/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/core/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/core/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/core/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/core/releases{/id}","created_at":"2012-08-25T10:32:48Z","updated_at":"2015-12-04T10:13:02Z","pushed_at":"2015-12-04T11:22:11Z","git_url":"git://github.com/owncloud/core.git","ssh_url":"git@github.com:owncloud/core.git","clone_url":"https://github.com/owncloud/core.git","svn_url":"https://github.com/owncloud/core","homepage":"https://owncloud.org/","size":281130,"stargazers_count":3904,"watchers_count":3904,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1253,"mirror_url":null,"open_issues_count":1826,"forks":1253,"open_issues":1826,"watchers":3904,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owncloud/core/pulls/20786"},"html":{"href":"https://github.com/owncloud/core/pull/20786"},"issue":{"href":"https://api.github.com/repos/owncloud/core/issues/20786"},"comments":{"href":"https://api.github.com/repos/owncloud/core/issues/20786/comments"},"review_comments":{"href":"https://api.github.com/repos/owncloud/core/pulls/20786/comments"},"review_comment":{"href":"https://api.github.com/repos/owncloud/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owncloud/core/pulls/20786/commits"},"statuses":{"href":"https://api.github.com/repos/owncloud/core/statuses/fe95fd5bec5e4b52112ab68cff0d942bb8ffb226"}}}}