{"action":"created","comment":{"url":"https://api.github.com/repos/trezor/trezord-go/pulls/comments/205737637","pull_request_review_id":141068465,"id":205737637,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTczNzYzNw==","diff_hunk":"@@ -216,7 +217,7 @@ func (b *WebUSB) match(dev lowlevel.Device) bool {\n \t}\n \treturn (c.BNumInterfaces > webIfaceNum &&\n \t\tc.Interface[webIfaceNum].Num_altsetting > webAltSetting &&\n-\t\tc.Interface[webIfaceNum].Altsetting[webAltSetting].BInterfaceClass == lowlevel.CLASS_VENDOR_SPEC)\n+\t\t(c.Interface[webIfaceNum].Altsetting[webAltSetting].BInterfaceClass == lowlevel.CLASS_VENDOR_SPEC || runtime.GOOS == \"freebsd\"))","path":"usb/webusb.go","position":13,"original_position":13,"commit_id":"9f1f1af991423496540993c5e1793aaa3b540557","original_commit_id":"9f1f1af991423496540993c5e1793aaa3b540557","user":{"login":"prusnak","id":42201,"node_id":"MDQ6VXNlcjQyMjAx","avatar_url":"https://avatars2.githubusercontent.com/u/42201?v=4","gravatar_id":"","url":"https://api.github.com/users/prusnak","html_url":"https://github.com/prusnak","followers_url":"https://api.github.com/users/prusnak/followers","following_url":"https://api.github.com/users/prusnak/following{/other_user}","gists_url":"https://api.github.com/users/prusnak/gists{/gist_id}","starred_url":"https://api.github.com/users/prusnak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prusnak/subscriptions","organizations_url":"https://api.github.com/users/prusnak/orgs","repos_url":"https://api.github.com/users/prusnak/repos","events_url":"https://api.github.com/users/prusnak/events{/privacy}","received_events_url":"https://api.github.com/users/prusnak/received_events","type":"User","site_admin":false},"body":"please do:\r\n\r\n```\r\nif runtime.GOOS != \"freebsd\" {\r\n    return X;\r\n} else {\r\n    return Y;\r\n}\r\n```","created_at":"2018-07-27T10:55:30Z","updated_at":"2018-07-27T10:55:30Z","html_url":"https://github.com/trezor/trezord-go/pull/70#discussion_r205737637","pull_request_url":"https://api.github.com/repos/trezor/trezord-go/pulls/70","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/trezor/trezord-go/pulls/comments/205737637"},"html":{"href":"https://github.com/trezor/trezord-go/pull/70#discussion_r205737637"},"pull_request":{"href":"https://api.github.com/repos/trezor/trezord-go/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/trezor/trezord-go/pulls/70","id":193933299,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzOTMzMjk5","html_url":"https://github.com/trezor/trezord-go/pull/70","diff_url":"https://github.com/trezor/trezord-go/pull/70.diff","patch_url":"https://github.com/trezor/trezord-go/pull/70.patch","issue_url":"https://api.github.com/repos/trezor/trezord-go/issues/70","number":70,"state":"open","locked":false,"title":"Add FreeBSD support.","user":{"login":"alexdupre","id":3694371,"node_id":"MDQ6VXNlcjM2OTQzNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/3694371?v=4","gravatar_id":"","url":"https://api.github.com/users/alexdupre","html_url":"https://github.com/alexdupre","followers_url":"https://api.github.com/users/alexdupre/followers","following_url":"https://api.github.com/users/alexdupre/following{/other_user}","gists_url":"https://api.github.com/users/alexdupre/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdupre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdupre/subscriptions","organizations_url":"https://api.github.com/users/alexdupre/orgs","repos_url":"https://api.github.com/users/alexdupre/repos","events_url":"https://api.github.com/users/alexdupre/events{/privacy}","received_events_url":"https://api.github.com/users/alexdupre/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-11T10:10:00Z","updated_at":"2018-07-27T10:55:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0917e6d917b490c37711ee5d50a5b8e5464bffd5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/trezor/trezord-go/pulls/70/commits","review_comments_url":"https://api.github.com/repos/trezor/trezord-go/pulls/70/comments","review_comment_url":"https://api.github.com/repos/trezor/trezord-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trezor/trezord-go/issues/70/comments","statuses_url":"https://api.github.com/repos/trezor/trezord-go/statuses/9f1f1af991423496540993c5e1793aaa3b540557","head":{"label":"alexdupre:freebsd","ref":"freebsd","sha":"9f1f1af991423496540993c5e1793aaa3b540557","user":{"login":"alexdupre","id":3694371,"node_id":"MDQ6VXNlcjM2OTQzNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/3694371?v=4","gravatar_id":"","url":"https://api.github.com/users/alexdupre","html_url":"https://github.com/alexdupre","followers_url":"https://api.github.com/users/alexdupre/followers","following_url":"https://api.github.com/users/alexdupre/following{/other_user}","gists_url":"https://api.github.com/users/alexdupre/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdupre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdupre/subscriptions","organizations_url":"https://api.github.com/users/alexdupre/orgs","repos_url":"https://api.github.com/users/alexdupre/repos","events_url":"https://api.github.com/users/alexdupre/events{/privacy}","received_events_url":"https://api.github.com/users/alexdupre/received_events","type":"User","site_admin":false},"repo":{"id":136903618,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY5MDM2MTg=","name":"trezord-go","full_name":"alexdupre/trezord-go","owner":{"login":"alexdupre","id":3694371,"node_id":"MDQ6VXNlcjM2OTQzNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/3694371?v=4","gravatar_id":"","url":"https://api.github.com/users/alexdupre","html_url":"https://github.com/alexdupre","followers_url":"https://api.github.com/users/alexdupre/followers","following_url":"https://api.github.com/users/alexdupre/following{/other_user}","gists_url":"https://api.github.com/users/alexdupre/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdupre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdupre/subscriptions","organizations_url":"https://api.github.com/users/alexdupre/orgs","repos_url":"https://api.github.com/users/alexdupre/repos","events_url":"https://api.github.com/users/alexdupre/events{/privacy}","received_events_url":"https://api.github.com/users/alexdupre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexdupre/trezord-go","description":":smiling_imp: TREZOR Communication Daemon (written in Go)","fork":true,"url":"https://api.github.com/repos/alexdupre/trezord-go","forks_url":"https://api.github.com/repos/alexdupre/trezord-go/forks","keys_url":"https://api.github.com/repos/alexdupre/trezord-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexdupre/trezord-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexdupre/trezord-go/teams","hooks_url":"https://api.github.com/repos/alexdupre/trezord-go/hooks","issue_events_url":"https://api.github.com/repos/alexdupre/trezord-go/issues/events{/number}","events_url":"https://api.github.com/repos/alexdupre/trezord-go/events","assignees_url":"https://api.github.com/repos/alexdupre/trezord-go/assignees{/user}","branches_url":"https://api.github.com/repos/alexdupre/trezord-go/branches{/branch}","tags_url":"https://api.github.com/repos/alexdupre/trezord-go/tags","blobs_url":"https://api.github.com/repos/alexdupre/trezord-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexdupre/trezord-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexdupre/trezord-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexdupre/trezord-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexdupre/trezord-go/statuses/{sha}","languages_url":"https://api.github.com/repos/alexdupre/trezord-go/languages","stargazers_url":"https://api.github.com/repos/alexdupre/trezord-go/stargazers","contributors_url":"https://api.github.com/repos/alexdupre/trezord-go/contributors","subscribers_url":"https://api.github.com/repos/alexdupre/trezord-go/subscribers","subscription_url":"https://api.github.com/repos/alexdupre/trezord-go/subscription","commits_url":"https://api.github.com/repos/alexdupre/trezord-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexdupre/trezord-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexdupre/trezord-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexdupre/trezord-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexdupre/trezord-go/contents/{+path}","compare_url":"https://api.github.com/repos/alexdupre/trezord-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexdupre/trezord-go/merges","archive_url":"https://api.github.com/repos/alexdupre/trezord-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexdupre/trezord-go/downloads","issues_url":"https://api.github.com/repos/alexdupre/trezord-go/issues{/number}","pulls_url":"https://api.github.com/repos/alexdupre/trezord-go/pulls{/number}","milestones_url":"https://api.github.com/repos/alexdupre/trezord-go/milestones{/number}","notifications_url":"https://api.github.com/repos/alexdupre/trezord-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexdupre/trezord-go/labels{/name}","releases_url":"https://api.github.com/repos/alexdupre/trezord-go/releases{/id}","deployments_url":"https://api.github.com/repos/alexdupre/trezord-go/deployments","created_at":"2018-06-11T09:23:42Z","updated_at":"2018-07-25T12:23:58Z","pushed_at":"2018-07-25T12:38:57Z","git_url":"git://github.com/alexdupre/trezord-go.git","ssh_url":"git@github.com:alexdupre/trezord-go.git","clone_url":"https://github.com/alexdupre/trezord-go.git","svn_url":"https://github.com/alexdupre/trezord-go","homepage":"","size":5892,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"trezor:master","ref":"master","sha":"c4873d3a9ce1f27f26afc0cb1ba94156c3150148","user":{"login":"trezor","id":4146447,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDY0NDc=","avatar_url":"https://avatars1.githubusercontent.com/u/4146447?v=4","gravatar_id":"","url":"https://api.github.com/users/trezor","html_url":"https://github.com/trezor","followers_url":"https://api.github.com/users/trezor/followers","following_url":"https://api.github.com/users/trezor/following{/other_user}","gists_url":"https://api.github.com/users/trezor/gists{/gist_id}","starred_url":"https://api.github.com/users/trezor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trezor/subscriptions","organizations_url":"https://api.github.com/users/trezor/orgs","repos_url":"https://api.github.com/users/trezor/repos","events_url":"https://api.github.com/users/trezor/events{/privacy}","received_events_url":"https://api.github.com/users/trezor/received_events","type":"Organization","site_admin":false},"repo":{"id":119376702,"node_id":"MDEwOlJlcG9zaXRvcnkxMTkzNzY3MDI=","name":"trezord-go","full_name":"trezor/trezord-go","owner":{"login":"trezor","id":4146447,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDY0NDc=","avatar_url":"https://avatars1.githubusercontent.com/u/4146447?v=4","gravatar_id":"","url":"https://api.github.com/users/trezor","html_url":"https://github.com/trezor","followers_url":"https://api.github.com/users/trezor/followers","following_url":"https://api.github.com/users/trezor/following{/other_user}","gists_url":"https://api.github.com/users/trezor/gists{/gist_id}","starred_url":"https://api.github.com/users/trezor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trezor/subscriptions","organizations_url":"https://api.github.com/users/trezor/orgs","repos_url":"https://api.github.com/users/trezor/repos","events_url":"https://api.github.com/users/trezor/events{/privacy}","received_events_url":"https://api.github.com/users/trezor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/trezor/trezord-go","description":":smiling_imp: TREZOR Communication Daemon (written in Go)","fork":false,"url":"https://api.github.com/repos/trezor/trezord-go","forks_url":"https://api.github.com/repos/trezor/trezord-go/forks","keys_url":"https://api.github.com/repos/trezor/trezord-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trezor/trezord-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trezor/trezord-go/teams","hooks_url":"https://api.github.com/repos/trezor/trezord-go/hooks","issue_events_url":"https://api.github.com/repos/trezor/trezord-go/issues/events{/number}","events_url":"https://api.github.com/repos/trezor/trezord-go/events","assignees_url":"https://api.github.com/repos/trezor/trezord-go/assignees{/user}","branches_url":"https://api.github.com/repos/trezor/trezord-go/branches{/branch}","tags_url":"https://api.github.com/repos/trezor/trezord-go/tags","blobs_url":"https://api.github.com/repos/trezor/trezord-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trezor/trezord-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trezor/trezord-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/trezor/trezord-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trezor/trezord-go/statuses/{sha}","languages_url":"https://api.github.com/repos/trezor/trezord-go/languages","stargazers_url":"https://api.github.com/repos/trezor/trezord-go/stargazers","contributors_url":"https://api.github.com/repos/trezor/trezord-go/contributors","subscribers_url":"https://api.github.com/repos/trezor/trezord-go/subscribers","subscription_url":"https://api.github.com/repos/trezor/trezord-go/subscription","commits_url":"https://api.github.com/repos/trezor/trezord-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/trezor/trezord-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/trezor/trezord-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/trezor/trezord-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/trezor/trezord-go/contents/{+path}","compare_url":"https://api.github.com/repos/trezor/trezord-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trezor/trezord-go/merges","archive_url":"https://api.github.com/repos/trezor/trezord-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trezor/trezord-go/downloads","issues_url":"https://api.github.com/repos/trezor/trezord-go/issues{/number}","pulls_url":"https://api.github.com/repos/trezor/trezord-go/pulls{/number}","milestones_url":"https://api.github.com/repos/trezor/trezord-go/milestones{/number}","notifications_url":"https://api.github.com/repos/trezor/trezord-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trezor/trezord-go/labels{/name}","releases_url":"https://api.github.com/repos/trezor/trezord-go/releases{/id}","deployments_url":"https://api.github.com/repos/trezor/trezord-go/deployments","created_at":"2018-01-29T11:58:17Z","updated_at":"2018-07-17T14:46:16Z","pushed_at":"2018-07-25T12:38:58Z","git_url":"git://github.com/trezor/trezord-go.git","ssh_url":"git@github.com:trezor/trezord-go.git","clone_url":"https://github.com/trezor/trezord-go.git","svn_url":"https://github.com/trezor/trezord-go","homepage":"","size":5945,"stargazers_count":77,"watchers_count":77,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":24,"open_issues":10,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/trezor/trezord-go/pulls/70"},"html":{"href":"https://github.com/trezor/trezord-go/pull/70"},"issue":{"href":"https://api.github.com/repos/trezor/trezord-go/issues/70"},"comments":{"href":"https://api.github.com/repos/trezor/trezord-go/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/trezor/trezord-go/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/trezor/trezord-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trezor/trezord-go/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/trezor/trezord-go/statuses/9f1f1af991423496540993c5e1793aaa3b540557"}},"author_association":"NONE"}}
{"actor":{"display_login":"prusnak"}}