{"action":"created","comment":{"url":"https://api.github.com/repos/kgaughan/logtools/pulls/comments/76765949","id":76765949,"diff_hunk":"@@ -0,0 +1,20 @@\n+#!/usr/bin/env python\n+\"\"\"\n+\"\"\"\n+\n+import socket\n+import re\n+\n+hostname = socket.getfqdn()\n+\n+def main():","path":"findhost.py","position":10,"original_position":10,"commit_id":"c3f1a65dc9f05de9ad5674f3f7c9e987140c5f21","original_commit_id":"c3f1a65dc9f05de9ad5674f3f7c9e987140c5f21","user":{"login":"kgaughan","id":11657,"avatar_url":"https://avatars.githubusercontent.com/u/11657?v=3","gravatar_id":"","url":"https://api.github.com/users/kgaughan","html_url":"https://github.com/kgaughan","followers_url":"https://api.github.com/users/kgaughan/followers","following_url":"https://api.github.com/users/kgaughan/following{/other_user}","gists_url":"https://api.github.com/users/kgaughan/gists{/gist_id}","starred_url":"https://api.github.com/users/kgaughan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgaughan/subscriptions","organizations_url":"https://api.github.com/users/kgaughan/orgs","repos_url":"https://api.github.com/users/kgaughan/repos","events_url":"https://api.github.com/users/kgaughan/events{/privacy}","received_events_url":"https://api.github.com/users/kgaughan/received_events","type":"User","site_admin":false},"body":"This would be better:\r\n\r\n    def get_host_type(hostname):\r\n\r\n`main` implies a function that's intended to be run on the command line.","created_at":"2016-08-30T10:02:01Z","updated_at":"2016-08-30T10:02:01Z","html_url":"https://github.com/kgaughan/logtools/pull/2#discussion_r76765949","pull_request_url":"https://api.github.com/repos/kgaughan/logtools/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/kgaughan/logtools/pulls/comments/76765949"},"html":{"href":"https://github.com/kgaughan/logtools/pull/2#discussion_r76765949"},"pull_request":{"href":"https://api.github.com/repos/kgaughan/logtools/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/kgaughan/logtools/pulls/2","id":83230794,"html_url":"https://github.com/kgaughan/logtools/pull/2","diff_url":"https://github.com/kgaughan/logtools/pull/2.diff","patch_url":"https://github.com/kgaughan/logtools/pull/2.patch","issue_url":"https://api.github.com/repos/kgaughan/logtools/issues/2","number":2,"state":"open","locked":false,"title":"nfi what I'm at","user":{"login":"linedash","id":8342425,"avatar_url":"https://avatars.githubusercontent.com/u/8342425?v=3","gravatar_id":"","url":"https://api.github.com/users/linedash","html_url":"https://github.com/linedash","followers_url":"https://api.github.com/users/linedash/followers","following_url":"https://api.github.com/users/linedash/following{/other_user}","gists_url":"https://api.github.com/users/linedash/gists{/gist_id}","starred_url":"https://api.github.com/users/linedash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linedash/subscriptions","organizations_url":"https://api.github.com/users/linedash/orgs","repos_url":"https://api.github.com/users/linedash/repos","events_url":"https://api.github.com/users/linedash/events{/privacy}","received_events_url":"https://api.github.com/users/linedash/received_events","type":"User","site_admin":false},"body":"trying to get the 'current version' into the main fork.  ","created_at":"2016-08-30T08:46:30Z","updated_at":"2016-08-30T10:02:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6bac21c8235b0e717c1e4e28102ccbc47b754727","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kgaughan/logtools/pulls/2/commits","review_comments_url":"https://api.github.com/repos/kgaughan/logtools/pulls/2/comments","review_comment_url":"https://api.github.com/repos/kgaughan/logtools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kgaughan/logtools/issues/2/comments","statuses_url":"https://api.github.com/repos/kgaughan/logtools/statuses/c3f1a65dc9f05de9ad5674f3f7c9e987140c5f21","head":{"label":"linedash:master","ref":"master","sha":"c3f1a65dc9f05de9ad5674f3f7c9e987140c5f21","user":{"login":"linedash","id":8342425,"avatar_url":"https://avatars.githubusercontent.com/u/8342425?v=3","gravatar_id":"","url":"https://api.github.com/users/linedash","html_url":"https://github.com/linedash","followers_url":"https://api.github.com/users/linedash/followers","following_url":"https://api.github.com/users/linedash/following{/other_user}","gists_url":"https://api.github.com/users/linedash/gists{/gist_id}","starred_url":"https://api.github.com/users/linedash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linedash/subscriptions","organizations_url":"https://api.github.com/users/linedash/orgs","repos_url":"https://api.github.com/users/linedash/repos","events_url":"https://api.github.com/users/linedash/events{/privacy}","received_events_url":"https://api.github.com/users/linedash/received_events","type":"User","site_admin":false},"repo":{"id":66844274,"name":"logtools","full_name":"linedash/logtools","owner":{"login":"linedash","id":8342425,"avatar_url":"https://avatars.githubusercontent.com/u/8342425?v=3","gravatar_id":"","url":"https://api.github.com/users/linedash","html_url":"https://github.com/linedash","followers_url":"https://api.github.com/users/linedash/followers","following_url":"https://api.github.com/users/linedash/following{/other_user}","gists_url":"https://api.github.com/users/linedash/gists{/gist_id}","starred_url":"https://api.github.com/users/linedash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linedash/subscriptions","organizations_url":"https://api.github.com/users/linedash/orgs","repos_url":"https://api.github.com/users/linedash/repos","events_url":"https://api.github.com/users/linedash/events{/privacy}","received_events_url":"https://api.github.com/users/linedash/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/linedash/logtools","description":null,"fork":true,"url":"https://api.github.com/repos/linedash/logtools","forks_url":"https://api.github.com/repos/linedash/logtools/forks","keys_url":"https://api.github.com/repos/linedash/logtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linedash/logtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linedash/logtools/teams","hooks_url":"https://api.github.com/repos/linedash/logtools/hooks","issue_events_url":"https://api.github.com/repos/linedash/logtools/issues/events{/number}","events_url":"https://api.github.com/repos/linedash/logtools/events","assignees_url":"https://api.github.com/repos/linedash/logtools/assignees{/user}","branches_url":"https://api.github.com/repos/linedash/logtools/branches{/branch}","tags_url":"https://api.github.com/repos/linedash/logtools/tags","blobs_url":"https://api.github.com/repos/linedash/logtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linedash/logtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linedash/logtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/linedash/logtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linedash/logtools/statuses/{sha}","languages_url":"https://api.github.com/repos/linedash/logtools/languages","stargazers_url":"https://api.github.com/repos/linedash/logtools/stargazers","contributors_url":"https://api.github.com/repos/linedash/logtools/contributors","subscribers_url":"https://api.github.com/repos/linedash/logtools/subscribers","subscription_url":"https://api.github.com/repos/linedash/logtools/subscription","commits_url":"https://api.github.com/repos/linedash/logtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/linedash/logtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/linedash/logtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/linedash/logtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/linedash/logtools/contents/{+path}","compare_url":"https://api.github.com/repos/linedash/logtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linedash/logtools/merges","archive_url":"https://api.github.com/repos/linedash/logtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linedash/logtools/downloads","issues_url":"https://api.github.com/repos/linedash/logtools/issues{/number}","pulls_url":"https://api.github.com/repos/linedash/logtools/pulls{/number}","milestones_url":"https://api.github.com/repos/linedash/logtools/milestones{/number}","notifications_url":"https://api.github.com/repos/linedash/logtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linedash/logtools/labels{/name}","releases_url":"https://api.github.com/repos/linedash/logtools/releases{/id}","deployments_url":"https://api.github.com/repos/linedash/logtools/deployments","created_at":"2016-08-29T13:05:00Z","updated_at":"2016-08-29T13:05:01Z","pushed_at":"2016-08-30T09:46:11Z","git_url":"git://github.com/linedash/logtools.git","ssh_url":"git@github.com:linedash/logtools.git","clone_url":"https://github.com/linedash/logtools.git","svn_url":"https://github.com/linedash/logtools","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kgaughan:master","ref":"master","sha":"5179b7dcc64943b00294608202fecd422422ebc9","user":{"login":"kgaughan","id":11657,"avatar_url":"https://avatars.githubusercontent.com/u/11657?v=3","gravatar_id":"","url":"https://api.github.com/users/kgaughan","html_url":"https://github.com/kgaughan","followers_url":"https://api.github.com/users/kgaughan/followers","following_url":"https://api.github.com/users/kgaughan/following{/other_user}","gists_url":"https://api.github.com/users/kgaughan/gists{/gist_id}","starred_url":"https://api.github.com/users/kgaughan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgaughan/subscriptions","organizations_url":"https://api.github.com/users/kgaughan/orgs","repos_url":"https://api.github.com/users/kgaughan/repos","events_url":"https://api.github.com/users/kgaughan/events{/privacy}","received_events_url":"https://api.github.com/users/kgaughan/received_events","type":"User","site_admin":false},"repo":{"id":66839226,"name":"logtools","full_name":"kgaughan/logtools","owner":{"login":"kgaughan","id":11657,"avatar_url":"https://avatars.githubusercontent.com/u/11657?v=3","gravatar_id":"","url":"https://api.github.com/users/kgaughan","html_url":"https://github.com/kgaughan","followers_url":"https://api.github.com/users/kgaughan/followers","following_url":"https://api.github.com/users/kgaughan/following{/other_user}","gists_url":"https://api.github.com/users/kgaughan/gists{/gist_id}","starred_url":"https://api.github.com/users/kgaughan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgaughan/subscriptions","organizations_url":"https://api.github.com/users/kgaughan/orgs","repos_url":"https://api.github.com/users/kgaughan/repos","events_url":"https://api.github.com/users/kgaughan/events{/privacy}","received_events_url":"https://api.github.com/users/kgaughan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kgaughan/logtools","description":null,"fork":false,"url":"https://api.github.com/repos/kgaughan/logtools","forks_url":"https://api.github.com/repos/kgaughan/logtools/forks","keys_url":"https://api.github.com/repos/kgaughan/logtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kgaughan/logtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kgaughan/logtools/teams","hooks_url":"https://api.github.com/repos/kgaughan/logtools/hooks","issue_events_url":"https://api.github.com/repos/kgaughan/logtools/issues/events{/number}","events_url":"https://api.github.com/repos/kgaughan/logtools/events","assignees_url":"https://api.github.com/repos/kgaughan/logtools/assignees{/user}","branches_url":"https://api.github.com/repos/kgaughan/logtools/branches{/branch}","tags_url":"https://api.github.com/repos/kgaughan/logtools/tags","blobs_url":"https://api.github.com/repos/kgaughan/logtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kgaughan/logtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kgaughan/logtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/kgaughan/logtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kgaughan/logtools/statuses/{sha}","languages_url":"https://api.github.com/repos/kgaughan/logtools/languages","stargazers_url":"https://api.github.com/repos/kgaughan/logtools/stargazers","contributors_url":"https://api.github.com/repos/kgaughan/logtools/contributors","subscribers_url":"https://api.github.com/repos/kgaughan/logtools/subscribers","subscription_url":"https://api.github.com/repos/kgaughan/logtools/subscription","commits_url":"https://api.github.com/repos/kgaughan/logtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/kgaughan/logtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/kgaughan/logtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/kgaughan/logtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/kgaughan/logtools/contents/{+path}","compare_url":"https://api.github.com/repos/kgaughan/logtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kgaughan/logtools/merges","archive_url":"https://api.github.com/repos/kgaughan/logtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kgaughan/logtools/downloads","issues_url":"https://api.github.com/repos/kgaughan/logtools/issues{/number}","pulls_url":"https://api.github.com/repos/kgaughan/logtools/pulls{/number}","milestones_url":"https://api.github.com/repos/kgaughan/logtools/milestones{/number}","notifications_url":"https://api.github.com/repos/kgaughan/logtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kgaughan/logtools/labels{/name}","releases_url":"https://api.github.com/repos/kgaughan/logtools/releases{/id}","deployments_url":"https://api.github.com/repos/kgaughan/logtools/deployments","created_at":"2016-08-29T11:49:37Z","updated_at":"2016-08-29T11:50:12Z","pushed_at":"2016-08-30T09:46:11Z","git_url":"git://github.com/kgaughan/logtools.git","ssh_url":"git@github.com:kgaughan/logtools.git","clone_url":"https://github.com/kgaughan/logtools.git","svn_url":"https://github.com/kgaughan/logtools","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kgaughan/logtools/pulls/2"},"html":{"href":"https://github.com/kgaughan/logtools/pull/2"},"issue":{"href":"https://api.github.com/repos/kgaughan/logtools/issues/2"},"comments":{"href":"https://api.github.com/repos/kgaughan/logtools/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/kgaughan/logtools/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/kgaughan/logtools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kgaughan/logtools/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/kgaughan/logtools/statuses/c3f1a65dc9f05de9ad5674f3f7c9e987140c5f21"}}}}
{"actor":{"display_login":"kgaughan"}}