{"action":"created","comment":{"url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls/comments/24011826","id":24011826,"diff_hunk":"@@ -0,0 +1,82 @@\n+import subprocess32\n+import time\n+from argparse import ArgumentParser\n+import os\n+import get_latest_build\n+\n+\n+def connect_device():","path":"scripts/flash_device.py","position":8,"original_position":8,"commit_id":"dab55b82b2a87b31e61eeec21311d996e019a69c","original_commit_id":"dab55b82b2a87b31e61eeec21311d996e019a69c","user":{"login":"villenavg","id":5544218,"avatar_url":"https://avatars.githubusercontent.com/u/5544218?v=3","gravatar_id":"","url":"https://api.github.com/users/villenavg","html_url":"https://github.com/villenavg","followers_url":"https://api.github.com/users/villenavg/followers","following_url":"https://api.github.com/users/villenavg/following{/other_user}","gists_url":"https://api.github.com/users/villenavg/gists{/gist_id}","starred_url":"https://api.github.com/users/villenavg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/villenavg/subscriptions","organizations_url":"https://api.github.com/users/villenavg/orgs","repos_url":"https://api.github.com/users/villenavg/repos","events_url":"https://api.github.com/users/villenavg/events{/privacy}","received_events_url":"https://api.github.com/users/villenavg/received_events","type":"User","site_admin":false},"body":"We have this method in utilities. Why don't use it, instead. No cyclic dependencies afaik :D","created_at":"2015-02-03T15:39:20Z","updated_at":"2015-02-03T15:39:20Z","html_url":"https://github.com/owdqa/OWD_TEST_TOOLKIT/pull/598#discussion_r24011826","pull_request_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls/598","_links":{"self":{"href":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls/comments/24011826"},"html":{"href":"https://github.com/owdqa/OWD_TEST_TOOLKIT/pull/598#discussion_r24011826"},"pull_request":{"href":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls/598"}}},"pull_request":{"url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls/598","id":28561570,"html_url":"https://github.com/owdqa/OWD_TEST_TOOLKIT/pull/598","diff_url":"https://github.com/owdqa/OWD_TEST_TOOLKIT/pull/598.diff","patch_url":"https://github.com/owdqa/OWD_TEST_TOOLKIT/pull/598.patch","issue_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/issues/598","number":598,"state":"open","locked":false,"title":"Script to flash only if required","user":{"login":"FranciscoCano","id":2391572,"avatar_url":"https://avatars.githubusercontent.com/u/2391572?v=3","gravatar_id":"","url":"https://api.github.com/users/FranciscoCano","html_url":"https://github.com/FranciscoCano","followers_url":"https://api.github.com/users/FranciscoCano/followers","following_url":"https://api.github.com/users/FranciscoCano/following{/other_user}","gists_url":"https://api.github.com/users/FranciscoCano/gists{/gist_id}","starred_url":"https://api.github.com/users/FranciscoCano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FranciscoCano/subscriptions","organizations_url":"https://api.github.com/users/FranciscoCano/orgs","repos_url":"https://api.github.com/users/FranciscoCano/repos","events_url":"https://api.github.com/users/FranciscoCano/events{/privacy}","received_events_url":"https://api.github.com/users/FranciscoCano/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-03T15:36:54Z","updated_at":"2015-02-03T15:39:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a62d3df8dccf932fa442f2c862513d386b2fad05","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls/598/commits","review_comments_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls/598/comments","review_comment_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls/comments/{number}","comments_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/issues/598/comments","statuses_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/statuses/dab55b82b2a87b31e61eeec21311d996e019a69c","head":{"label":"owdqa:feature/improve_flash","ref":"feature/improve_flash","sha":"dab55b82b2a87b31e61eeec21311d996e019a69c","user":{"login":"owdqa","id":4610747,"avatar_url":"https://avatars.githubusercontent.com/u/4610747?v=3","gravatar_id":"","url":"https://api.github.com/users/owdqa","html_url":"https://github.com/owdqa","followers_url":"https://api.github.com/users/owdqa/followers","following_url":"https://api.github.com/users/owdqa/following{/other_user}","gists_url":"https://api.github.com/users/owdqa/gists{/gist_id}","starred_url":"https://api.github.com/users/owdqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owdqa/subscriptions","organizations_url":"https://api.github.com/users/owdqa/orgs","repos_url":"https://api.github.com/users/owdqa/repos","events_url":"https://api.github.com/users/owdqa/events{/privacy}","received_events_url":"https://api.github.com/users/owdqa/received_events","type":"User","site_admin":false},"repo":{"id":10477695,"name":"OWD_TEST_TOOLKIT","full_name":"owdqa/OWD_TEST_TOOLKIT","owner":{"login":"owdqa","id":4610747,"avatar_url":"https://avatars.githubusercontent.com/u/4610747?v=3","gravatar_id":"","url":"https://api.github.com/users/owdqa","html_url":"https://github.com/owdqa","followers_url":"https://api.github.com/users/owdqa/followers","following_url":"https://api.github.com/users/owdqa/following{/other_user}","gists_url":"https://api.github.com/users/owdqa/gists{/gist_id}","starred_url":"https://api.github.com/users/owdqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owdqa/subscriptions","organizations_url":"https://api.github.com/users/owdqa/orgs","repos_url":"https://api.github.com/users/owdqa/repos","events_url":"https://api.github.com/users/owdqa/events{/privacy}","received_events_url":"https://api.github.com/users/owdqa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/owdqa/OWD_TEST_TOOLKIT","description":"Toolkit (framework?) to help with rapid and stable test development for OWD project.","fork":false,"url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT","forks_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/forks","keys_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/teams","hooks_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/hooks","issue_events_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/issues/events{/number}","events_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/events","assignees_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/assignees{/user}","branches_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/branches{/branch}","tags_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/tags","blobs_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/git/refs{/sha}","trees_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/statuses/{sha}","languages_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/languages","stargazers_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/stargazers","contributors_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/contributors","subscribers_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/subscribers","subscription_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/subscription","commits_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/commits{/sha}","git_commits_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/git/commits{/sha}","comments_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/comments{/number}","issue_comment_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/issues/comments/{number}","contents_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/contents/{+path}","compare_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/merges","archive_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/downloads","issues_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/issues{/number}","pulls_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls{/number}","milestones_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/milestones{/number}","notifications_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/labels{/name}","releases_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/releases{/id}","created_at":"2013-06-04T12:07:16Z","updated_at":"2014-12-11T09:34:32Z","pushed_at":"2015-02-03T15:36:36Z","git_url":"git://github.com/owdqa/OWD_TEST_TOOLKIT.git","ssh_url":"git@github.com:owdqa/OWD_TEST_TOOLKIT.git","clone_url":"https://github.com/owdqa/OWD_TEST_TOOLKIT.git","svn_url":"https://github.com/owdqa/OWD_TEST_TOOLKIT","homepage":null,"size":8223,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":1,"default_branch":"integration-v2.0"}},"base":{"label":"owdqa:integration-v2.1","ref":"integration-v2.1","sha":"f87cdd275053884f7d02ebc1c01c99552076c052","user":{"login":"owdqa","id":4610747,"avatar_url":"https://avatars.githubusercontent.com/u/4610747?v=3","gravatar_id":"","url":"https://api.github.com/users/owdqa","html_url":"https://github.com/owdqa","followers_url":"https://api.github.com/users/owdqa/followers","following_url":"https://api.github.com/users/owdqa/following{/other_user}","gists_url":"https://api.github.com/users/owdqa/gists{/gist_id}","starred_url":"https://api.github.com/users/owdqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owdqa/subscriptions","organizations_url":"https://api.github.com/users/owdqa/orgs","repos_url":"https://api.github.com/users/owdqa/repos","events_url":"https://api.github.com/users/owdqa/events{/privacy}","received_events_url":"https://api.github.com/users/owdqa/received_events","type":"User","site_admin":false},"repo":{"id":10477695,"name":"OWD_TEST_TOOLKIT","full_name":"owdqa/OWD_TEST_TOOLKIT","owner":{"login":"owdqa","id":4610747,"avatar_url":"https://avatars.githubusercontent.com/u/4610747?v=3","gravatar_id":"","url":"https://api.github.com/users/owdqa","html_url":"https://github.com/owdqa","followers_url":"https://api.github.com/users/owdqa/followers","following_url":"https://api.github.com/users/owdqa/following{/other_user}","gists_url":"https://api.github.com/users/owdqa/gists{/gist_id}","starred_url":"https://api.github.com/users/owdqa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owdqa/subscriptions","organizations_url":"https://api.github.com/users/owdqa/orgs","repos_url":"https://api.github.com/users/owdqa/repos","events_url":"https://api.github.com/users/owdqa/events{/privacy}","received_events_url":"https://api.github.com/users/owdqa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/owdqa/OWD_TEST_TOOLKIT","description":"Toolkit (framework?) to help with rapid and stable test development for OWD project.","fork":false,"url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT","forks_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/forks","keys_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/teams","hooks_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/hooks","issue_events_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/issues/events{/number}","events_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/events","assignees_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/assignees{/user}","branches_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/branches{/branch}","tags_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/tags","blobs_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/git/refs{/sha}","trees_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/statuses/{sha}","languages_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/languages","stargazers_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/stargazers","contributors_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/contributors","subscribers_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/subscribers","subscription_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/subscription","commits_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/commits{/sha}","git_commits_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/git/commits{/sha}","comments_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/comments{/number}","issue_comment_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/issues/comments/{number}","contents_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/contents/{+path}","compare_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/merges","archive_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/downloads","issues_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/issues{/number}","pulls_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls{/number}","milestones_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/milestones{/number}","notifications_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/labels{/name}","releases_url":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/releases{/id}","created_at":"2013-06-04T12:07:16Z","updated_at":"2014-12-11T09:34:32Z","pushed_at":"2015-02-03T15:36:36Z","git_url":"git://github.com/owdqa/OWD_TEST_TOOLKIT.git","ssh_url":"git@github.com:owdqa/OWD_TEST_TOOLKIT.git","clone_url":"https://github.com/owdqa/OWD_TEST_TOOLKIT.git","svn_url":"https://github.com/owdqa/OWD_TEST_TOOLKIT","homepage":null,"size":8223,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":1,"default_branch":"integration-v2.0"}},"_links":{"self":{"href":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls/598"},"html":{"href":"https://github.com/owdqa/OWD_TEST_TOOLKIT/pull/598"},"issue":{"href":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/issues/598"},"comments":{"href":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/issues/598/comments"},"review_comments":{"href":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls/598/comments"},"review_comment":{"href":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/pulls/598/commits"},"statuses":{"href":"https://api.github.com/repos/owdqa/OWD_TEST_TOOLKIT/statuses/dab55b82b2a87b31e61eeec21311d996e019a69c"}}}}