{"action":"created","comment":{"url":"https://api.github.com/repos/knative/test-infra/pulls/comments/258281125","pull_request_review_id":205514665,"id":258281125,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1ODI4MTEyNQ==","diff_hunk":"@@ -0,0 +1,141 @@\n+/*\n+Copyright 2019 The Knative Authors\n+\n+Licensed under the Apache License, Version 2.0 (the \"License\");\n+you may not use this file except in compliance with the License.\n+You may obtain a copy of the License at\n+\n+    http://www.apache.org/licenses/LICENSE-2.0\n+\n+Unless required by applicable law or agreed to in writing, software\n+distributed under the License is distributed on an \"AS IS\" BASIS,\n+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+See the License for the specific language governing permissions and\n+limitations under the License.\n+*/\n+\n+package tools","path":"tools/webhook-apicoverage/tools/tools.go","position":17,"original_position":17,"commit_id":"7a3c48f7f98a497ffb622430d687c85f4fe90c1f","original_commit_id":"7a3c48f7f98a497ffb622430d687c85f4fe90c1f","user":{"login":"jessiezcc","id":37942702,"node_id":"MDQ6VXNlcjM3OTQyNzAy","avatar_url":"https://avatars2.githubusercontent.com/u/37942702?v=4","gravatar_id":"","url":"https://api.github.com/users/jessiezcc","html_url":"https://github.com/jessiezcc","followers_url":"https://api.github.com/users/jessiezcc/followers","following_url":"https://api.github.com/users/jessiezcc/following{/other_user}","gists_url":"https://api.github.com/users/jessiezcc/gists{/gist_id}","starred_url":"https://api.github.com/users/jessiezcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessiezcc/subscriptions","organizations_url":"https://api.github.com/users/jessiezcc/orgs","repos_url":"https://api.github.com/users/jessiezcc/repos","events_url":"https://api.github.com/users/jessiezcc/events{/privacy}","received_events_url":"https://api.github.com/users/jessiezcc/received_events","type":"User","site_admin":false},"body":"add more comments in the file to explain how it will be consumed will be helpful.","created_at":"2019-02-19T23:53:18Z","updated_at":"2019-02-19T23:53:18Z","html_url":"https://github.com/knative/test-infra/pull/493#discussion_r258281125","pull_request_url":"https://api.github.com/repos/knative/test-infra/pulls/493","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/knative/test-infra/pulls/comments/258281125"},"html":{"href":"https://github.com/knative/test-infra/pull/493#discussion_r258281125"},"pull_request":{"href":"https://api.github.com/repos/knative/test-infra/pulls/493"}}},"pull_request":{"url":"https://api.github.com/repos/knative/test-infra/pulls/493","id":254446797,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU0NDQ2Nzk3","html_url":"https://github.com/knative/test-infra/pull/493","diff_url":"https://github.com/knative/test-infra/pull/493.diff","patch_url":"https://github.com/knative/test-infra/pull/493.patch","issue_url":"https://api.github.com/repos/knative/test-infra/issues/493","number":493,"state":"open","locked":false,"title":"Webhook-APICoverage: tools support","user":{"login":"dushyanthsc","id":43390008,"node_id":"MDQ6VXNlcjQzMzkwMDA4","avatar_url":"https://avatars3.githubusercontent.com/u/43390008?v=4","gravatar_id":"","url":"https://api.github.com/users/dushyanthsc","html_url":"https://github.com/dushyanthsc","followers_url":"https://api.github.com/users/dushyanthsc/followers","following_url":"https://api.github.com/users/dushyanthsc/following{/other_user}","gists_url":"https://api.github.com/users/dushyanthsc/gists{/gist_id}","starred_url":"https://api.github.com/users/dushyanthsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dushyanthsc/subscriptions","organizations_url":"https://api.github.com/users/dushyanthsc/orgs","repos_url":"https://api.github.com/users/dushyanthsc/repos","events_url":"https://api.github.com/users/dushyanthsc/events{/privacy}","received_events_url":"https://api.github.com/users/dushyanthsc/received_events","type":"User","site_admin":false},"body":"This changset adds a bunch of utility methods that would help setup and use the Webhook based API Coverage tool for repos. Important ones include utility method to retrieve the IP address of the Webhook service and retrieving coverage details per resource.\r\n\r\nBesides tools, this change addresses some minor bugs:\r\n\r\n1. The values for fields had duplicate entries. This change addresses by replacing slice with map in APICoverageData type.\r\n2. The package names in the display was using \".\" instead of traditional Go based package format \"/\". This change fixes the issue.\r\n","created_at":"2019-02-19T23:26:51Z","updated_at":"2019-02-19T23:53:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d010939d05bc00e77ba4158e0b7440107572c22b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"chaodaiG","id":45011425,"node_id":"MDQ6VXNlcjQ1MDExNDI1","avatar_url":"https://avatars0.githubusercontent.com/u/45011425?v=4","gravatar_id":"","url":"https://api.github.com/users/chaodaiG","html_url":"https://github.com/chaodaiG","followers_url":"https://api.github.com/users/chaodaiG/followers","following_url":"https://api.github.com/users/chaodaiG/following{/other_user}","gists_url":"https://api.github.com/users/chaodaiG/gists{/gist_id}","starred_url":"https://api.github.com/users/chaodaiG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaodaiG/subscriptions","organizations_url":"https://api.github.com/users/chaodaiG/orgs","repos_url":"https://api.github.com/users/chaodaiG/repos","events_url":"https://api.github.com/users/chaodaiG/events{/privacy}","received_events_url":"https://api.github.com/users/chaodaiG/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":993222908,"node_id":"MDU6TGFiZWw5OTMyMjI5MDg=","url":"https://api.github.com/repos/knative/test-infra/labels/approved","name":"approved","color":"ededed","default":false},{"id":1094913024,"node_id":"MDU6TGFiZWwxMDk0OTEzMDI0","url":"https://api.github.com/repos/knative/test-infra/labels/size/XXL","name":"size/XXL","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/knative/test-infra/pulls/493/commits","review_comments_url":"https://api.github.com/repos/knative/test-infra/pulls/493/comments","review_comment_url":"https://api.github.com/repos/knative/test-infra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/knative/test-infra/issues/493/comments","statuses_url":"https://api.github.com/repos/knative/test-infra/statuses/7a3c48f7f98a497ffb622430d687c85f4fe90c1f","head":{"label":"dushyanthsc:apicoverage-webhook/support-tools","ref":"apicoverage-webhook/support-tools","sha":"7a3c48f7f98a497ffb622430d687c85f4fe90c1f","user":{"login":"dushyanthsc","id":43390008,"node_id":"MDQ6VXNlcjQzMzkwMDA4","avatar_url":"https://avatars3.githubusercontent.com/u/43390008?v=4","gravatar_id":"","url":"https://api.github.com/users/dushyanthsc","html_url":"https://github.com/dushyanthsc","followers_url":"https://api.github.com/users/dushyanthsc/followers","following_url":"https://api.github.com/users/dushyanthsc/following{/other_user}","gists_url":"https://api.github.com/users/dushyanthsc/gists{/gist_id}","starred_url":"https://api.github.com/users/dushyanthsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dushyanthsc/subscriptions","organizations_url":"https://api.github.com/users/dushyanthsc/orgs","repos_url":"https://api.github.com/users/dushyanthsc/repos","events_url":"https://api.github.com/users/dushyanthsc/events{/privacy}","received_events_url":"https://api.github.com/users/dushyanthsc/received_events","type":"User","site_admin":false},"repo":{"id":154889733,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ4ODk3MzM=","name":"test-infra","full_name":"dushyanthsc/test-infra","private":false,"owner":{"login":"dushyanthsc","id":43390008,"node_id":"MDQ6VXNlcjQzMzkwMDA4","avatar_url":"https://avatars3.githubusercontent.com/u/43390008?v=4","gravatar_id":"","url":"https://api.github.com/users/dushyanthsc","html_url":"https://github.com/dushyanthsc","followers_url":"https://api.github.com/users/dushyanthsc/followers","following_url":"https://api.github.com/users/dushyanthsc/following{/other_user}","gists_url":"https://api.github.com/users/dushyanthsc/gists{/gist_id}","starred_url":"https://api.github.com/users/dushyanthsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dushyanthsc/subscriptions","organizations_url":"https://api.github.com/users/dushyanthsc/orgs","repos_url":"https://api.github.com/users/dushyanthsc/repos","events_url":"https://api.github.com/users/dushyanthsc/events{/privacy}","received_events_url":"https://api.github.com/users/dushyanthsc/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dushyanthsc/test-infra","description":"Test infrastructure for the Knative project.","fork":true,"url":"https://api.github.com/repos/dushyanthsc/test-infra","forks_url":"https://api.github.com/repos/dushyanthsc/test-infra/forks","keys_url":"https://api.github.com/repos/dushyanthsc/test-infra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dushyanthsc/test-infra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dushyanthsc/test-infra/teams","hooks_url":"https://api.github.com/repos/dushyanthsc/test-infra/hooks","issue_events_url":"https://api.github.com/repos/dushyanthsc/test-infra/issues/events{/number}","events_url":"https://api.github.com/repos/dushyanthsc/test-infra/events","assignees_url":"https://api.github.com/repos/dushyanthsc/test-infra/assignees{/user}","branches_url":"https://api.github.com/repos/dushyanthsc/test-infra/branches{/branch}","tags_url":"https://api.github.com/repos/dushyanthsc/test-infra/tags","blobs_url":"https://api.github.com/repos/dushyanthsc/test-infra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dushyanthsc/test-infra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dushyanthsc/test-infra/git/refs{/sha}","trees_url":"https://api.github.com/repos/dushyanthsc/test-infra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dushyanthsc/test-infra/statuses/{sha}","languages_url":"https://api.github.com/repos/dushyanthsc/test-infra/languages","stargazers_url":"https://api.github.com/repos/dushyanthsc/test-infra/stargazers","contributors_url":"https://api.github.com/repos/dushyanthsc/test-infra/contributors","subscribers_url":"https://api.github.com/repos/dushyanthsc/test-infra/subscribers","subscription_url":"https://api.github.com/repos/dushyanthsc/test-infra/subscription","commits_url":"https://api.github.com/repos/dushyanthsc/test-infra/commits{/sha}","git_commits_url":"https://api.github.com/repos/dushyanthsc/test-infra/git/commits{/sha}","comments_url":"https://api.github.com/repos/dushyanthsc/test-infra/comments{/number}","issue_comment_url":"https://api.github.com/repos/dushyanthsc/test-infra/issues/comments{/number}","contents_url":"https://api.github.com/repos/dushyanthsc/test-infra/contents/{+path}","compare_url":"https://api.github.com/repos/dushyanthsc/test-infra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dushyanthsc/test-infra/merges","archive_url":"https://api.github.com/repos/dushyanthsc/test-infra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dushyanthsc/test-infra/downloads","issues_url":"https://api.github.com/repos/dushyanthsc/test-infra/issues{/number}","pulls_url":"https://api.github.com/repos/dushyanthsc/test-infra/pulls{/number}","milestones_url":"https://api.github.com/repos/dushyanthsc/test-infra/milestones{/number}","notifications_url":"https://api.github.com/repos/dushyanthsc/test-infra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dushyanthsc/test-infra/labels{/name}","releases_url":"https://api.github.com/repos/dushyanthsc/test-infra/releases{/id}","deployments_url":"https://api.github.com/repos/dushyanthsc/test-infra/deployments","created_at":"2018-10-26T20:17:50Z","updated_at":"2019-02-19T23:20:56Z","pushed_at":"2019-02-19T23:21:24Z","git_url":"git://github.com/dushyanthsc/test-infra.git","ssh_url":"git@github.com:dushyanthsc/test-infra.git","clone_url":"https://github.com/dushyanthsc/test-infra.git","svn_url":"https://github.com/dushyanthsc/test-infra","homepage":null,"size":10689,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"knative:master","ref":"master","sha":"c579616b211ab43befc862cbea687dc2e59cd260","user":{"login":"knative","id":35583233,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NTgzMjMz","avatar_url":"https://avatars2.githubusercontent.com/u/35583233?v=4","gravatar_id":"","url":"https://api.github.com/users/knative","html_url":"https://github.com/knative","followers_url":"https://api.github.com/users/knative/followers","following_url":"https://api.github.com/users/knative/following{/other_user}","gists_url":"https://api.github.com/users/knative/gists{/gist_id}","starred_url":"https://api.github.com/users/knative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knative/subscriptions","organizations_url":"https://api.github.com/users/knative/orgs","repos_url":"https://api.github.com/users/knative/repos","events_url":"https://api.github.com/users/knative/events{/privacy}","received_events_url":"https://api.github.com/users/knative/received_events","type":"Organization","site_admin":false},"repo":{"id":136082371,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYwODIzNzE=","name":"test-infra","full_name":"knative/test-infra","private":false,"owner":{"login":"knative","id":35583233,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1NTgzMjMz","avatar_url":"https://avatars2.githubusercontent.com/u/35583233?v=4","gravatar_id":"","url":"https://api.github.com/users/knative","html_url":"https://github.com/knative","followers_url":"https://api.github.com/users/knative/followers","following_url":"https://api.github.com/users/knative/following{/other_user}","gists_url":"https://api.github.com/users/knative/gists{/gist_id}","starred_url":"https://api.github.com/users/knative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knative/subscriptions","organizations_url":"https://api.github.com/users/knative/orgs","repos_url":"https://api.github.com/users/knative/repos","events_url":"https://api.github.com/users/knative/events{/privacy}","received_events_url":"https://api.github.com/users/knative/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/knative/test-infra","description":"Test infrastructure for the Knative project.","fork":false,"url":"https://api.github.com/repos/knative/test-infra","forks_url":"https://api.github.com/repos/knative/test-infra/forks","keys_url":"https://api.github.com/repos/knative/test-infra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knative/test-infra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knative/test-infra/teams","hooks_url":"https://api.github.com/repos/knative/test-infra/hooks","issue_events_url":"https://api.github.com/repos/knative/test-infra/issues/events{/number}","events_url":"https://api.github.com/repos/knative/test-infra/events","assignees_url":"https://api.github.com/repos/knative/test-infra/assignees{/user}","branches_url":"https://api.github.com/repos/knative/test-infra/branches{/branch}","tags_url":"https://api.github.com/repos/knative/test-infra/tags","blobs_url":"https://api.github.com/repos/knative/test-infra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knative/test-infra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knative/test-infra/git/refs{/sha}","trees_url":"https://api.github.com/repos/knative/test-infra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knative/test-infra/statuses/{sha}","languages_url":"https://api.github.com/repos/knative/test-infra/languages","stargazers_url":"https://api.github.com/repos/knative/test-infra/stargazers","contributors_url":"https://api.github.com/repos/knative/test-infra/contributors","subscribers_url":"https://api.github.com/repos/knative/test-infra/subscribers","subscription_url":"https://api.github.com/repos/knative/test-infra/subscription","commits_url":"https://api.github.com/repos/knative/test-infra/commits{/sha}","git_commits_url":"https://api.github.com/repos/knative/test-infra/git/commits{/sha}","comments_url":"https://api.github.com/repos/knative/test-infra/comments{/number}","issue_comment_url":"https://api.github.com/repos/knative/test-infra/issues/comments{/number}","contents_url":"https://api.github.com/repos/knative/test-infra/contents/{+path}","compare_url":"https://api.github.com/repos/knative/test-infra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knative/test-infra/merges","archive_url":"https://api.github.com/repos/knative/test-infra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knative/test-infra/downloads","issues_url":"https://api.github.com/repos/knative/test-infra/issues{/number}","pulls_url":"https://api.github.com/repos/knative/test-infra/pulls{/number}","milestones_url":"https://api.github.com/repos/knative/test-infra/milestones{/number}","notifications_url":"https://api.github.com/repos/knative/test-infra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knative/test-infra/labels{/name}","releases_url":"https://api.github.com/repos/knative/test-infra/releases{/id}","deployments_url":"https://api.github.com/repos/knative/test-infra/deployments","created_at":"2018-06-04T21:01:06Z","updated_at":"2019-02-19T22:12:49Z","pushed_at":"2019-02-19T23:26:52Z","git_url":"git://github.com/knative/test-infra.git","ssh_url":"git@github.com:knative/test-infra.git","clone_url":"https://github.com/knative/test-infra.git","svn_url":"https://github.com/knative/test-infra","homepage":null,"size":10695,"stargazers_count":22,"watchers_count":22,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":41,"mirror_url":null,"archived":false,"open_issues_count":52,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":41,"open_issues":52,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/knative/test-infra/pulls/493"},"html":{"href":"https://github.com/knative/test-infra/pull/493"},"issue":{"href":"https://api.github.com/repos/knative/test-infra/issues/493"},"comments":{"href":"https://api.github.com/repos/knative/test-infra/issues/493/comments"},"review_comments":{"href":"https://api.github.com/repos/knative/test-infra/pulls/493/comments"},"review_comment":{"href":"https://api.github.com/repos/knative/test-infra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/knative/test-infra/pulls/493/commits"},"statuses":{"href":"https://api.github.com/repos/knative/test-infra/statuses/7a3c48f7f98a497ffb622430d687c85f4fe90c1f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jessiezcc"}}