{"action":"created","comment":{"url":"https://api.github.com/repos/Yelp/pushmanager/pulls/comments/26998215","id":26998215,"diff_hunk":"@@ -94,22 +95,12 @@ $(function() {\n         });\n     });\n     $('.message-people').live('click', function() {\n-        var contents = $(this).siblings('.item-count').text();\n-\n-        var people_pat = new RegExp(    // person, person (person, person), person (person), person\n-            \"(?:[a-z]+\" +                   // A username, possibly followed by\n-                \"(?:\\\\s\\\\(\" +               //   a space and (\n-                    \"(?:[a-z]+,?\\\\s?)+\" +   //   and one or more usernames (possibly separated by comma and/or a single space)\n-                \"\\\\))?\" +                   //   followed by a )\n-            \",?\\\\s?\" +                      // possibly followed by a command and space\n-            \")+\", \"i\")                           // and more of the same\n-\n-        var people = (people_pat.exec(contents) || [\"\"])[0];\n-        PushManager.send_message_dialog(people);\n+\tvar state = $(this).parent().attr('section');\n+\tPushManager.send_message_dialog(state);\n     });\n     $('#message-all').live('click', function() {\n-        var people = PushManager.all_involved_users();","path":"pushmanager/static/js/push.js","position":43,"original_position":43,"commit_id":"6f6e74f89670b3138e118534482ce6e05357a0a4","original_commit_id":"6f6e74f89670b3138e118534482ce6e05357a0a4","user":{"login":"chunkyg","id":11428851,"avatar_url":"https://avatars.githubusercontent.com/u/11428851?v=3","gravatar_id":"","url":"https://api.github.com/users/chunkyg","html_url":"https://github.com/chunkyg","followers_url":"https://api.github.com/users/chunkyg/followers","following_url":"https://api.github.com/users/chunkyg/following{/other_user}","gists_url":"https://api.github.com/users/chunkyg/gists{/gist_id}","starred_url":"https://api.github.com/users/chunkyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chunkyg/subscriptions","organizations_url":"https://api.github.com/users/chunkyg/orgs","repos_url":"https://api.github.com/users/chunkyg/repos","events_url":"https://api.github.com/users/chunkyg/events{/privacy}","received_events_url":"https://api.github.com/users/chunkyg/received_events","type":"User","site_admin":false},"body":"This has been removed in my changes.","created_at":"2015-03-24T01:53:34Z","updated_at":"2015-03-24T01:53:34Z","html_url":"https://github.com/Yelp/pushmanager/pull/163#discussion_r26998215","pull_request_url":"https://api.github.com/repos/Yelp/pushmanager/pulls/163","_links":{"self":{"href":"https://api.github.com/repos/Yelp/pushmanager/pulls/comments/26998215"},"html":{"href":"https://github.com/Yelp/pushmanager/pull/163#discussion_r26998215"},"pull_request":{"href":"https://api.github.com/repos/Yelp/pushmanager/pulls/163"}}},"pull_request":{"url":"https://api.github.com/repos/Yelp/pushmanager/pulls/163","id":31561771,"html_url":"https://github.com/Yelp/pushmanager/pull/163","diff_url":"https://github.com/Yelp/pushmanager/pull/163.diff","patch_url":"https://github.com/Yelp/pushmanager/pull/163.patch","issue_url":"https://api.github.com/repos/Yelp/pushmanager/issues/163","number":163,"state":"open","locked":false,"title":"Refactor message functionality to use DB instead of HTML data.","user":{"login":"chunkyg","id":11428851,"avatar_url":"https://avatars.githubusercontent.com/u/11428851?v=3","gravatar_id":"","url":"https://api.github.com/users/chunkyg","html_url":"https://github.com/chunkyg","followers_url":"https://api.github.com/users/chunkyg/followers","following_url":"https://api.github.com/users/chunkyg/following{/other_user}","gists_url":"https://api.github.com/users/chunkyg/gists{/gist_id}","starred_url":"https://api.github.com/users/chunkyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chunkyg/subscriptions","organizations_url":"https://api.github.com/users/chunkyg/orgs","repos_url":"https://api.github.com/users/chunkyg/repos","events_url":"https://api.github.com/users/chunkyg/events{/privacy}","received_events_url":"https://api.github.com/users/chunkyg/received_events","type":"User","site_admin":false},"body":"Removed regex parsing the formatted data for user to message.\r\nInstead extract data from the DB for the targeted users.\r\nUpdated test to reflect new /msg parameters.","created_at":"2015-03-19T20:17:47Z","updated_at":"2015-03-24T01:53:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"646320c4c799cebbe48e2649f5274590e68b9a23","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/pushmanager/pulls/163/commits","review_comments_url":"https://api.github.com/repos/Yelp/pushmanager/pulls/163/comments","review_comment_url":"https://api.github.com/repos/Yelp/pushmanager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/pushmanager/issues/163/comments","statuses_url":"https://api.github.com/repos/Yelp/pushmanager/statuses/6f6e74f89670b3138e118534482ce6e05357a0a4","head":{"label":"Yelp:removedRegExForMsgPeople","ref":"removedRegExForMsgPeople","sha":"6f6e74f89670b3138e118534482ce6e05357a0a4","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":7792462,"name":"pushmanager","full_name":"Yelp/pushmanager","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/pushmanager","description":"Pushmanager is a web application to manage source code deployments.","fork":false,"url":"https://api.github.com/repos/Yelp/pushmanager","forks_url":"https://api.github.com/repos/Yelp/pushmanager/forks","keys_url":"https://api.github.com/repos/Yelp/pushmanager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/pushmanager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/pushmanager/teams","hooks_url":"https://api.github.com/repos/Yelp/pushmanager/hooks","issue_events_url":"https://api.github.com/repos/Yelp/pushmanager/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/pushmanager/events","assignees_url":"https://api.github.com/repos/Yelp/pushmanager/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/pushmanager/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/pushmanager/tags","blobs_url":"https://api.github.com/repos/Yelp/pushmanager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/pushmanager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/pushmanager/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/pushmanager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/pushmanager/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/pushmanager/languages","stargazers_url":"https://api.github.com/repos/Yelp/pushmanager/stargazers","contributors_url":"https://api.github.com/repos/Yelp/pushmanager/contributors","subscribers_url":"https://api.github.com/repos/Yelp/pushmanager/subscribers","subscription_url":"https://api.github.com/repos/Yelp/pushmanager/subscription","commits_url":"https://api.github.com/repos/Yelp/pushmanager/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/pushmanager/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/pushmanager/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/pushmanager/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/pushmanager/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/pushmanager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/pushmanager/merges","archive_url":"https://api.github.com/repos/Yelp/pushmanager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/pushmanager/downloads","issues_url":"https://api.github.com/repos/Yelp/pushmanager/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/pushmanager/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/pushmanager/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/pushmanager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/pushmanager/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/pushmanager/releases{/id}","created_at":"2013-01-24T06:46:35Z","updated_at":"2015-03-21T00:08:47Z","pushed_at":"2015-03-23T23:52:54Z","git_url":"git://github.com/Yelp/pushmanager.git","ssh_url":"git@github.com:Yelp/pushmanager.git","clone_url":"https://github.com/Yelp/pushmanager.git","svn_url":"https://github.com/Yelp/pushmanager","homepage":null,"size":2197,"stargazers_count":30,"watchers_count":30,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":15,"forks":28,"open_issues":15,"watchers":30,"default_branch":"master"}},"base":{"label":"Yelp:master","ref":"master","sha":"1fcae14de463f6dcd6a847aa45d67613757cba50","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":7792462,"name":"pushmanager","full_name":"Yelp/pushmanager","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/pushmanager","description":"Pushmanager is a web application to manage source code deployments.","fork":false,"url":"https://api.github.com/repos/Yelp/pushmanager","forks_url":"https://api.github.com/repos/Yelp/pushmanager/forks","keys_url":"https://api.github.com/repos/Yelp/pushmanager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/pushmanager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/pushmanager/teams","hooks_url":"https://api.github.com/repos/Yelp/pushmanager/hooks","issue_events_url":"https://api.github.com/repos/Yelp/pushmanager/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/pushmanager/events","assignees_url":"https://api.github.com/repos/Yelp/pushmanager/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/pushmanager/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/pushmanager/tags","blobs_url":"https://api.github.com/repos/Yelp/pushmanager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/pushmanager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/pushmanager/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/pushmanager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/pushmanager/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/pushmanager/languages","stargazers_url":"https://api.github.com/repos/Yelp/pushmanager/stargazers","contributors_url":"https://api.github.com/repos/Yelp/pushmanager/contributors","subscribers_url":"https://api.github.com/repos/Yelp/pushmanager/subscribers","subscription_url":"https://api.github.com/repos/Yelp/pushmanager/subscription","commits_url":"https://api.github.com/repos/Yelp/pushmanager/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/pushmanager/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/pushmanager/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/pushmanager/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/pushmanager/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/pushmanager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/pushmanager/merges","archive_url":"https://api.github.com/repos/Yelp/pushmanager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/pushmanager/downloads","issues_url":"https://api.github.com/repos/Yelp/pushmanager/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/pushmanager/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/pushmanager/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/pushmanager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/pushmanager/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/pushmanager/releases{/id}","created_at":"2013-01-24T06:46:35Z","updated_at":"2015-03-21T00:08:47Z","pushed_at":"2015-03-23T23:52:54Z","git_url":"git://github.com/Yelp/pushmanager.git","ssh_url":"git@github.com:Yelp/pushmanager.git","clone_url":"https://github.com/Yelp/pushmanager.git","svn_url":"https://github.com/Yelp/pushmanager","homepage":null,"size":2197,"stargazers_count":30,"watchers_count":30,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":15,"forks":28,"open_issues":15,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/pushmanager/pulls/163"},"html":{"href":"https://github.com/Yelp/pushmanager/pull/163"},"issue":{"href":"https://api.github.com/repos/Yelp/pushmanager/issues/163"},"comments":{"href":"https://api.github.com/repos/Yelp/pushmanager/issues/163/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/pushmanager/pulls/163/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/pushmanager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/pushmanager/pulls/163/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/pushmanager/statuses/6f6e74f89670b3138e118534482ce6e05357a0a4"}}}}