payload: {"action":"created","comment":{"url":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls/comments/341313153","pull_request_review_id":310111810,"id":341313153,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM0MTMxMzE1Mw==","diff_hunk":"@@ -462,6 +440,19 @@ func (dve DefaultValueEncoders) SliceEncodeValue(ec EncodeContext, vw bsonrw.Val\n \treturn aw.WriteArrayEnd()\n }\n \n+func (dve DefaultValueEncoders) lookupElementEncoder(ec EncodeContext, origEncoder ValueEncoder, currVal reflect.Value) (ValueEncoder, reflect.Value, error) {\n+\tif origEncoder != nil || (currVal.Kind() != reflect.Interface) {\n+\t\treturn origEncoder, currVal, nil\n+\t}\n+\tcurrVal = currVal.Elem()\n+\tif !currVal.IsValid() {\n+\t\treturn nil, currVal, fmt.Errorf(\"Cannot encode invalid element\")","path":"bson/bsoncodec/default_value_encoders.go","position":null,"original_position":97,"commit_id":"ce1b9c4458a32a9635952cf2193eeda0f70c06b8","original_commit_id":"23eb5d2d3e88eea3039727f72e5c9c90f9bf4ebe","user":{"login":"iwysiu","id":5421859,"node_id":"MDQ6VXNlcjU0MjE4NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/5421859?v=4","gravatar_id":"","url":"https://api.github.com/users/iwysiu","html_url":"https://github.com/iwysiu","followers_url":"https://api.github.com/users/iwysiu/followers","following_url":"https://api.github.com/users/iwysiu/following{/other_user}","gists_url":"https://api.github.com/users/iwysiu/gists{/gist_id}","starred_url":"https://api.github.com/users/iwysiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwysiu/subscriptions","organizations_url":"https://api.github.com/users/iwysiu/orgs","repos_url":"https://api.github.com/users/iwysiu/repos","events_url":"https://api.github.com/users/iwysiu/events{/privacy}","received_events_url":"https://api.github.com/users/iwysiu/received_events","type":"User","site_admin":false},"body":"done","created_at":"2019-10-31T18:54:17Z","updated_at":"2019-10-31T18:54:18Z","html_url":"https://github.com/mongodb/mongo-go-driver/pull/206#discussion_r341313153","pull_request_url":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls/206","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls/comments/341313153"},"html":{"href":"https://github.com/mongodb/mongo-go-driver/pull/206#discussion_r341313153"},"pull_request":{"href":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls/206"}},"in_reply_to_id":341298161},"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls/206","id":332636772,"node_id":"MDExOlB1bGxSZXF1ZXN0MzMyNjM2Nzcy","html_url":"https://github.com/mongodb/mongo-go-driver/pull/206","diff_url":"https://github.com/mongodb/mongo-go-driver/pull/206.diff","patch_url":"https://github.com/mongodb/mongo-go-driver/pull/206.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-go-driver/issues/206","number":206,"state":"open","locked":false,"title":"GODRIVER-1294 support marshaling interfaces to bson","user":{"login":"iwysiu","id":5421859,"node_id":"MDQ6VXNlcjU0MjE4NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/5421859?v=4","gravatar_id":"","url":"https://api.github.com/users/iwysiu","html_url":"https://github.com/iwysiu","followers_url":"https://api.github.com/users/iwysiu/followers","following_url":"https://api.github.com/users/iwysiu/following{/other_user}","gists_url":"https://api.github.com/users/iwysiu/gists{/gist_id}","starred_url":"https://api.github.com/users/iwysiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwysiu/subscriptions","organizations_url":"https://api.github.com/users/iwysiu/orgs","repos_url":"https://api.github.com/users/iwysiu/repos","events_url":"https://api.github.com/users/iwysiu/events{/privacy}","received_events_url":"https://api.github.com/users/iwysiu/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-10-25T18:54:19Z","updated_at":"2019-10-31T18:54:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"109419ce00196d0380e0f09f955340c6cef0029e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jyemin","id":1111546,"node_id":"MDQ6VXNlcjExMTE1NDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1111546?v=4","gravatar_id":"","url":"https://api.github.com/users/jyemin","html_url":"https://github.com/jyemin","followers_url":"https://api.github.com/users/jyemin/followers","following_url":"https://api.github.com/users/jyemin/following{/other_user}","gists_url":"https://api.github.com/users/jyemin/gists{/gist_id}","starred_url":"https://api.github.com/users/jyemin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyemin/subscriptions","organizations_url":"https://api.github.com/users/jyemin/orgs","repos_url":"https://api.github.com/users/jyemin/repos","events_url":"https://api.github.com/users/jyemin/events{/privacy}","received_events_url":"https://api.github.com/users/jyemin/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls/206/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls/206/comments","review_comment_url":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/mongo-go-driver/issues/206/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-go-driver/statuses/ce1b9c4458a32a9635952cf2193eeda0f70c06b8","head":{"label":"iwysiu:GODRIVER-1294","ref":"GODRIVER-1294","sha":"ce1b9c4458a32a9635952cf2193eeda0f70c06b8","user":{"login":"iwysiu","id":5421859,"node_id":"MDQ6VXNlcjU0MjE4NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/5421859?v=4","gravatar_id":"","url":"https://api.github.com/users/iwysiu","html_url":"https://github.com/iwysiu","followers_url":"https://api.github.com/users/iwysiu/followers","following_url":"https://api.github.com/users/iwysiu/following{/other_user}","gists_url":"https://api.github.com/users/iwysiu/gists{/gist_id}","starred_url":"https://api.github.com/users/iwysiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwysiu/subscriptions","organizations_url":"https://api.github.com/users/iwysiu/orgs","repos_url":"https://api.github.com/users/iwysiu/repos","events_url":"https://api.github.com/users/iwysiu/events{/privacy}","received_events_url":"https://api.github.com/users/iwysiu/received_events","type":"User","site_admin":false},"repo":{"id":197259057,"node_id":"MDEwOlJlcG9zaXRvcnkxOTcyNTkwNTc=","name":"mongo-go-driver","full_name":"iwysiu/mongo-go-driver","private":false,"owner":{"login":"iwysiu","id":5421859,"node_id":"MDQ6VXNlcjU0MjE4NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/5421859?v=4","gravatar_id":"","url":"https://api.github.com/users/iwysiu","html_url":"https://github.com/iwysiu","followers_url":"https://api.github.com/users/iwysiu/followers","following_url":"https://api.github.com/users/iwysiu/following{/other_user}","gists_url":"https://api.github.com/users/iwysiu/gists{/gist_id}","starred_url":"https://api.github.com/users/iwysiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwysiu/subscriptions","organizations_url":"https://api.github.com/users/iwysiu/orgs","repos_url":"https://api.github.com/users/iwysiu/repos","events_url":"https://api.github.com/users/iwysiu/events{/privacy}","received_events_url":"https://api.github.com/users/iwysiu/received_events","type":"User","site_admin":false},"html_url":"https://github.com/iwysiu/mongo-go-driver","description":"The Go driver for MongoDB","fork":true,"url":"https://api.github.com/repos/iwysiu/mongo-go-driver","forks_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/forks","keys_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/teams","hooks_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/hooks","issue_events_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/issues/events{/number}","events_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/events","assignees_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/assignees{/user}","branches_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/branches{/branch}","tags_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/tags","blobs_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/languages","stargazers_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/stargazers","contributors_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/contributors","subscribers_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/subscribers","subscription_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/subscription","commits_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/contents/{+path}","compare_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/merges","archive_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/downloads","issues_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/issues{/number}","pulls_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/labels{/name}","releases_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/releases{/id}","deployments_url":"https://api.github.com/repos/iwysiu/mongo-go-driver/deployments","created_at":"2019-07-16T19:58:56Z","updated_at":"2019-07-16T19:59:01Z","pushed_at":"2019-10-31T18:54:02Z","git_url":"git://github.com/iwysiu/mongo-go-driver.git","ssh_url":"git@github.com:iwysiu/mongo-go-driver.git","clone_url":"https://github.com/iwysiu/mongo-go-driver.git","svn_url":"https://github.com/iwysiu/mongo-go-driver","homepage":"","size":11882,"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,"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":"mongodb:master","ref":"master","sha":"39c33afcc81edca0408016dc16c88a7d87231218","user":{"login":"mongodb","id":45120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/45120?v=4","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":81355383,"node_id":"MDEwOlJlcG9zaXRvcnk4MTM1NTM4Mw==","name":"mongo-go-driver","full_name":"mongodb/mongo-go-driver","private":false,"owner":{"login":"mongodb","id":45120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/45120?v=4","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mongodb/mongo-go-driver","description":"The Go driver for MongoDB","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-go-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-go-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-go-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-go-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-go-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-go-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-go-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-go-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-go-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-go-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-go-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-go-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-go-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-go-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-go-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-go-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-go-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-go-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-go-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-go-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-go-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-go-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-go-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-go-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-go-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongo-go-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-go-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-go-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-go-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-go-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-go-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-go-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-go-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-go-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-go-driver/releases{/id}","deployments_url":"https://api.github.com/repos/mongodb/mongo-go-driver/deployments","created_at":"2017-02-08T17:18:02Z","updated_at":"2019-10-31T18:06:43Z","pushed_at":"2019-10-31T18:54:03Z","git_url":"git://github.com/mongodb/mongo-go-driver.git","ssh_url":"git@github.com:mongodb/mongo-go-driver.git","clone_url":"https://github.com/mongodb/mongo-go-driver.git","svn_url":"https://github.com/mongodb/mongo-go-driver","homepage":"","size":18083,"stargazers_count":3556,"watchers_count":3556,"language":"Go","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":390,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":4,"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":390,"open_issues":4,"watchers":3556,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls/206"},"html":{"href":"https://github.com/mongodb/mongo-go-driver/pull/206"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-go-driver/issues/206"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-go-driver/issues/206/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls/206/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/mongo-go-driver/pulls/206/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-go-driver/statuses/ce1b9c4458a32a9635952cf2193eeda0f70c06b8"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"iwysiu"}}