payload: {"action":"created","comment":{"url":"https://api.github.com/repos/istio/operator/pulls/comments/286154908","pull_request_review_id":240211659,"id":286154908,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4NjE1NDkwOA==","diff_hunk":"@@ -0,0 +1,312 @@\n+package util\n+\n+import (\n+\t\"reflect\"\n+\t\"testing\"\n+)\n+\n+// TODO: add missing unit tests.\n+\n+// errToString returns the string representation of err and the empty string if\n+// err is nil.\n+func errToString(err error) string {\n+\tif err == nil {\n+\t\treturn \"\"\n+\t}\n+\treturn err.Error()\n+}\n+\n+// to ptr conversion utility functions\n+func toStringPtr(s string) *string { return &s }\n+func toInt8Ptr(i int8) *int8       { return &i }\n+func toInt32Ptr(i int32) *int32    { return &i }","path":"pkg/util/reflect_test.go","position":22,"original_position":22,"commit_id":"5aed62e74aa5fc1f8b932d5e932586fcf7ffb01d","original_commit_id":"5aed62e74aa5fc1f8b932d5e932586fcf7ffb01d","user":{"login":"golangcibot","id":42910462,"node_id":"MDQ6VXNlcjQyOTEwNDYy","avatar_url":"https://avatars1.githubusercontent.com/u/42910462?v=4","gravatar_id":"","url":"https://api.github.com/users/golangcibot","html_url":"https://github.com/golangcibot","followers_url":"https://api.github.com/users/golangcibot/followers","following_url":"https://api.github.com/users/golangcibot/following{/other_user}","gists_url":"https://api.github.com/users/golangcibot/gists{/gist_id}","starred_url":"https://api.github.com/users/golangcibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golangcibot/subscriptions","organizations_url":"https://api.github.com/users/golangcibot/orgs","repos_url":"https://api.github.com/users/golangcibot/repos","events_url":"https://api.github.com/users/golangcibot/events{/privacy}","received_events_url":"https://api.github.com/users/golangcibot/received_events","type":"User","site_admin":false},"body":"`toInt32Ptr` is unused (from `deadcode`)","created_at":"2019-05-21T18:03:59Z","updated_at":"2019-05-21T18:04:02Z","html_url":"https://github.com/istio/operator/pull/4#discussion_r286154908","pull_request_url":"https://api.github.com/repos/istio/operator/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/istio/operator/pulls/comments/286154908"},"html":{"href":"https://github.com/istio/operator/pull/4#discussion_r286154908"},"pull_request":{"href":"https://api.github.com/repos/istio/operator/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/istio/operator/pulls/4","id":277217419,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc3MjE3NDE5","html_url":"https://github.com/istio/operator/pull/4","diff_url":"https://github.com/istio/operator/pull/4.diff","patch_url":"https://github.com/istio/operator/pull/4.patch","issue_url":"https://api.github.com/repos/istio/operator/issues/4","number":4,"state":"open","locked":false,"title":"Reflect utilities","user":{"login":"ostromart","id":30089849,"node_id":"MDQ6VXNlcjMwMDg5ODQ5","avatar_url":"https://avatars3.githubusercontent.com/u/30089849?v=4","gravatar_id":"","url":"https://api.github.com/users/ostromart","html_url":"https://github.com/ostromart","followers_url":"https://api.github.com/users/ostromart/followers","following_url":"https://api.github.com/users/ostromart/following{/other_user}","gists_url":"https://api.github.com/users/ostromart/gists{/gist_id}","starred_url":"https://api.github.com/users/ostromart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostromart/subscriptions","organizations_url":"https://api.github.com/users/ostromart/orgs","repos_url":"https://api.github.com/users/ostromart/repos","events_url":"https://api.github.com/users/ostromart/events{/privacy}","received_events_url":"https://api.github.com/users/ostromart/received_events","type":"User","site_admin":false},"body":"Reflection wrappers used in various higher level packages.","created_at":"2019-05-09T01:40:03Z","updated_at":"2019-05-21T18:04:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82010af8412539539e0c37880441229ff499f78f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ayj","id":116378,"node_id":"MDQ6VXNlcjExNjM3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/116378?v=4","gravatar_id":"","url":"https://api.github.com/users/ayj","html_url":"https://github.com/ayj","followers_url":"https://api.github.com/users/ayj/followers","following_url":"https://api.github.com/users/ayj/following{/other_user}","gists_url":"https://api.github.com/users/ayj/gists{/gist_id}","starred_url":"https://api.github.com/users/ayj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayj/subscriptions","organizations_url":"https://api.github.com/users/ayj/orgs","repos_url":"https://api.github.com/users/ayj/repos","events_url":"https://api.github.com/users/ayj/events{/privacy}","received_events_url":"https://api.github.com/users/ayj/received_events","type":"User","site_admin":false},{"login":"knrc","id":701297,"node_id":"MDQ6VXNlcjcwMTI5Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/701297?v=4","gravatar_id":"","url":"https://api.github.com/users/knrc","html_url":"https://github.com/knrc","followers_url":"https://api.github.com/users/knrc/followers","following_url":"https://api.github.com/users/knrc/following{/other_user}","gists_url":"https://api.github.com/users/knrc/gists{/gist_id}","starred_url":"https://api.github.com/users/knrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knrc/subscriptions","organizations_url":"https://api.github.com/users/knrc/orgs","repos_url":"https://api.github.com/users/knrc/repos","events_url":"https://api.github.com/users/knrc/events{/privacy}","received_events_url":"https://api.github.com/users/knrc/received_events","type":"User","site_admin":false},{"login":"linsun","id":1588319,"node_id":"MDQ6VXNlcjE1ODgzMTk=","avatar_url":"https://avatars3.githubusercontent.com/u/1588319?v=4","gravatar_id":"","url":"https://api.github.com/users/linsun","html_url":"https://github.com/linsun","followers_url":"https://api.github.com/users/linsun/followers","following_url":"https://api.github.com/users/linsun/following{/other_user}","gists_url":"https://api.github.com/users/linsun/gists{/gist_id}","starred_url":"https://api.github.com/users/linsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linsun/subscriptions","organizations_url":"https://api.github.com/users/linsun/orgs","repos_url":"https://api.github.com/users/linsun/repos","events_url":"https://api.github.com/users/linsun/events{/privacy}","received_events_url":"https://api.github.com/users/linsun/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/istio/operator/pulls/4/commits","review_comments_url":"https://api.github.com/repos/istio/operator/pulls/4/comments","review_comment_url":"https://api.github.com/repos/istio/operator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/istio/operator/issues/4/comments","statuses_url":"https://api.github.com/repos/istio/operator/statuses/5aed62e74aa5fc1f8b932d5e932586fcf7ffb01d","head":{"label":"ostromart:utils-reflect-1.1","ref":"utils-reflect-1.1","sha":"5aed62e74aa5fc1f8b932d5e932586fcf7ffb01d","user":{"login":"ostromart","id":30089849,"node_id":"MDQ6VXNlcjMwMDg5ODQ5","avatar_url":"https://avatars3.githubusercontent.com/u/30089849?v=4","gravatar_id":"","url":"https://api.github.com/users/ostromart","html_url":"https://github.com/ostromart","followers_url":"https://api.github.com/users/ostromart/followers","following_url":"https://api.github.com/users/ostromart/following{/other_user}","gists_url":"https://api.github.com/users/ostromart/gists{/gist_id}","starred_url":"https://api.github.com/users/ostromart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostromart/subscriptions","organizations_url":"https://api.github.com/users/ostromart/orgs","repos_url":"https://api.github.com/users/ostromart/repos","events_url":"https://api.github.com/users/ostromart/events{/privacy}","received_events_url":"https://api.github.com/users/ostromart/received_events","type":"User","site_admin":false},"repo":{"id":185682633,"node_id":"MDEwOlJlcG9zaXRvcnkxODU2ODI2MzM=","name":"operator","full_name":"ostromart/operator","private":false,"owner":{"login":"ostromart","id":30089849,"node_id":"MDQ6VXNlcjMwMDg5ODQ5","avatar_url":"https://avatars3.githubusercontent.com/u/30089849?v=4","gravatar_id":"","url":"https://api.github.com/users/ostromart","html_url":"https://github.com/ostromart","followers_url":"https://api.github.com/users/ostromart/followers","following_url":"https://api.github.com/users/ostromart/following{/other_user}","gists_url":"https://api.github.com/users/ostromart/gists{/gist_id}","starred_url":"https://api.github.com/users/ostromart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostromart/subscriptions","organizations_url":"https://api.github.com/users/ostromart/orgs","repos_url":"https://api.github.com/users/ostromart/repos","events_url":"https://api.github.com/users/ostromart/events{/privacy}","received_events_url":"https://api.github.com/users/ostromart/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ostromart/operator","description":"Istio operator provides user friendly options to operate the Istio service mesh","fork":true,"url":"https://api.github.com/repos/ostromart/operator","forks_url":"https://api.github.com/repos/ostromart/operator/forks","keys_url":"https://api.github.com/repos/ostromart/operator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ostromart/operator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ostromart/operator/teams","hooks_url":"https://api.github.com/repos/ostromart/operator/hooks","issue_events_url":"https://api.github.com/repos/ostromart/operator/issues/events{/number}","events_url":"https://api.github.com/repos/ostromart/operator/events","assignees_url":"https://api.github.com/repos/ostromart/operator/assignees{/user}","branches_url":"https://api.github.com/repos/ostromart/operator/branches{/branch}","tags_url":"https://api.github.com/repos/ostromart/operator/tags","blobs_url":"https://api.github.com/repos/ostromart/operator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ostromart/operator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ostromart/operator/git/refs{/sha}","trees_url":"https://api.github.com/repos/ostromart/operator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ostromart/operator/statuses/{sha}","languages_url":"https://api.github.com/repos/ostromart/operator/languages","stargazers_url":"https://api.github.com/repos/ostromart/operator/stargazers","contributors_url":"https://api.github.com/repos/ostromart/operator/contributors","subscribers_url":"https://api.github.com/repos/ostromart/operator/subscribers","subscription_url":"https://api.github.com/repos/ostromart/operator/subscription","commits_url":"https://api.github.com/repos/ostromart/operator/commits{/sha}","git_commits_url":"https://api.github.com/repos/ostromart/operator/git/commits{/sha}","comments_url":"https://api.github.com/repos/ostromart/operator/comments{/number}","issue_comment_url":"https://api.github.com/repos/ostromart/operator/issues/comments{/number}","contents_url":"https://api.github.com/repos/ostromart/operator/contents/{+path}","compare_url":"https://api.github.com/repos/ostromart/operator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ostromart/operator/merges","archive_url":"https://api.github.com/repos/ostromart/operator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ostromart/operator/downloads","issues_url":"https://api.github.com/repos/ostromart/operator/issues{/number}","pulls_url":"https://api.github.com/repos/ostromart/operator/pulls{/number}","milestones_url":"https://api.github.com/repos/ostromart/operator/milestones{/number}","notifications_url":"https://api.github.com/repos/ostromart/operator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ostromart/operator/labels{/name}","releases_url":"https://api.github.com/repos/ostromart/operator/releases{/id}","deployments_url":"https://api.github.com/repos/ostromart/operator/deployments","created_at":"2019-05-08T21:36:46Z","updated_at":"2019-05-08T21:36:50Z","pushed_at":"2019-05-21T18:01:28Z","git_url":"git://github.com/ostromart/operator.git","ssh_url":"git@github.com:ostromart/operator.git","clone_url":"https://github.com/ostromart/operator.git","svn_url":"https://github.com/ostromart/operator","homepage":null,"size":36576,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":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":"istio:master","ref":"master","sha":"af2c21c83eee46f145114ea6264035e7d0610929","user":{"login":"istio","id":23534644,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTM0NjQ0","avatar_url":"https://avatars1.githubusercontent.com/u/23534644?v=4","gravatar_id":"","url":"https://api.github.com/users/istio","html_url":"https://github.com/istio","followers_url":"https://api.github.com/users/istio/followers","following_url":"https://api.github.com/users/istio/following{/other_user}","gists_url":"https://api.github.com/users/istio/gists{/gist_id}","starred_url":"https://api.github.com/users/istio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istio/subscriptions","organizations_url":"https://api.github.com/users/istio/orgs","repos_url":"https://api.github.com/users/istio/repos","events_url":"https://api.github.com/users/istio/events{/privacy}","received_events_url":"https://api.github.com/users/istio/received_events","type":"Organization","site_admin":false},"repo":{"id":180454522,"node_id":"MDEwOlJlcG9zaXRvcnkxODA0NTQ1MjI=","name":"operator","full_name":"istio/operator","private":false,"owner":{"login":"istio","id":23534644,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTM0NjQ0","avatar_url":"https://avatars1.githubusercontent.com/u/23534644?v=4","gravatar_id":"","url":"https://api.github.com/users/istio","html_url":"https://github.com/istio","followers_url":"https://api.github.com/users/istio/followers","following_url":"https://api.github.com/users/istio/following{/other_user}","gists_url":"https://api.github.com/users/istio/gists{/gist_id}","starred_url":"https://api.github.com/users/istio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istio/subscriptions","organizations_url":"https://api.github.com/users/istio/orgs","repos_url":"https://api.github.com/users/istio/repos","events_url":"https://api.github.com/users/istio/events{/privacy}","received_events_url":"https://api.github.com/users/istio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/istio/operator","description":"Istio operator provides user friendly options to operate the Istio service mesh","fork":false,"url":"https://api.github.com/repos/istio/operator","forks_url":"https://api.github.com/repos/istio/operator/forks","keys_url":"https://api.github.com/repos/istio/operator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/istio/operator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/istio/operator/teams","hooks_url":"https://api.github.com/repos/istio/operator/hooks","issue_events_url":"https://api.github.com/repos/istio/operator/issues/events{/number}","events_url":"https://api.github.com/repos/istio/operator/events","assignees_url":"https://api.github.com/repos/istio/operator/assignees{/user}","branches_url":"https://api.github.com/repos/istio/operator/branches{/branch}","tags_url":"https://api.github.com/repos/istio/operator/tags","blobs_url":"https://api.github.com/repos/istio/operator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/istio/operator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/istio/operator/git/refs{/sha}","trees_url":"https://api.github.com/repos/istio/operator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/istio/operator/statuses/{sha}","languages_url":"https://api.github.com/repos/istio/operator/languages","stargazers_url":"https://api.github.com/repos/istio/operator/stargazers","contributors_url":"https://api.github.com/repos/istio/operator/contributors","subscribers_url":"https://api.github.com/repos/istio/operator/subscribers","subscription_url":"https://api.github.com/repos/istio/operator/subscription","commits_url":"https://api.github.com/repos/istio/operator/commits{/sha}","git_commits_url":"https://api.github.com/repos/istio/operator/git/commits{/sha}","comments_url":"https://api.github.com/repos/istio/operator/comments{/number}","issue_comment_url":"https://api.github.com/repos/istio/operator/issues/comments{/number}","contents_url":"https://api.github.com/repos/istio/operator/contents/{+path}","compare_url":"https://api.github.com/repos/istio/operator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/istio/operator/merges","archive_url":"https://api.github.com/repos/istio/operator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/istio/operator/downloads","issues_url":"https://api.github.com/repos/istio/operator/issues{/number}","pulls_url":"https://api.github.com/repos/istio/operator/pulls{/number}","milestones_url":"https://api.github.com/repos/istio/operator/milestones{/number}","notifications_url":"https://api.github.com/repos/istio/operator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/istio/operator/labels{/name}","releases_url":"https://api.github.com/repos/istio/operator/releases{/id}","deployments_url":"https://api.github.com/repos/istio/operator/deployments","created_at":"2019-04-09T21:49:13Z","updated_at":"2019-05-21T17:06:40Z","pushed_at":"2019-05-21T18:01:30Z","git_url":"git://github.com/istio/operator.git","ssh_url":"git@github.com:istio/operator.git","clone_url":"https://github.com/istio/operator.git","svn_url":"https://github.com/istio/operator","homepage":null,"size":36550,"stargazers_count":40,"watchers_count":40,"language":"Go","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":9,"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":8,"open_issues":9,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/istio/operator/pulls/4"},"html":{"href":"https://github.com/istio/operator/pull/4"},"issue":{"href":"https://api.github.com/repos/istio/operator/issues/4"},"comments":{"href":"https://api.github.com/repos/istio/operator/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/istio/operator/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/istio/operator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/istio/operator/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/istio/operator/statuses/5aed62e74aa5fc1f8b932d5e932586fcf7ffb01d"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"golangcibot"}}