{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/app/pulls/comments/64024541","id":64024541,"diff_hunk":"@@ -0,0 +1,262 @@\n+<?php\n+\n+namespace Wikia\\CreateNewWiki\\Tasks;\n+\n+use WikiFactory;\n+\n+class ConfigureWikiFactory implements Task {\n+\tuse \\Wikia\\Logger\\Loggable;\n+\n+\tconst DEFAULT_WIKI_LOGO = '$wgUploadPath/b/bc/Wiki.png';\n+\tconst SANITIZED_BUCKET_NAME_MAXIMUM_LENGTH = 55;\n+\tconst IMGROOT = \"/images/\";\n+\tconst IMAGEURL = \"http://images.wikia.com/\";\n+\n+\tprivate $taskContext;\n+\tpublic $imagesURL;\n+\tpublic $imagesDir;\n+\n+\tpublic function __construct( TaskContext $taskContext ) {\n+\t\t$this->taskContext = $taskContext;\n+\t}\n+\n+\tpublic function prepare() {\n+\t\t$language = $this->taskContext->getLanguage();\n+\t\t$wikiName = $this->taskContext->getWikiName();\n+\n+\t\t$this->imagesURL = $this->prepareDirValue( $wikiName, $language );\n+\t\t$this->imagesDir = sprintf( \"%s/%s\", strtolower( substr( $wikiName, 0, 1 ) ), $this->imagesURL );\n+\n+\t\tif ( isset($language) && $language !== \"en\" ) {\n+\t\t\t$this->imagesURL .= \"/\" . strtolower( $language );\n+\t\t\t$this->imagesDir .= \"/\" . strtolower( $language );\n+\t\t}\n+\n+\t\t$this->imagesDir = self::IMGROOT . $this->imagesDir . \"/images\";\n+\t\t$this->imagesURL = self::IMAGEURL . $this->imagesURL . \"/images\";\n+\n+\t\treturn TaskResult::createForSuccess();\n+\t}\n+\n+\tpublic function check() {\n+\t\treturn TaskResult::createForSuccess();\n+\t}\n+\n+\tpublic function run() {\n+\t\t$siteName = $this->taskContext->getSiteName();\n+\t\t$dbName = $this->taskContext->getDbName();\n+\t\t$language = $this->taskContext->getLanguage();\n+\t\t$sharedDBW = $this->taskContext->getSharedDBW();\n+\t\t$cityId = $this->taskContext->getCityId();\n+\t\t$url = $this->taskContext->getURL();\n+\n+\t\t$staticWikiFactoryVariables = $this->getStaticVariables(\n+\t\t\t$siteName, $this->imagesURL, $this->imagesDir, $dbName, $language, $url\n+\t\t);\n+\t\t$wikiFactoryVariablesFromDB = $this->getVariablesFromDB( $sharedDBW, $staticWikiFactoryVariables );\n+\n+\t\t$this->setVariables( $sharedDBW, $cityId, $wikiFactoryVariablesFromDB, $staticWikiFactoryVariables );\n+\n+\t\treturn TaskResult::createForSuccess();\n+\t}\n+\n+\tpublic function getStaticVariables( $siteName, $imagesURL, $imagesDir, $dbName, $language, $url ) {\n+\t\t$wikiFactoryVariables = [\n+\t\t\t'wgSitename' => $siteName,\n+\t\t\t'wgLogo' => self::DEFAULT_WIKI_LOGO,\n+\t\t\t'wgUploadPath' => $imagesURL,\n+\t\t\t'wgUploadDirectory' => $imagesDir,\n+\t\t\t'wgDBname' => $dbName,\n+\t\t\t'wgLocalInterwiki' => $siteName,\n+\t\t\t'wgLanguageCode' => $language,\n+\t\t\t'wgServer' => rtrim( $url, \"/\" ),\n+\t\t\t'wgEnableSectionEdit' => true,\n+\t\t\t'wgEnableSwiftFileBackend' => true,\n+\t\t\t'wgOasisLoadCommonCSS' => true,\n+\t\t\t'wgEnablePortableInfoboxEuropaTheme' => true\n+\t\t];\n+\n+\t\t// rt#60223: colon allowed in sitename, breaks project namespace\n+\t\t// Set wgMetaNamespace\n+\t\tif ( mb_strpos( $siteName, ':' ) !== false ) {\n+\t\t\t$wikiFactoryVariables['wgMetaNamespace'] = str_replace( [ ':', ' ' ], [ '', '_' ], $siteName );\n+\t\t}\n+\n+\t\tif ( CreateDatabase::ACTIVE_CLUSTER ) {\n+\t\t\twfGetLBFactory()->sectionsByDB[$dbName] = $wikiFactoryVariables['wgDBcluster'] = CreateDatabase::ACTIVE_CLUSTER;\n+\t\t}\n+\n+\t\treturn $wikiFactoryVariables;\n+\t}\n+\n+\tpublic function getVariablesFromDB( $sharedDBW, $wikiFactoryVariables ) {\n+\t\twfProfileIn( __METHOD__ );\n+\n+\t\t$oRes = $sharedDBW->select(\n+\t\t\t\"city_variables_pool\",\n+\t\t\t[ \"cv_id, cv_name\" ],\n+\t\t\t[ \"cv_name in ('\" . implode( \"', '\", array_keys( $wikiFactoryVariables ) ) . \"')\" ],\n+\t\t\t__METHOD__\n+\t\t);\n+\n+\t\t$wikiFactoryVarsFromDB = [ ];\n+\n+\t\twhile ( $oRow = $sharedDBW->fetchObject( $oRes ) ) {\n+\t\t\t$wikiFactoryVarsFromDB[$oRow->cv_name] = $oRow->cv_id;\n+\t\t}\n+\t\t$sharedDBW->freeResult( $oRes );\n+\n+\t\twfProfileOut( __METHOD__ );\n+\n+\t\treturn $wikiFactoryVarsFromDB;\n+\t}\n+\n+\tprivate function setVariables( $sharedDBW, $cityId, $wikiFactoryVariablesFromDB, $wikiFactoryVariables ) {\n+\t\twfProfileOut( __METHOD__ );\n+\t\tforeach ( $wikiFactoryVariables as $variable => $value ) {\n+\t\t\t/**\n+\t\t\t * first, get id of variable\n+\t\t\t */\n+\t\t\t$cv_id = 0;\n+\t\t\tif ( isset($wikiFactoryVariablesFromDB[$variable]) ) {\n+\t\t\t\t$cv_id = $wikiFactoryVariablesFromDB[$variable];\n+\t\t\t}\n+\n+\t\t\t/**\n+\t\t\t * then, insert value for wikia\n+\t\t\t */\n+\t\t\tif ( !empty($cv_id) ) {\n+\t\t\t\t$sharedDBW->insert(\n+\t\t\t\t\t\"city_variables\",\n+\t\t\t\t\tarray(\n+\t\t\t\t\t\t\"cv_value\" => serialize( $value ),\n+\t\t\t\t\t\t\"cv_city_id\" => $cityId,\n+\t\t\t\t\t\t\"cv_variable_id\" => $cv_id\n+\t\t\t\t\t),\n+\t\t\t\t\t__METHOD__\n+\t\t\t\t);\n+\t\t\t}\n+\t\t}\n+\n+\t\t$sharedDBW->commit( __METHOD__ ); // commit shared DB changes\n+\t\twfProfileOut( __METHOD__ );\n+\t}\n+\n+\t/**\n+\t * \"calculates\" the value for wgUploadDirectory\n+\t *\n+\t * @access private\n+\t * @author Piotr Molski (Moli)\n+\t *\n+\t * @param $name string base name of the directory\n+\t * @param $language string language in which wiki will be created\n+\t *\n+\t * @return string\n+\t */\n+\tpublic function prepareDirValue( $name, $language ) {\n+\t\twfProfileIn( __METHOD__ );\n+\n+\t\t$this->debug( implode( \":\", [ \"CreateWiki\", __METHOD__ . \"Checking {$name} folder\" ] ) );\n+\n+\t\t$isExist = false;\n+\t\t$suffix = \"\";\n+\t\t$dir_base = self::sanitizeS3BucketName( $name );\n+\t\t$prefix = strtolower( substr( $dir_base, 0, 1 ) );\n+\t\t$dir_lang = (isset($language) && $language !== \"en\")\n+\t\t\t? \"/\" . strtolower( $language )\n+\t\t\t: \"\";\n+\n+\t\twhile ( $isExist == false ) {\n+\t\t\t$dirName = self::IMGROOT . $prefix . \"/\" . $dir_base . $suffix . $dir_lang . \"/images\";\n+\n+\t\t\tif ( self::wgUploadDirectoryExists( $dirName ) ) {\n+\t\t\t\t$suffix = rand( 1, 9999 );\n+\t\t\t} else {\n+\t\t\t\t$dir_base = $dir_base . $suffix;\n+\t\t\t\t$isExist = true;\n+\t\t\t}\n+\t\t}\n+\n+\t\t$this->debug( implode( \":\", [ \"CreateWiki\", __METHOD__, \"Returning '{$dir_base}'\" ] ) );\n+\t\twfProfileOut( __METHOD__ );\n+\t\treturn $dir_base;\n+\t}\n+\n+\tpublic static function wgUploadDirectoryExists( $sDirectoryName ) {","path":"extensions/wikia/CreateNewWiki/tasks/ConfigureWikiFactory.php","position":null,"original_position":185,"commit_id":"088d6da07d032206dd2405135e0156d8373bbb04","original_commit_id":"e68811379a2db4d602a1febbcbb5aa9aeff74f03","user":{"login":"bognix","id":3473327,"avatar_url":"https://avatars.githubusercontent.com/u/3473327?v=3","gravatar_id":"","url":"https://api.github.com/users/bognix","html_url":"https://github.com/bognix","followers_url":"https://api.github.com/users/bognix/followers","following_url":"https://api.github.com/users/bognix/following{/other_user}","gists_url":"https://api.github.com/users/bognix/gists{/gist_id}","starred_url":"https://api.github.com/users/bognix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bognix/subscriptions","organizations_url":"https://api.github.com/users/bognix/orgs","repos_url":"https://api.github.com/users/bognix/repos","events_url":"https://api.github.com/users/bognix/events{/privacy}","received_events_url":"https://api.github.com/users/bognix/received_events","type":"User","site_admin":false},"body":"done","created_at":"2016-05-20T11:07:56Z","updated_at":"2016-05-20T11:07:56Z","html_url":"https://github.com/Wikia/app/pull/10462#discussion_r64024541","pull_request_url":"https://api.github.com/repos/Wikia/app/pulls/10462","_links":{"self":{"href":"https://api.github.com/repos/Wikia/app/pulls/comments/64024541"},"html":{"href":"https://github.com/Wikia/app/pull/10462#discussion_r64024541"},"pull_request":{"href":"https://api.github.com/repos/Wikia/app/pulls/10462"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/app/pulls/10462","id":69855460,"html_url":"https://github.com/Wikia/app/pull/10462","diff_url":"https://github.com/Wikia/app/pull/10462.diff","patch_url":"https://github.com/Wikia/app/pull/10462.patch","issue_url":"https://api.github.com/repos/Wikia/app/issues/10462","number":10462,"state":"open","locked":false,"title":"SUS-523 | Break CreateWiki::create method into manageable tasks ","user":{"login":"bognix","id":3473327,"avatar_url":"https://avatars.githubusercontent.com/u/3473327?v=3","gravatar_id":"","url":"https://api.github.com/users/bognix","html_url":"https://github.com/bognix","followers_url":"https://api.github.com/users/bognix/followers","following_url":"https://api.github.com/users/bognix/following{/other_user}","gists_url":"https://api.github.com/users/bognix/gists{/gist_id}","starred_url":"https://api.github.com/users/bognix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bognix/subscriptions","organizations_url":"https://api.github.com/users/bognix/orgs","repos_url":"https://api.github.com/users/bognix/repos","events_url":"https://api.github.com/users/bognix/events{/privacy}","received_events_url":"https://api.github.com/users/bognix/received_events","type":"User","site_admin":false},"body":"## TODO\r\n- [x] break `create` method into manageable tasks\r\n- [ ] resolve all TODOs inside `create`\r\n- [x] create unit tests for tasks\r\n- [x] improve logging","created_at":"2016-05-12T15:18:52Z","updated_at":"2016-05-20T11:07:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06010cb7e57e5ee5a64f6af1105a8128bbb37cbc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/app/pulls/10462/commits","review_comments_url":"https://api.github.com/repos/Wikia/app/pulls/10462/comments","review_comment_url":"https://api.github.com/repos/Wikia/app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/app/issues/10462/comments","statuses_url":"https://api.github.com/repos/Wikia/app/statuses/088d6da07d032206dd2405135e0156d8373bbb04","head":{"label":"Wikia:SUS-523_cnw_refactor_v2","ref":"SUS-523_cnw_refactor_v2","sha":"088d6da07d032206dd2405135e0156d8373bbb04","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":5532313,"name":"app","full_name":"Wikia/app","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/app","description":"Wikia Application Code","fork":false,"url":"https://api.github.com/repos/Wikia/app","forks_url":"https://api.github.com/repos/Wikia/app/forks","keys_url":"https://api.github.com/repos/Wikia/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/app/teams","hooks_url":"https://api.github.com/repos/Wikia/app/hooks","issue_events_url":"https://api.github.com/repos/Wikia/app/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/app/events","assignees_url":"https://api.github.com/repos/Wikia/app/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/app/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/app/tags","blobs_url":"https://api.github.com/repos/Wikia/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/app/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/app/languages","stargazers_url":"https://api.github.com/repos/Wikia/app/stargazers","contributors_url":"https://api.github.com/repos/Wikia/app/contributors","subscribers_url":"https://api.github.com/repos/Wikia/app/subscribers","subscription_url":"https://api.github.com/repos/Wikia/app/subscription","commits_url":"https://api.github.com/repos/Wikia/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/app/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/app/merges","archive_url":"https://api.github.com/repos/Wikia/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/app/downloads","issues_url":"https://api.github.com/repos/Wikia/app/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/app/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/app/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/app/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/app/releases{/id}","deployments_url":"https://api.github.com/repos/Wikia/app/deployments","created_at":"2012-08-23T20:55:58Z","updated_at":"2016-05-19T18:00:48Z","pushed_at":"2016-05-20T10:58:29Z","git_url":"git://github.com/Wikia/app.git","ssh_url":"git@github.com:Wikia/app.git","clone_url":"https://github.com/Wikia/app.git","svn_url":"https://github.com/Wikia/app","homepage":"http://dev.wikia.com","size":2335027,"stargazers_count":98,"watchers_count":98,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":88,"forks":80,"open_issues":88,"watchers":98,"default_branch":"dev"}},"base":{"label":"Wikia:dev","ref":"dev","sha":"215180af2a3a1776fbf064e0b9076fd53dec1efd","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":5532313,"name":"app","full_name":"Wikia/app","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/app","description":"Wikia Application Code","fork":false,"url":"https://api.github.com/repos/Wikia/app","forks_url":"https://api.github.com/repos/Wikia/app/forks","keys_url":"https://api.github.com/repos/Wikia/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/app/teams","hooks_url":"https://api.github.com/repos/Wikia/app/hooks","issue_events_url":"https://api.github.com/repos/Wikia/app/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/app/events","assignees_url":"https://api.github.com/repos/Wikia/app/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/app/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/app/tags","blobs_url":"https://api.github.com/repos/Wikia/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/app/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/app/languages","stargazers_url":"https://api.github.com/repos/Wikia/app/stargazers","contributors_url":"https://api.github.com/repos/Wikia/app/contributors","subscribers_url":"https://api.github.com/repos/Wikia/app/subscribers","subscription_url":"https://api.github.com/repos/Wikia/app/subscription","commits_url":"https://api.github.com/repos/Wikia/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/app/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/app/merges","archive_url":"https://api.github.com/repos/Wikia/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/app/downloads","issues_url":"https://api.github.com/repos/Wikia/app/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/app/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/app/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/app/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/app/releases{/id}","deployments_url":"https://api.github.com/repos/Wikia/app/deployments","created_at":"2012-08-23T20:55:58Z","updated_at":"2016-05-19T18:00:48Z","pushed_at":"2016-05-20T10:58:29Z","git_url":"git://github.com/Wikia/app.git","ssh_url":"git@github.com:Wikia/app.git","clone_url":"https://github.com/Wikia/app.git","svn_url":"https://github.com/Wikia/app","homepage":"http://dev.wikia.com","size":2335027,"stargazers_count":98,"watchers_count":98,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":88,"forks":80,"open_issues":88,"watchers":98,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/app/pulls/10462"},"html":{"href":"https://github.com/Wikia/app/pull/10462"},"issue":{"href":"https://api.github.com/repos/Wikia/app/issues/10462"},"comments":{"href":"https://api.github.com/repos/Wikia/app/issues/10462/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/app/pulls/10462/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/app/pulls/10462/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/app/statuses/088d6da07d032206dd2405135e0156d8373bbb04"}}}}
{"actor":{"display_login":"bognix"}}