{"action":"created","comment":{"url":"https://api.github.com/repos/prometheus/prometheus/pulls/comments/39035410","id":39035410,"diff_hunk":"@@ -62,6 +62,15 @@ func CheckConfigCmd(t cli.Term, args ...string) int {\n \treturn 0\n }\n \n+func checkFile(fn string) error {","path":"cmd/promtool/main.go","position":null,"original_position":4,"commit_id":"ec04ba38a2672786f69455b735fd43e6d06afa90","original_commit_id":"f1cd6c8f2667c0e60cb3ddf2bfc8933f4e409a45","user":{"login":"jimmidyson","id":464659,"avatar_url":"https://avatars.githubusercontent.com/u/464659?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmidyson","html_url":"https://github.com/jimmidyson","followers_url":"https://api.github.com/users/jimmidyson/followers","following_url":"https://api.github.com/users/jimmidyson/following{/other_user}","gists_url":"https://api.github.com/users/jimmidyson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmidyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmidyson/subscriptions","organizations_url":"https://api.github.com/users/jimmidyson/orgs","repos_url":"https://api.github.com/users/jimmidyson/repos","events_url":"https://api.github.com/users/jimmidyson/events{/privacy}","received_events_url":"https://api.github.com/users/jimmidyson/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-09-09T12:25:02Z","updated_at":"2015-09-09T12:25:02Z","html_url":"https://github.com/prometheus/prometheus/pull/1063#discussion_r39035410","pull_request_url":"https://api.github.com/repos/prometheus/prometheus/pulls/1063","_links":{"self":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/comments/39035410"},"html":{"href":"https://github.com/prometheus/prometheus/pull/1063#discussion_r39035410"},"pull_request":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/1063"}}},"pull_request":{"url":"https://api.github.com/repos/prometheus/prometheus/pulls/1063","id":44541771,"html_url":"https://github.com/prometheus/prometheus/pull/1063","diff_url":"https://github.com/prometheus/prometheus/pull/1063.diff","patch_url":"https://github.com/prometheus/prometheus/pull/1063.patch","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/1063","number":1063,"state":"open","locked":false,"title":"Kubernetes SD config check","user":{"login":"jimmidyson","id":464659,"avatar_url":"https://avatars.githubusercontent.com/u/464659?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmidyson","html_url":"https://github.com/jimmidyson","followers_url":"https://api.github.com/users/jimmidyson/followers","following_url":"https://api.github.com/users/jimmidyson/following{/other_user}","gists_url":"https://api.github.com/users/jimmidyson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmidyson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmidyson/subscriptions","organizations_url":"https://api.github.com/users/jimmidyson/orgs","repos_url":"https://api.github.com/users/jimmidyson/repos","events_url":"https://api.github.com/users/jimmidyson/events{/privacy}","received_events_url":"https://api.github.com/users/jimmidyson/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-09T12:09:38Z","updated_at":"2015-09-09T12:25:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3971ac3e920bb9e7a985fe8e8eabb6c7c6bab9f3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/prometheus/prometheus/pulls/1063/commits","review_comments_url":"https://api.github.com/repos/prometheus/prometheus/pulls/1063/comments","review_comment_url":"https://api.github.com/repos/prometheus/prometheus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/1063/comments","statuses_url":"https://api.github.com/repos/prometheus/prometheus/statuses/ec04ba38a2672786f69455b735fd43e6d06afa90","head":{"label":"fabric8io:kubernetes-discovery","ref":"kubernetes-discovery","sha":"ec04ba38a2672786f69455b735fd43e6d06afa90","user":{"login":"fabric8io","id":6074349,"avatar_url":"https://avatars.githubusercontent.com/u/6074349?v=3","gravatar_id":"","url":"https://api.github.com/users/fabric8io","html_url":"https://github.com/fabric8io","followers_url":"https://api.github.com/users/fabric8io/followers","following_url":"https://api.github.com/users/fabric8io/following{/other_user}","gists_url":"https://api.github.com/users/fabric8io/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric8io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric8io/subscriptions","organizations_url":"https://api.github.com/users/fabric8io/orgs","repos_url":"https://api.github.com/users/fabric8io/repos","events_url":"https://api.github.com/users/fabric8io/events{/privacy}","received_events_url":"https://api.github.com/users/fabric8io/received_events","type":"Organization","site_admin":false},"repo":{"id":39276484,"name":"prometheus","full_name":"fabric8io/prometheus","owner":{"login":"fabric8io","id":6074349,"avatar_url":"https://avatars.githubusercontent.com/u/6074349?v=3","gravatar_id":"","url":"https://api.github.com/users/fabric8io","html_url":"https://github.com/fabric8io","followers_url":"https://api.github.com/users/fabric8io/followers","following_url":"https://api.github.com/users/fabric8io/following{/other_user}","gists_url":"https://api.github.com/users/fabric8io/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric8io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric8io/subscriptions","organizations_url":"https://api.github.com/users/fabric8io/orgs","repos_url":"https://api.github.com/users/fabric8io/repos","events_url":"https://api.github.com/users/fabric8io/events{/privacy}","received_events_url":"https://api.github.com/users/fabric8io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fabric8io/prometheus","description":"The Prometheus monitoring system and time series database.","fork":true,"url":"https://api.github.com/repos/fabric8io/prometheus","forks_url":"https://api.github.com/repos/fabric8io/prometheus/forks","keys_url":"https://api.github.com/repos/fabric8io/prometheus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabric8io/prometheus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabric8io/prometheus/teams","hooks_url":"https://api.github.com/repos/fabric8io/prometheus/hooks","issue_events_url":"https://api.github.com/repos/fabric8io/prometheus/issues/events{/number}","events_url":"https://api.github.com/repos/fabric8io/prometheus/events","assignees_url":"https://api.github.com/repos/fabric8io/prometheus/assignees{/user}","branches_url":"https://api.github.com/repos/fabric8io/prometheus/branches{/branch}","tags_url":"https://api.github.com/repos/fabric8io/prometheus/tags","blobs_url":"https://api.github.com/repos/fabric8io/prometheus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabric8io/prometheus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabric8io/prometheus/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabric8io/prometheus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabric8io/prometheus/statuses/{sha}","languages_url":"https://api.github.com/repos/fabric8io/prometheus/languages","stargazers_url":"https://api.github.com/repos/fabric8io/prometheus/stargazers","contributors_url":"https://api.github.com/repos/fabric8io/prometheus/contributors","subscribers_url":"https://api.github.com/repos/fabric8io/prometheus/subscribers","subscription_url":"https://api.github.com/repos/fabric8io/prometheus/subscription","commits_url":"https://api.github.com/repos/fabric8io/prometheus/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabric8io/prometheus/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabric8io/prometheus/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabric8io/prometheus/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabric8io/prometheus/contents/{+path}","compare_url":"https://api.github.com/repos/fabric8io/prometheus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabric8io/prometheus/merges","archive_url":"https://api.github.com/repos/fabric8io/prometheus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabric8io/prometheus/downloads","issues_url":"https://api.github.com/repos/fabric8io/prometheus/issues{/number}","pulls_url":"https://api.github.com/repos/fabric8io/prometheus/pulls{/number}","milestones_url":"https://api.github.com/repos/fabric8io/prometheus/milestones{/number}","notifications_url":"https://api.github.com/repos/fabric8io/prometheus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabric8io/prometheus/labels{/name}","releases_url":"https://api.github.com/repos/fabric8io/prometheus/releases{/id}","created_at":"2015-07-17T21:40:55Z","updated_at":"2015-08-05T10:45:38Z","pushed_at":"2015-09-09T12:24:48Z","git_url":"git://github.com/fabric8io/prometheus.git","ssh_url":"git@github.com:fabric8io/prometheus.git","clone_url":"https://github.com/fabric8io/prometheus.git","svn_url":"https://github.com/fabric8io/prometheus","homepage":"http://prometheus.io/","size":8900,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"prometheus:master","ref":"master","sha":"58c32f84ce771139cb7d39433af8f69167ab6a39","user":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"repo":{"id":6838921,"name":"prometheus","full_name":"prometheus/prometheus","owner":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prometheus/prometheus","description":"The Prometheus monitoring system and time series database.","fork":false,"url":"https://api.github.com/repos/prometheus/prometheus","forks_url":"https://api.github.com/repos/prometheus/prometheus/forks","keys_url":"https://api.github.com/repos/prometheus/prometheus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prometheus/prometheus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prometheus/prometheus/teams","hooks_url":"https://api.github.com/repos/prometheus/prometheus/hooks","issue_events_url":"https://api.github.com/repos/prometheus/prometheus/issues/events{/number}","events_url":"https://api.github.com/repos/prometheus/prometheus/events","assignees_url":"https://api.github.com/repos/prometheus/prometheus/assignees{/user}","branches_url":"https://api.github.com/repos/prometheus/prometheus/branches{/branch}","tags_url":"https://api.github.com/repos/prometheus/prometheus/tags","blobs_url":"https://api.github.com/repos/prometheus/prometheus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prometheus/prometheus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prometheus/prometheus/git/refs{/sha}","trees_url":"https://api.github.com/repos/prometheus/prometheus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prometheus/prometheus/statuses/{sha}","languages_url":"https://api.github.com/repos/prometheus/prometheus/languages","stargazers_url":"https://api.github.com/repos/prometheus/prometheus/stargazers","contributors_url":"https://api.github.com/repos/prometheus/prometheus/contributors","subscribers_url":"https://api.github.com/repos/prometheus/prometheus/subscribers","subscription_url":"https://api.github.com/repos/prometheus/prometheus/subscription","commits_url":"https://api.github.com/repos/prometheus/prometheus/commits{/sha}","git_commits_url":"https://api.github.com/repos/prometheus/prometheus/git/commits{/sha}","comments_url":"https://api.github.com/repos/prometheus/prometheus/comments{/number}","issue_comment_url":"https://api.github.com/repos/prometheus/prometheus/issues/comments{/number}","contents_url":"https://api.github.com/repos/prometheus/prometheus/contents/{+path}","compare_url":"https://api.github.com/repos/prometheus/prometheus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prometheus/prometheus/merges","archive_url":"https://api.github.com/repos/prometheus/prometheus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prometheus/prometheus/downloads","issues_url":"https://api.github.com/repos/prometheus/prometheus/issues{/number}","pulls_url":"https://api.github.com/repos/prometheus/prometheus/pulls{/number}","milestones_url":"https://api.github.com/repos/prometheus/prometheus/milestones{/number}","notifications_url":"https://api.github.com/repos/prometheus/prometheus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prometheus/prometheus/labels{/name}","releases_url":"https://api.github.com/repos/prometheus/prometheus/releases{/id}","created_at":"2012-11-24T11:14:12Z","updated_at":"2015-09-09T12:10:20Z","pushed_at":"2015-09-09T12:24:48Z","git_url":"git://github.com/prometheus/prometheus.git","ssh_url":"git@github.com:prometheus/prometheus.git","clone_url":"https://github.com/prometheus/prometheus.git","svn_url":"https://github.com/prometheus/prometheus","homepage":"http://prometheus.io/","size":18023,"stargazers_count":2934,"watchers_count":2934,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":186,"mirror_url":null,"open_issues_count":99,"forks":186,"open_issues":99,"watchers":2934,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/1063"},"html":{"href":"https://github.com/prometheus/prometheus/pull/1063"},"issue":{"href":"https://api.github.com/repos/prometheus/prometheus/issues/1063"},"comments":{"href":"https://api.github.com/repos/prometheus/prometheus/issues/1063/comments"},"review_comments":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/1063/comments"},"review_comment":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/1063/commits"},"statuses":{"href":"https://api.github.com/repos/prometheus/prometheus/statuses/ec04ba38a2672786f69455b735fd43e6d06afa90"}}}}