GitHub PullRequestReviewCommentEvent at 2014-11-25 14:19:05
Repository: mb-toolbox
Actor: sergii-tkachenko
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls/comments/20864732","id":20864732,"diff_hunk":"@@ -112,4 +112,36 @@ public function createDrupalUser($user) {\n     return array($result, $password);\n   }\n \n+  /**\n+   * Gather current member count via Drupal end point.\n+   * https://github.com/DoSomething/dosomething/wiki/API#get-member-count\n+   *\n+   *  POST https://beta.dosomething.org/api/v1/users/get_member_count\n+   *\n+   * @return string $memberCountFormatted\n+   *   The string supplied byt the Drupal endpoint /get_member_count.\n+   */\n+  public function getDSMemberCount() {\n+\n+    $curlUrl = getenv('DS_DRUPAL_API_HOST');\n+    $port = getenv('DS_DRUPAL_API_PORT');\n+    if ($port != 0) {\n+      $curlUrl .= ':' . $port;\n+    }\n+    $curlUrl .= '/api/v1/users/get_member_count';","path":"src/MB_Toolbox.php","position":20,"original_position":20,"commit_id":"0dedf93317f9082e54dabd81bf69cd44a99ffa15","original_commit_id":"0dedf93317f9082e54dabd81bf69cd44a99ffa15","user":{"login":"sergii-tkachenko","id":672669,"avatar_url":"https://avatars.githubusercontent.com/u/672669?v=3","gravatar_id":"","url":"https://api.github.com/users/sergii-tkachenko","html_url":"https://github.com/sergii-tkachenko","followers_url":"https://api.github.com/users/sergii-tkachenko/followers","following_url":"https://api.github.com/users/sergii-tkachenko/following{/other_user}","gists_url":"https://api.github.com/users/sergii-tkachenko/gists{/gist_id}","starred_url":"https://api.github.com/users/sergii-tkachenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergii-tkachenko/subscriptions","organizations_url":"https://api.github.com/users/sergii-tkachenko/orgs","repos_url":"https://api.github.com/users/sergii-tkachenko/repos","events_url":"https://api.github.com/users/sergii-tkachenko/events{/privacy}","received_events_url":"https://api.github.com/users/sergii-tkachenko/received_events","type":"User","site_admin":false},"body":"Move `/api/v1` to class constant.","created_at":"2014-11-25T14:19:05Z","updated_at":"2014-11-25T14:19:05Z","html_url":"https://github.com/DoSomething/mb-toolbox/pull/7#discussion_r20864732","pull_request_url":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls/comments/20864732"},"html":{"href":"https://github.com/DoSomething/mb-toolbox/pull/7#discussion_r20864732"},"pull_request":{"href":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls/7","id":24971660,"html_url":"https://github.com/DoSomething/mb-toolbox/pull/7","diff_url":"https://github.com/DoSomething/mb-toolbox/pull/7.diff","patch_url":"https://github.com/DoSomething/mb-toolbox/pull/7.patch","issue_url":"https://api.github.com/repos/DoSomething/mb-toolbox/issues/7","number":7,"state":"open","locked":false,"title":"Adds DS to method name","user":{"login":"DeeZone","id":2119264,"avatar_url":"https://avatars.githubusercontent.com/u/2119264?v=3","gravatar_id":"","url":"https://api.github.com/users/DeeZone","html_url":"https://github.com/DeeZone","followers_url":"https://api.github.com/users/DeeZone/followers","following_url":"https://api.github.com/users/DeeZone/following{/other_user}","gists_url":"https://api.github.com/users/DeeZone/gists{/gist_id}","starred_url":"https://api.github.com/users/DeeZone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeeZone/subscriptions","organizations_url":"https://api.github.com/users/DeeZone/orgs","repos_url":"https://api.github.com/users/DeeZone/repos","events_url":"https://api.github.com/users/DeeZone/events{/privacy}","received_events_url":"https://api.github.com/users/DeeZone/received_events","type":"User","site_admin":false},"body":"Fixes #2 \r\n\r\nAdds common method to lookup the current DoSomething member count text.","created_at":"2014-11-24T23:02:53Z","updated_at":"2014-11-25T14:19:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ce98a1a23807b374908208613ad313f1fcddd31","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls/7/commits","review_comments_url":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls/7/comments","review_comment_url":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls/comments/{number}","comments_url":"https://api.github.com/repos/DoSomething/mb-toolbox/issues/7/comments","statuses_url":"https://api.github.com/repos/DoSomething/mb-toolbox/statuses/0dedf93317f9082e54dabd81bf69cd44a99ffa15","head":{"label":"DoSomething:Issue2-Add_get_MEMBER_COUNT","ref":"Issue2-Add_get_MEMBER_COUNT","sha":"0dedf93317f9082e54dabd81bf69cd44a99ffa15","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":26985840,"name":"mb-toolbox","full_name":"DoSomething/mb-toolbox","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/mb-toolbox","description":"A collection of methods that provide common functionality for many of the producer and consumer applications with the Message Broker system","fork":false,"url":"https://api.github.com/repos/DoSomething/mb-toolbox","forks_url":"https://api.github.com/repos/DoSomething/mb-toolbox/forks","keys_url":"https://api.github.com/repos/DoSomething/mb-toolbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/mb-toolbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/mb-toolbox/teams","hooks_url":"https://api.github.com/repos/DoSomething/mb-toolbox/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/mb-toolbox/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/mb-toolbox/events","assignees_url":"https://api.github.com/repos/DoSomething/mb-toolbox/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/mb-toolbox/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/mb-toolbox/tags","blobs_url":"https://api.github.com/repos/DoSomething/mb-toolbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/mb-toolbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/mb-toolbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/mb-toolbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/mb-toolbox/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/mb-toolbox/languages","stargazers_url":"https://api.github.com/repos/DoSomething/mb-toolbox/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/mb-toolbox/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/mb-toolbox/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/mb-toolbox/subscription","commits_url":"https://api.github.com/repos/DoSomething/mb-toolbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/mb-toolbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/mb-toolbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/mb-toolbox/issues/comments/{number}","contents_url":"https://api.github.com/repos/DoSomething/mb-toolbox/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/mb-toolbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/mb-toolbox/merges","archive_url":"https://api.github.com/repos/DoSomething/mb-toolbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/mb-toolbox/downloads","issues_url":"https://api.github.com/repos/DoSomething/mb-toolbox/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/mb-toolbox/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/mb-toolbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/mb-toolbox/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/mb-toolbox/releases{/id}","created_at":"2014-11-22T02:13:50Z","updated_at":"2014-11-24T21:23:52Z","pushed_at":"2014-11-24T23:01:23Z","git_url":"git://github.com/DoSomething/mb-toolbox.git","ssh_url":"git@github.com:DoSomething/mb-toolbox.git","clone_url":"https://github.com/DoSomething/mb-toolbox.git","svn_url":"https://github.com/DoSomething/mb-toolbox","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"DoSomething:master","ref":"master","sha":"4d8ada7b1bed767619e8cf5c5e42010679044dda","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":26985840,"name":"mb-toolbox","full_name":"DoSomething/mb-toolbox","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/mb-toolbox","description":"A collection of methods that provide common functionality for many of the producer and consumer applications with the Message Broker system","fork":false,"url":"https://api.github.com/repos/DoSomething/mb-toolbox","forks_url":"https://api.github.com/repos/DoSomething/mb-toolbox/forks","keys_url":"https://api.github.com/repos/DoSomething/mb-toolbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/mb-toolbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/mb-toolbox/teams","hooks_url":"https://api.github.com/repos/DoSomething/mb-toolbox/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/mb-toolbox/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/mb-toolbox/events","assignees_url":"https://api.github.com/repos/DoSomething/mb-toolbox/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/mb-toolbox/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/mb-toolbox/tags","blobs_url":"https://api.github.com/repos/DoSomething/mb-toolbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/mb-toolbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/mb-toolbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/mb-toolbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/mb-toolbox/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/mb-toolbox/languages","stargazers_url":"https://api.github.com/repos/DoSomething/mb-toolbox/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/mb-toolbox/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/mb-toolbox/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/mb-toolbox/subscription","commits_url":"https://api.github.com/repos/DoSomething/mb-toolbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/mb-toolbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/mb-toolbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/mb-toolbox/issues/comments/{number}","contents_url":"https://api.github.com/repos/DoSomething/mb-toolbox/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/mb-toolbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/mb-toolbox/merges","archive_url":"https://api.github.com/repos/DoSomething/mb-toolbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/mb-toolbox/downloads","issues_url":"https://api.github.com/repos/DoSomething/mb-toolbox/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/mb-toolbox/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/mb-toolbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/mb-toolbox/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/mb-toolbox/releases{/id}","created_at":"2014-11-22T02:13:50Z","updated_at":"2014-11-24T21:23:52Z","pushed_at":"2014-11-24T23:01:23Z","git_url":"git://github.com/DoSomething/mb-toolbox.git","ssh_url":"git@github.com:DoSomething/mb-toolbox.git","clone_url":"https://github.com/DoSomething/mb-toolbox.git","svn_url":"https://github.com/DoSomething/mb-toolbox","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls/7"},"html":{"href":"https://github.com/DoSomething/mb-toolbox/pull/7"},"issue":{"href":"https://api.github.com/repos/DoSomething/mb-toolbox/issues/7"},"comments":{"href":"https://api.github.com/repos/DoSomething/mb-toolbox/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/DoSomething/mb-toolbox/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/mb-toolbox/statuses/0dedf93317f9082e54dabd81bf69cd44a99ffa15"}}}}