{"action":"created","comment":{"url":"https://api.github.com/repos/remind101/logspout-kinesis/pulls/comments/36458281","id":36458281,"diff_hunk":"@@ -0,0 +1,58 @@\n+package kinesis\n+\n+import (\n+\t\"bytes\"\n+\t\"fmt\"\n+\t\"log\"\n+\t\"os\"\n+\t\"text/template\"\n+\n+\t\"github.com/gliderlabs/logspout/router\"\n+)\n+\n+type missingEnvVarError struct {\n+\tenvVar   string\n+\ttmplName string\n+}\n+\n+func (e *missingEnvVarError) Error() string {\n+\treturn fmt.Sprintf(\"The %s template is missing. Please set the %s env variable\\n\", e.tmplName, e.envVar)\n+}\n+\n+func compileTmpl(envVar string, tmplName string) (*template.Template, error) {","path":"utils.go","position":22,"original_position":22,"commit_id":"7389d4b8463496f75371bb93fd130d86c1d21e0e","original_commit_id":"7389d4b8463496f75371bb93fd130d86c1d21e0e","user":{"login":"phobologic","id":517334,"avatar_url":"https://avatars.githubusercontent.com/u/517334?v=3","gravatar_id":"","url":"https://api.github.com/users/phobologic","html_url":"https://github.com/phobologic","followers_url":"https://api.github.com/users/phobologic/followers","following_url":"https://api.github.com/users/phobologic/following{/other_user}","gists_url":"https://api.github.com/users/phobologic/gists{/gist_id}","starred_url":"https://api.github.com/users/phobologic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phobologic/subscriptions","organizations_url":"https://api.github.com/users/phobologic/orgs","repos_url":"https://api.github.com/users/phobologic/repos","events_url":"https://api.github.com/users/phobologic/events{/privacy}","received_events_url":"https://api.github.com/users/phobologic/received_events","type":"User","site_admin":false},"body":"Make any sense for this to have an optional default?","created_at":"2015-08-06T19:59:13Z","updated_at":"2015-08-06T19:59:13Z","html_url":"https://github.com/remind101/logspout-kinesis/pull/5#discussion_r36458281","pull_request_url":"https://api.github.com/repos/remind101/logspout-kinesis/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/remind101/logspout-kinesis/pulls/comments/36458281"},"html":{"href":"https://github.com/remind101/logspout-kinesis/pull/5#discussion_r36458281"},"pull_request":{"href":"https://api.github.com/repos/remind101/logspout-kinesis/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/remind101/logspout-kinesis/pulls/5","id":41826845,"html_url":"https://github.com/remind101/logspout-kinesis/pull/5","diff_url":"https://github.com/remind101/logspout-kinesis/pull/5.diff","patch_url":"https://github.com/remind101/logspout-kinesis/pull/5.patch","issue_url":"https://api.github.com/repos/remind101/logspout-kinesis/issues/5","number":5,"state":"open","locked":false,"title":"Create stream","user":{"login":"benjamin-guillet","id":766416,"avatar_url":"https://avatars.githubusercontent.com/u/766416?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamin-guillet","html_url":"https://github.com/benjamin-guillet","followers_url":"https://api.github.com/users/benjamin-guillet/followers","following_url":"https://api.github.com/users/benjamin-guillet/following{/other_user}","gists_url":"https://api.github.com/users/benjamin-guillet/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamin-guillet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamin-guillet/subscriptions","organizations_url":"https://api.github.com/users/benjamin-guillet/orgs","repos_url":"https://api.github.com/users/benjamin-guillet/repos","events_url":"https://api.github.com/users/benjamin-guillet/events{/privacy}","received_events_url":"https://api.github.com/users/benjamin-guillet/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-06T19:45:30Z","updated_at":"2015-08-06T19:59:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab68e6c180489fa0359f5290d803ee2d6b4b73ea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/remind101/logspout-kinesis/pulls/5/commits","review_comments_url":"https://api.github.com/repos/remind101/logspout-kinesis/pulls/5/comments","review_comment_url":"https://api.github.com/repos/remind101/logspout-kinesis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/remind101/logspout-kinesis/issues/5/comments","statuses_url":"https://api.github.com/repos/remind101/logspout-kinesis/statuses/7389d4b8463496f75371bb93fd130d86c1d21e0e","head":{"label":"remind101:create-stream","ref":"create-stream","sha":"7389d4b8463496f75371bb93fd130d86c1d21e0e","user":{"login":"remind101","id":376343,"avatar_url":"https://avatars.githubusercontent.com/u/376343?v=3","gravatar_id":"","url":"https://api.github.com/users/remind101","html_url":"https://github.com/remind101","followers_url":"https://api.github.com/users/remind101/followers","following_url":"https://api.github.com/users/remind101/following{/other_user}","gists_url":"https://api.github.com/users/remind101/gists{/gist_id}","starred_url":"https://api.github.com/users/remind101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remind101/subscriptions","organizations_url":"https://api.github.com/users/remind101/orgs","repos_url":"https://api.github.com/users/remind101/repos","events_url":"https://api.github.com/users/remind101/events{/privacy}","received_events_url":"https://api.github.com/users/remind101/received_events","type":"Organization","site_admin":false},"repo":{"id":39969401,"name":"logspout-kinesis","full_name":"remind101/logspout-kinesis","owner":{"login":"remind101","id":376343,"avatar_url":"https://avatars.githubusercontent.com/u/376343?v=3","gravatar_id":"","url":"https://api.github.com/users/remind101","html_url":"https://github.com/remind101","followers_url":"https://api.github.com/users/remind101/followers","following_url":"https://api.github.com/users/remind101/following{/other_user}","gists_url":"https://api.github.com/users/remind101/gists{/gist_id}","starred_url":"https://api.github.com/users/remind101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remind101/subscriptions","organizations_url":"https://api.github.com/users/remind101/orgs","repos_url":"https://api.github.com/users/remind101/repos","events_url":"https://api.github.com/users/remind101/events{/privacy}","received_events_url":"https://api.github.com/users/remind101/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/remind101/logspout-kinesis","description":"A Logspout adapter for writing logs to Amazon Kinesis","fork":false,"url":"https://api.github.com/repos/remind101/logspout-kinesis","forks_url":"https://api.github.com/repos/remind101/logspout-kinesis/forks","keys_url":"https://api.github.com/repos/remind101/logspout-kinesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remind101/logspout-kinesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remind101/logspout-kinesis/teams","hooks_url":"https://api.github.com/repos/remind101/logspout-kinesis/hooks","issue_events_url":"https://api.github.com/repos/remind101/logspout-kinesis/issues/events{/number}","events_url":"https://api.github.com/repos/remind101/logspout-kinesis/events","assignees_url":"https://api.github.com/repos/remind101/logspout-kinesis/assignees{/user}","branches_url":"https://api.github.com/repos/remind101/logspout-kinesis/branches{/branch}","tags_url":"https://api.github.com/repos/remind101/logspout-kinesis/tags","blobs_url":"https://api.github.com/repos/remind101/logspout-kinesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remind101/logspout-kinesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remind101/logspout-kinesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/remind101/logspout-kinesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remind101/logspout-kinesis/statuses/{sha}","languages_url":"https://api.github.com/repos/remind101/logspout-kinesis/languages","stargazers_url":"https://api.github.com/repos/remind101/logspout-kinesis/stargazers","contributors_url":"https://api.github.com/repos/remind101/logspout-kinesis/contributors","subscribers_url":"https://api.github.com/repos/remind101/logspout-kinesis/subscribers","subscription_url":"https://api.github.com/repos/remind101/logspout-kinesis/subscription","commits_url":"https://api.github.com/repos/remind101/logspout-kinesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/remind101/logspout-kinesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/remind101/logspout-kinesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/remind101/logspout-kinesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/remind101/logspout-kinesis/contents/{+path}","compare_url":"https://api.github.com/repos/remind101/logspout-kinesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remind101/logspout-kinesis/merges","archive_url":"https://api.github.com/repos/remind101/logspout-kinesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remind101/logspout-kinesis/downloads","issues_url":"https://api.github.com/repos/remind101/logspout-kinesis/issues{/number}","pulls_url":"https://api.github.com/repos/remind101/logspout-kinesis/pulls{/number}","milestones_url":"https://api.github.com/repos/remind101/logspout-kinesis/milestones{/number}","notifications_url":"https://api.github.com/repos/remind101/logspout-kinesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remind101/logspout-kinesis/labels{/name}","releases_url":"https://api.github.com/repos/remind101/logspout-kinesis/releases{/id}","created_at":"2015-07-30T19:49:29Z","updated_at":"2015-08-04T19:31:16Z","pushed_at":"2015-08-06T19:45:30Z","git_url":"git://github.com/remind101/logspout-kinesis.git","ssh_url":"git@github.com:remind101/logspout-kinesis.git","clone_url":"https://github.com/remind101/logspout-kinesis.git","svn_url":"https://github.com/remind101/logspout-kinesis","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"remind101:master","ref":"master","sha":"8ba7b675d9054adf3902052271e15e26e1b48d03","user":{"login":"remind101","id":376343,"avatar_url":"https://avatars.githubusercontent.com/u/376343?v=3","gravatar_id":"","url":"https://api.github.com/users/remind101","html_url":"https://github.com/remind101","followers_url":"https://api.github.com/users/remind101/followers","following_url":"https://api.github.com/users/remind101/following{/other_user}","gists_url":"https://api.github.com/users/remind101/gists{/gist_id}","starred_url":"https://api.github.com/users/remind101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remind101/subscriptions","organizations_url":"https://api.github.com/users/remind101/orgs","repos_url":"https://api.github.com/users/remind101/repos","events_url":"https://api.github.com/users/remind101/events{/privacy}","received_events_url":"https://api.github.com/users/remind101/received_events","type":"Organization","site_admin":false},"repo":{"id":39969401,"name":"logspout-kinesis","full_name":"remind101/logspout-kinesis","owner":{"login":"remind101","id":376343,"avatar_url":"https://avatars.githubusercontent.com/u/376343?v=3","gravatar_id":"","url":"https://api.github.com/users/remind101","html_url":"https://github.com/remind101","followers_url":"https://api.github.com/users/remind101/followers","following_url":"https://api.github.com/users/remind101/following{/other_user}","gists_url":"https://api.github.com/users/remind101/gists{/gist_id}","starred_url":"https://api.github.com/users/remind101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remind101/subscriptions","organizations_url":"https://api.github.com/users/remind101/orgs","repos_url":"https://api.github.com/users/remind101/repos","events_url":"https://api.github.com/users/remind101/events{/privacy}","received_events_url":"https://api.github.com/users/remind101/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/remind101/logspout-kinesis","description":"A Logspout adapter for writing logs to Amazon Kinesis","fork":false,"url":"https://api.github.com/repos/remind101/logspout-kinesis","forks_url":"https://api.github.com/repos/remind101/logspout-kinesis/forks","keys_url":"https://api.github.com/repos/remind101/logspout-kinesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remind101/logspout-kinesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remind101/logspout-kinesis/teams","hooks_url":"https://api.github.com/repos/remind101/logspout-kinesis/hooks","issue_events_url":"https://api.github.com/repos/remind101/logspout-kinesis/issues/events{/number}","events_url":"https://api.github.com/repos/remind101/logspout-kinesis/events","assignees_url":"https://api.github.com/repos/remind101/logspout-kinesis/assignees{/user}","branches_url":"https://api.github.com/repos/remind101/logspout-kinesis/branches{/branch}","tags_url":"https://api.github.com/repos/remind101/logspout-kinesis/tags","blobs_url":"https://api.github.com/repos/remind101/logspout-kinesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remind101/logspout-kinesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remind101/logspout-kinesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/remind101/logspout-kinesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remind101/logspout-kinesis/statuses/{sha}","languages_url":"https://api.github.com/repos/remind101/logspout-kinesis/languages","stargazers_url":"https://api.github.com/repos/remind101/logspout-kinesis/stargazers","contributors_url":"https://api.github.com/repos/remind101/logspout-kinesis/contributors","subscribers_url":"https://api.github.com/repos/remind101/logspout-kinesis/subscribers","subscription_url":"https://api.github.com/repos/remind101/logspout-kinesis/subscription","commits_url":"https://api.github.com/repos/remind101/logspout-kinesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/remind101/logspout-kinesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/remind101/logspout-kinesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/remind101/logspout-kinesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/remind101/logspout-kinesis/contents/{+path}","compare_url":"https://api.github.com/repos/remind101/logspout-kinesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remind101/logspout-kinesis/merges","archive_url":"https://api.github.com/repos/remind101/logspout-kinesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remind101/logspout-kinesis/downloads","issues_url":"https://api.github.com/repos/remind101/logspout-kinesis/issues{/number}","pulls_url":"https://api.github.com/repos/remind101/logspout-kinesis/pulls{/number}","milestones_url":"https://api.github.com/repos/remind101/logspout-kinesis/milestones{/number}","notifications_url":"https://api.github.com/repos/remind101/logspout-kinesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remind101/logspout-kinesis/labels{/name}","releases_url":"https://api.github.com/repos/remind101/logspout-kinesis/releases{/id}","created_at":"2015-07-30T19:49:29Z","updated_at":"2015-08-04T19:31:16Z","pushed_at":"2015-08-06T19:45:30Z","git_url":"git://github.com/remind101/logspout-kinesis.git","ssh_url":"git@github.com:remind101/logspout-kinesis.git","clone_url":"https://github.com/remind101/logspout-kinesis.git","svn_url":"https://github.com/remind101/logspout-kinesis","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/remind101/logspout-kinesis/pulls/5"},"html":{"href":"https://github.com/remind101/logspout-kinesis/pull/5"},"issue":{"href":"https://api.github.com/repos/remind101/logspout-kinesis/issues/5"},"comments":{"href":"https://api.github.com/repos/remind101/logspout-kinesis/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/remind101/logspout-kinesis/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/remind101/logspout-kinesis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/remind101/logspout-kinesis/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/remind101/logspout-kinesis/statuses/7389d4b8463496f75371bb93fd130d86c1d21e0e"}}}}