{"action":"created","comment":{"url":"https://api.github.com/repos/elasticsales/closeio-api/pulls/comments/24819594","id":24819594,"diff_hunk":"@@ -0,0 +1,105 @@\n+#-*- coding: utf-8 -*-\n+\n+import re\n+import argparse\n+import csv\n+import logging\n+from closeio_api import Client as CloseIO_API, APIError\n+\n+get_contact_info = lambda key, row, what, typ: [{what: row[x], 'type': typ} for x in row.keys()","path":"scripts/bulk_update_leads_info.py","position":9,"original_position":9,"commit_id":"9e50cbccb1f98d3e30248c4b4f6cbef404a5fc3e","original_commit_id":"9e50cbccb1f98d3e30248c4b4f6cbef404a5fc3e","user":{"login":"philfreo","id":97612,"avatar_url":"https://avatars.githubusercontent.com/u/97612?v=3","gravatar_id":"","url":"https://api.github.com/users/philfreo","html_url":"https://github.com/philfreo","followers_url":"https://api.github.com/users/philfreo/followers","following_url":"https://api.github.com/users/philfreo/following{/other_user}","gists_url":"https://api.github.com/users/philfreo/gists{/gist_id}","starred_url":"https://api.github.com/users/philfreo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philfreo/subscriptions","organizations_url":"https://api.github.com/users/philfreo/orgs","repos_url":"https://api.github.com/users/philfreo/repos","events_url":"https://api.github.com/users/philfreo/events{/privacy}","received_events_url":"https://api.github.com/users/philfreo/received_events","type":"User","site_admin":false},"body":"seems like it would be more readable if it was a simple def function instead of lambda since it spans multiple lines","created_at":"2015-02-17T14:45:27Z","updated_at":"2015-02-17T14:45:27Z","html_url":"https://github.com/elasticsales/closeio-api/pull/23#discussion_r24819594","pull_request_url":"https://api.github.com/repos/elasticsales/closeio-api/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/elasticsales/closeio-api/pulls/comments/24819594"},"html":{"href":"https://github.com/elasticsales/closeio-api/pull/23#discussion_r24819594"},"pull_request":{"href":"https://api.github.com/repos/elasticsales/closeio-api/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/elasticsales/closeio-api/pulls/23","id":29407583,"html_url":"https://github.com/elasticsales/closeio-api/pull/23","diff_url":"https://github.com/elasticsales/closeio-api/pull/23.diff","patch_url":"https://github.com/elasticsales/closeio-api/pull/23.patch","issue_url":"https://api.github.com/repos/elasticsales/closeio-api/issues/23","number":23,"state":"open","locked":false,"title":"Task/19 bulk_update_leads_info","user":{"login":"congocongo","id":2765024,"avatar_url":"https://avatars.githubusercontent.com/u/2765024?v=3","gravatar_id":"","url":"https://api.github.com/users/congocongo","html_url":"https://github.com/congocongo","followers_url":"https://api.github.com/users/congocongo/followers","following_url":"https://api.github.com/users/congocongo/following{/other_user}","gists_url":"https://api.github.com/users/congocongo/gists{/gist_id}","starred_url":"https://api.github.com/users/congocongo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/congocongo/subscriptions","organizations_url":"https://api.github.com/users/congocongo/orgs","repos_url":"https://api.github.com/users/congocongo/repos","events_url":"https://api.github.com/users/congocongo/events{/privacy}","received_events_url":"https://api.github.com/users/congocongo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-16T23:27:01Z","updated_at":"2015-02-17T14:45:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2ae80237944f12a85618146b83946a7f1575b71","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elasticsales/closeio-api/pulls/23/commits","review_comments_url":"https://api.github.com/repos/elasticsales/closeio-api/pulls/23/comments","review_comment_url":"https://api.github.com/repos/elasticsales/closeio-api/pulls/comments/{number}","comments_url":"https://api.github.com/repos/elasticsales/closeio-api/issues/23/comments","statuses_url":"https://api.github.com/repos/elasticsales/closeio-api/statuses/9e50cbccb1f98d3e30248c4b4f6cbef404a5fc3e","head":{"label":"congocongo:task/19","ref":"task/19","sha":"9e50cbccb1f98d3e30248c4b4f6cbef404a5fc3e","user":{"login":"congocongo","id":2765024,"avatar_url":"https://avatars.githubusercontent.com/u/2765024?v=3","gravatar_id":"","url":"https://api.github.com/users/congocongo","html_url":"https://github.com/congocongo","followers_url":"https://api.github.com/users/congocongo/followers","following_url":"https://api.github.com/users/congocongo/following{/other_user}","gists_url":"https://api.github.com/users/congocongo/gists{/gist_id}","starred_url":"https://api.github.com/users/congocongo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/congocongo/subscriptions","organizations_url":"https://api.github.com/users/congocongo/orgs","repos_url":"https://api.github.com/users/congocongo/repos","events_url":"https://api.github.com/users/congocongo/events{/privacy}","received_events_url":"https://api.github.com/users/congocongo/received_events","type":"User","site_admin":false},"repo":{"id":29997379,"name":"closeio-api","full_name":"congocongo/closeio-api","owner":{"login":"congocongo","id":2765024,"avatar_url":"https://avatars.githubusercontent.com/u/2765024?v=3","gravatar_id":"","url":"https://api.github.com/users/congocongo","html_url":"https://github.com/congocongo","followers_url":"https://api.github.com/users/congocongo/followers","following_url":"https://api.github.com/users/congocongo/following{/other_user}","gists_url":"https://api.github.com/users/congocongo/gists{/gist_id}","starred_url":"https://api.github.com/users/congocongo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/congocongo/subscriptions","organizations_url":"https://api.github.com/users/congocongo/orgs","repos_url":"https://api.github.com/users/congocongo/repos","events_url":"https://api.github.com/users/congocongo/events{/privacy}","received_events_url":"https://api.github.com/users/congocongo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/congocongo/closeio-api","description":"Python API Client & Examples for Close.io","fork":true,"url":"https://api.github.com/repos/congocongo/closeio-api","forks_url":"https://api.github.com/repos/congocongo/closeio-api/forks","keys_url":"https://api.github.com/repos/congocongo/closeio-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/congocongo/closeio-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/congocongo/closeio-api/teams","hooks_url":"https://api.github.com/repos/congocongo/closeio-api/hooks","issue_events_url":"https://api.github.com/repos/congocongo/closeio-api/issues/events{/number}","events_url":"https://api.github.com/repos/congocongo/closeio-api/events","assignees_url":"https://api.github.com/repos/congocongo/closeio-api/assignees{/user}","branches_url":"https://api.github.com/repos/congocongo/closeio-api/branches{/branch}","tags_url":"https://api.github.com/repos/congocongo/closeio-api/tags","blobs_url":"https://api.github.com/repos/congocongo/closeio-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/congocongo/closeio-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/congocongo/closeio-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/congocongo/closeio-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/congocongo/closeio-api/statuses/{sha}","languages_url":"https://api.github.com/repos/congocongo/closeio-api/languages","stargazers_url":"https://api.github.com/repos/congocongo/closeio-api/stargazers","contributors_url":"https://api.github.com/repos/congocongo/closeio-api/contributors","subscribers_url":"https://api.github.com/repos/congocongo/closeio-api/subscribers","subscription_url":"https://api.github.com/repos/congocongo/closeio-api/subscription","commits_url":"https://api.github.com/repos/congocongo/closeio-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/congocongo/closeio-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/congocongo/closeio-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/congocongo/closeio-api/issues/comments/{number}","contents_url":"https://api.github.com/repos/congocongo/closeio-api/contents/{+path}","compare_url":"https://api.github.com/repos/congocongo/closeio-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/congocongo/closeio-api/merges","archive_url":"https://api.github.com/repos/congocongo/closeio-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/congocongo/closeio-api/downloads","issues_url":"https://api.github.com/repos/congocongo/closeio-api/issues{/number}","pulls_url":"https://api.github.com/repos/congocongo/closeio-api/pulls{/number}","milestones_url":"https://api.github.com/repos/congocongo/closeio-api/milestones{/number}","notifications_url":"https://api.github.com/repos/congocongo/closeio-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/congocongo/closeio-api/labels{/name}","releases_url":"https://api.github.com/repos/congocongo/closeio-api/releases{/id}","created_at":"2015-01-29T01:23:09Z","updated_at":"2015-02-17T06:12:06Z","pushed_at":"2015-02-17T09:26:15Z","git_url":"git://github.com/congocongo/closeio-api.git","ssh_url":"git@github.com:congocongo/closeio-api.git","clone_url":"https://github.com/congocongo/closeio-api.git","svn_url":"https://github.com/congocongo/closeio-api","homepage":"http://developer.close.io/","size":248,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elasticsales:master","ref":"master","sha":"d1a78519b5127d4f01e3e213d411c11951b01bde","user":{"login":"elasticsales","id":437267,"avatar_url":"https://avatars.githubusercontent.com/u/437267?v=3","gravatar_id":"","url":"https://api.github.com/users/elasticsales","html_url":"https://github.com/elasticsales","followers_url":"https://api.github.com/users/elasticsales/followers","following_url":"https://api.github.com/users/elasticsales/following{/other_user}","gists_url":"https://api.github.com/users/elasticsales/gists{/gist_id}","starred_url":"https://api.github.com/users/elasticsales/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elasticsales/subscriptions","organizations_url":"https://api.github.com/users/elasticsales/orgs","repos_url":"https://api.github.com/users/elasticsales/repos","events_url":"https://api.github.com/users/elasticsales/events{/privacy}","received_events_url":"https://api.github.com/users/elasticsales/received_events","type":"Organization","site_admin":false},"repo":{"id":5985481,"name":"closeio-api","full_name":"elasticsales/closeio-api","owner":{"login":"elasticsales","id":437267,"avatar_url":"https://avatars.githubusercontent.com/u/437267?v=3","gravatar_id":"","url":"https://api.github.com/users/elasticsales","html_url":"https://github.com/elasticsales","followers_url":"https://api.github.com/users/elasticsales/followers","following_url":"https://api.github.com/users/elasticsales/following{/other_user}","gists_url":"https://api.github.com/users/elasticsales/gists{/gist_id}","starred_url":"https://api.github.com/users/elasticsales/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elasticsales/subscriptions","organizations_url":"https://api.github.com/users/elasticsales/orgs","repos_url":"https://api.github.com/users/elasticsales/repos","events_url":"https://api.github.com/users/elasticsales/events{/privacy}","received_events_url":"https://api.github.com/users/elasticsales/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elasticsales/closeio-api","description":"Python API Client & Examples for Close.io","fork":false,"url":"https://api.github.com/repos/elasticsales/closeio-api","forks_url":"https://api.github.com/repos/elasticsales/closeio-api/forks","keys_url":"https://api.github.com/repos/elasticsales/closeio-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elasticsales/closeio-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elasticsales/closeio-api/teams","hooks_url":"https://api.github.com/repos/elasticsales/closeio-api/hooks","issue_events_url":"https://api.github.com/repos/elasticsales/closeio-api/issues/events{/number}","events_url":"https://api.github.com/repos/elasticsales/closeio-api/events","assignees_url":"https://api.github.com/repos/elasticsales/closeio-api/assignees{/user}","branches_url":"https://api.github.com/repos/elasticsales/closeio-api/branches{/branch}","tags_url":"https://api.github.com/repos/elasticsales/closeio-api/tags","blobs_url":"https://api.github.com/repos/elasticsales/closeio-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elasticsales/closeio-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elasticsales/closeio-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/elasticsales/closeio-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elasticsales/closeio-api/statuses/{sha}","languages_url":"https://api.github.com/repos/elasticsales/closeio-api/languages","stargazers_url":"https://api.github.com/repos/elasticsales/closeio-api/stargazers","contributors_url":"https://api.github.com/repos/elasticsales/closeio-api/contributors","subscribers_url":"https://api.github.com/repos/elasticsales/closeio-api/subscribers","subscription_url":"https://api.github.com/repos/elasticsales/closeio-api/subscription","commits_url":"https://api.github.com/repos/elasticsales/closeio-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/elasticsales/closeio-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/elasticsales/closeio-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/elasticsales/closeio-api/issues/comments/{number}","contents_url":"https://api.github.com/repos/elasticsales/closeio-api/contents/{+path}","compare_url":"https://api.github.com/repos/elasticsales/closeio-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elasticsales/closeio-api/merges","archive_url":"https://api.github.com/repos/elasticsales/closeio-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elasticsales/closeio-api/downloads","issues_url":"https://api.github.com/repos/elasticsales/closeio-api/issues{/number}","pulls_url":"https://api.github.com/repos/elasticsales/closeio-api/pulls{/number}","milestones_url":"https://api.github.com/repos/elasticsales/closeio-api/milestones{/number}","notifications_url":"https://api.github.com/repos/elasticsales/closeio-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elasticsales/closeio-api/labels{/name}","releases_url":"https://api.github.com/repos/elasticsales/closeio-api/releases{/id}","created_at":"2012-09-27T16:59:47Z","updated_at":"2015-02-17T14:44:07Z","pushed_at":"2015-02-17T14:44:07Z","git_url":"git://github.com/elasticsales/closeio-api.git","ssh_url":"git@github.com:elasticsales/closeio-api.git","clone_url":"https://github.com/elasticsales/closeio-api.git","svn_url":"https://github.com/elasticsales/closeio-api","homepage":"http://developer.close.io/","size":540,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":6,"forks":10,"open_issues":6,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elasticsales/closeio-api/pulls/23"},"html":{"href":"https://github.com/elasticsales/closeio-api/pull/23"},"issue":{"href":"https://api.github.com/repos/elasticsales/closeio-api/issues/23"},"comments":{"href":"https://api.github.com/repos/elasticsales/closeio-api/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/elasticsales/closeio-api/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/elasticsales/closeio-api/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/elasticsales/closeio-api/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/elasticsales/closeio-api/statuses/9e50cbccb1f98d3e30248c4b4f6cbef404a5fc3e"}}}}