{"action":"created","comment":{"url":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls/comments/207741146","pull_request_review_id":143415930,"id":207741146,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzc0MTE0Ng==","diff_hunk":"@@ -319,57 +323,97 @@ function main($id, $mode)\n \t\t\t\t\t\ttrigger_error($this->language->lang('FORM_INVALID') . '<br><br>' . $this->user->lang('RETURN_UCP', '<a href=\"' . $this->u_action . '\">', '</a>'));\n \t\t\t\t\t}\n \n-\t\t\t\t\t$delete_sql = empty($markedbadges) ? '' : ' AND ' . $this->db->sql_in_set('badge_id', $markedbadges, true); // true for NOT IN, false (default) for IN\n+\t\t\t\t\t// Query user badges\n+\t\t\t\t\t$sql = \"SELECT badge_id\n+\t\t\t\t\t\tFROM $user_badge_table\n+\t\t\t\t\t\tWHERE user_id = $this_user_id\";\n+\t\t\t\t\tif (!($result = $this->db->sql_query($sql)))\n+\t\t\t\t\t{\n+\t\t\t\t\t\ttrigger_error($this->user->lang('UCP_UBADGE_QUERY_FAILED') . '<br /><br />' . $this->user->lang('RETURN_UCP', '<a href=\"' . $this->u_action . '\">', '</a>'));\n+\t\t\t\t\t}\n+\t\t\t\t\t$user_badges = $this->db->sql_fetchrowset($result);\n+\t\t\t\t\t$this->db->sql_freeresult($result);\n \n \t\t\t\t\t// Delete all user badges that are NOT IN the array of marked badges or all if none is selected.\n+\t\t\t\t\t$delete_sql = empty($markedbadges) ? '' : ' AND ' . $this->db->sql_in_set('badge_id', $markedbadges, true); // true for NOT IN, false (default) for IN\n \t\t\t\t\t$sql = 'DELETE FROM ' . $user_badge_table . '\n \t\t\t\t\t\tWHERE user_id = ' . $this_user_id . \"\n \t\t\t\t\t\t$delete_sql\";\n-\t\t\t\t\t$this->db->sql_query($sql);\n+\t\t\t\t\tif (!$this->db->sql_query($sql))\n+\t\t\t\t\t{\n+\t\t\t\t\t\ttrigger_error($this->user->lang('UCP_DELETE_UNSELECTED_QUERY_FAILED') . '<br /><br />' . $this->user->lang('RETURN_UCP', '<a href=\"' . $this->u_action . '\">', '</a>'));\n+\t\t\t\t\t}\n \n-\t\t\t\t\tforeach ($markedbadges as $markedbadge)\n+\t\t\t\t\tif ($markedbadges)\n \t\t\t\t\t{\n-\t\t\t\t\t\t// Reject duplicates.\n-\t\t\t\t\t\t$sql = \"SELECT COUNT(*) as duplcount\n-\t\t\t\t\t\t\tFROM $user_badge_table\n-\t\t\t\t\t\t\tWHERE badge_id = $markedbadge\n-\t\t\t\t\t\t\tAND user_id = $this_user_id\";\n+\t\t\t\t\t\t// Query valid badges\n+\t\t\t\t\t\t$sql = \"SELECT badge_id\n+\t\t\t\t\t\t\tFROM $badge_table\n+\t\t\t\t\t\t\tWHERE badge_default = TRUE\";\n \t\t\t\t\t\tif (!($result = $this->db->sql_query($sql)))\n \t\t\t\t\t\t{\n-\t\t\t\t\t\t\ttrigger_error($this->user->lang('UCP_DUPLICATE_USER_BADGE_QUERY_FAILED') . '<br /><br />' . $this->user->lang('RETURN_UCP', '<a href=\"' . $this->u_action . '\">', '</a>'));\n+\t\t\t\t\t\t\ttrigger_error($this->user->lang('UCP_DEFAULT_BADGES_QUERY_FAILED') . '<br /><br />' . $this->user->lang('RETURN_UCP', '<a href=\"' . $this->u_action . '\">', '</a>'));\n \t\t\t\t\t\t}\n-\t\t\t\t\t\t$duplicates = (int) $this->db->sql_fetchfield('duplcount');\n+\t\t\t\t\t\t$default_badges = $this->db->sql_fetchrowset($result);\n \t\t\t\t\t\t$this->db->sql_freeresult($result);\n-\t\t\t\t\t\tif (!$duplicates)\n+\n+\t\t\t\t\t\t$sql = \"SELECT badge_id\n+\t\t\t\t\t\t\tFROM $badge_avail_table\n+\t\t\t\t\t\t\tWHERE user_id = $this_user_id\";\n+\t\t\t\t\t\tif (!($result = $this->db->sql_query($sql)))\n \t\t\t\t\t\t{\n-\t\t\t\t\t\t\t// Add a new user badge.\n-\t\t\t\t\t\t\t$data = array(\n-\t\t\t\t\t\t\t\t'user_id' => $this_user_id,\n-\t\t\t\t\t\t\t\t'badge_id' => $markedbadge,\n-\t\t\t\t\t\t\t\t'badge_order' => null // Order value will be validated after loop.\n-\t\t\t\t\t\t\t);\n-\t\t\t\t\t\t\t$sql = 'INSERT INTO ' . $user_badge_table . $this->db->sql_build_array('INSERT', $data);\n-\t\t\t\t\t\t\t$this->db->sql_query($sql);\n+\t\t\t\t\t\t\ttrigger_error($this->user->lang('UCP_AVAIL_BADGES_QUERY_FAILED') . '<br /><br />' . $this->user->lang('RETURN_UCP', '<a href=\"' . $this->u_action . '\">', '</a>'));\n \t\t\t\t\t\t}\n+\t\t\t\t\t\t$custom_badges = $this->db->sql_fetchrowset($result);\n+\t\t\t\t\t\t$this->db->sql_freeresult($result);\n+\n+\t\t\t\t\t\t// Prepare an array for inserting badges\n+\t\t\t\t\t\t$sql_array = array();\n+\t\t\t\t\t\tforeach ($markedbadges as $markedbadge)\n+\t\t\t\t\t\t{\n+\t\t\t\t\t\t\t// Validate requested badges and reject duplicates.\n+\t\t\t\t\t\t\tif (($this->core->in_2d_array($markedbadge, $default_badges) || $this->core->in_2d_array($markedbadge, $custom_badges)) && !$this->core->in_2d_array($markedbadge, $user_badges))\n+\t\t\t\t\t\t\t{\n+\t\t\t\t\t\t\t\t$sql_array[] = array(\n+\t\t\t\t\t\t\t\t\t'user_id' => $this_user_id,\n+\t\t\t\t\t\t\t\t\t'badge_id' => $markedbadge,\n+\t\t\t\t\t\t\t\t\t'badge_order' => null // Order value will be validated after loop.\n+\t\t\t\t\t\t\t\t);\n+\t\t\t\t\t\t\t}\n+\t\t\t\t\t\t}\n+\n+\t\t\t\t\t\tif(!empty($sql_array))","path":"ucp/useraccounts_module.php","position":111,"original_position":111,"commit_id":"5c2e882de91dafebfd4e766b9ae0adf4b07be625","original_commit_id":"5c2e882de91dafebfd4e766b9ae0adf4b07be625","user":{"login":"pchote","id":167819,"node_id":"MDQ6VXNlcjE2NzgxOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/167819?v=4","gravatar_id":"","url":"https://api.github.com/users/pchote","html_url":"https://github.com/pchote","followers_url":"https://api.github.com/users/pchote/followers","following_url":"https://api.github.com/users/pchote/following{/other_user}","gists_url":"https://api.github.com/users/pchote/gists{/gist_id}","starred_url":"https://api.github.com/users/pchote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchote/subscriptions","organizations_url":"https://api.github.com/users/pchote/orgs","repos_url":"https://api.github.com/users/pchote/repos","events_url":"https://api.github.com/users/pchote/events{/privacy}","received_events_url":"https://api.github.com/users/pchote/received_events","type":"User","site_admin":false},"body":"Style nit: need a space between `if (`","created_at":"2018-08-05T16:05:58Z","updated_at":"2018-08-05T16:05:58Z","html_url":"https://github.com/OpenRA/openrauseraccounts/pull/36#discussion_r207741146","pull_request_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls/36","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls/comments/207741146"},"html":{"href":"https://github.com/OpenRA/openrauseraccounts/pull/36#discussion_r207741146"},"pull_request":{"href":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls/36","id":206201400,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MjAxNDAw","html_url":"https://github.com/OpenRA/openrauseraccounts/pull/36","diff_url":"https://github.com/OpenRA/openrauseraccounts/pull/36.diff","patch_url":"https://github.com/OpenRA/openrauseraccounts/pull/36.patch","issue_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/issues/36","number":36,"state":"open","locked":false,"title":"Validate badge selection before input is saved.","user":{"login":"matjaeck","id":37185497,"node_id":"MDQ6VXNlcjM3MTg1NDk3","avatar_url":"https://avatars2.githubusercontent.com/u/37185497?v=4","gravatar_id":"","url":"https://api.github.com/users/matjaeck","html_url":"https://github.com/matjaeck","followers_url":"https://api.github.com/users/matjaeck/followers","following_url":"https://api.github.com/users/matjaeck/following{/other_user}","gists_url":"https://api.github.com/users/matjaeck/gists{/gist_id}","starred_url":"https://api.github.com/users/matjaeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matjaeck/subscriptions","organizations_url":"https://api.github.com/users/matjaeck/orgs","repos_url":"https://api.github.com/users/matjaeck/repos","events_url":"https://api.github.com/users/matjaeck/events{/privacy}","received_events_url":"https://api.github.com/users/matjaeck/received_events","type":"User","site_admin":false},"body":"Fixes OpenRA/OpenRAWeb#396.","created_at":"2018-08-04T17:17:08Z","updated_at":"2018-08-05T16:05:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"095faeb8f29761ede5713bb99e0d25af7fd18000","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls/36/commits","review_comments_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls/36/comments","review_comment_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/issues/36/comments","statuses_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/statuses/5c2e882de91dafebfd4e766b9ae0adf4b07be625","head":{"label":"OpenRA:validate-selection","ref":"validate-selection","sha":"5c2e882de91dafebfd4e766b9ae0adf4b07be625","user":{"login":"OpenRA","id":409046,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwOTA0Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/409046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenRA","html_url":"https://github.com/OpenRA","followers_url":"https://api.github.com/users/OpenRA/followers","following_url":"https://api.github.com/users/OpenRA/following{/other_user}","gists_url":"https://api.github.com/users/OpenRA/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRA/subscriptions","organizations_url":"https://api.github.com/users/OpenRA/orgs","repos_url":"https://api.github.com/users/OpenRA/repos","events_url":"https://api.github.com/users/OpenRA/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRA/received_events","type":"Organization","site_admin":false},"repo":{"id":136327708,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYzMjc3MDg=","name":"openrauseraccounts","full_name":"OpenRA/openrauseraccounts","owner":{"login":"OpenRA","id":409046,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwOTA0Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/409046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenRA","html_url":"https://github.com/OpenRA","followers_url":"https://api.github.com/users/OpenRA/followers","following_url":"https://api.github.com/users/OpenRA/following{/other_user}","gists_url":"https://api.github.com/users/OpenRA/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRA/subscriptions","organizations_url":"https://api.github.com/users/OpenRA/orgs","repos_url":"https://api.github.com/users/OpenRA/repos","events_url":"https://api.github.com/users/OpenRA/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenRA/openrauseraccounts","description":null,"fork":false,"url":"https://api.github.com/repos/OpenRA/openrauseraccounts","forks_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/forks","keys_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/teams","hooks_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/hooks","issue_events_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/issues/events{/number}","events_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/events","assignees_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/assignees{/user}","branches_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/branches{/branch}","tags_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/tags","blobs_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/languages","stargazers_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/stargazers","contributors_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/contributors","subscribers_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/subscribers","subscription_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/subscription","commits_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/contents/{+path}","compare_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/merges","archive_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/downloads","issues_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/issues{/number}","pulls_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/labels{/name}","releases_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/releases{/id}","deployments_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/deployments","created_at":"2018-06-06T12:47:24Z","updated_at":"2018-07-28T19:33:54Z","pushed_at":"2018-08-05T14:20:49Z","git_url":"git://github.com/OpenRA/openrauseraccounts.git","ssh_url":"git@github.com:OpenRA/openrauseraccounts.git","clone_url":"https://github.com/OpenRA/openrauseraccounts.git","svn_url":"https://github.com/OpenRA/openrauseraccounts","homepage":null,"size":34,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"OpenRA:master","ref":"master","sha":"e915340051fdd954bc2a3f2aea6513b66e9bde02","user":{"login":"OpenRA","id":409046,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwOTA0Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/409046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenRA","html_url":"https://github.com/OpenRA","followers_url":"https://api.github.com/users/OpenRA/followers","following_url":"https://api.github.com/users/OpenRA/following{/other_user}","gists_url":"https://api.github.com/users/OpenRA/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRA/subscriptions","organizations_url":"https://api.github.com/users/OpenRA/orgs","repos_url":"https://api.github.com/users/OpenRA/repos","events_url":"https://api.github.com/users/OpenRA/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRA/received_events","type":"Organization","site_admin":false},"repo":{"id":136327708,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYzMjc3MDg=","name":"openrauseraccounts","full_name":"OpenRA/openrauseraccounts","owner":{"login":"OpenRA","id":409046,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwOTA0Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/409046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenRA","html_url":"https://github.com/OpenRA","followers_url":"https://api.github.com/users/OpenRA/followers","following_url":"https://api.github.com/users/OpenRA/following{/other_user}","gists_url":"https://api.github.com/users/OpenRA/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRA/subscriptions","organizations_url":"https://api.github.com/users/OpenRA/orgs","repos_url":"https://api.github.com/users/OpenRA/repos","events_url":"https://api.github.com/users/OpenRA/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenRA/openrauseraccounts","description":null,"fork":false,"url":"https://api.github.com/repos/OpenRA/openrauseraccounts","forks_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/forks","keys_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/teams","hooks_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/hooks","issue_events_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/issues/events{/number}","events_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/events","assignees_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/assignees{/user}","branches_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/branches{/branch}","tags_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/tags","blobs_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/languages","stargazers_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/stargazers","contributors_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/contributors","subscribers_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/subscribers","subscription_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/subscription","commits_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/contents/{+path}","compare_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/merges","archive_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/downloads","issues_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/issues{/number}","pulls_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/labels{/name}","releases_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/releases{/id}","deployments_url":"https://api.github.com/repos/OpenRA/openrauseraccounts/deployments","created_at":"2018-06-06T12:47:24Z","updated_at":"2018-07-28T19:33:54Z","pushed_at":"2018-08-05T14:20:49Z","git_url":"git://github.com/OpenRA/openrauseraccounts.git","ssh_url":"git@github.com:OpenRA/openrauseraccounts.git","clone_url":"https://github.com/OpenRA/openrauseraccounts.git","svn_url":"https://github.com/OpenRA/openrauseraccounts","homepage":null,"size":34,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls/36"},"html":{"href":"https://github.com/OpenRA/openrauseraccounts/pull/36"},"issue":{"href":"https://api.github.com/repos/OpenRA/openrauseraccounts/issues/36"},"comments":{"href":"https://api.github.com/repos/OpenRA/openrauseraccounts/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenRA/openrauseraccounts/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/OpenRA/openrauseraccounts/statuses/5c2e882de91dafebfd4e766b9ae0adf4b07be625"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"pchote"}}