payload: {"action":"created","comment":{"url":"https://api.github.com/repos/vishvananda/netlink/pulls/comments/278919620","pull_request_review_id":231119625,"id":278919620,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3ODkxOTYyMA==","diff_hunk":"@@ -405,6 +406,43 @@ func (ipvlan *IPVlan) Type() string {\n \treturn \"ipvlan\"\n }\n \n+// VlanProtocol type\n+type VlanProtocol int\n+\n+func (p VlanProtocol) String() string {\n+\ts, ok := VlanProtocolToString[p]\n+\tif !ok {\n+\t\treturn fmt.Sprintf(\"VlanProtocol(%d)\", p)\n+\t}\n+\treturn s\n+}\n+\n+// StringToVlanProtocol returns vlan protocol, or uknonw is the s is invalid.","path":"link.go","position":25,"original_position":25,"commit_id":"fa5b4b796917fc84b18e035389eab30ae441eaca","original_commit_id":"fa5b4b796917fc84b18e035389eab30ae441eaca","user":{"login":"jellonek","id":658436,"node_id":"MDQ6VXNlcjY1ODQzNg==","avatar_url":"https://avatars3.githubusercontent.com/u/658436?v=4","gravatar_id":"","url":"https://api.github.com/users/jellonek","html_url":"https://github.com/jellonek","followers_url":"https://api.github.com/users/jellonek/followers","following_url":"https://api.github.com/users/jellonek/following{/other_user}","gists_url":"https://api.github.com/users/jellonek/gists{/gist_id}","starred_url":"https://api.github.com/users/jellonek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jellonek/subscriptions","organizations_url":"https://api.github.com/users/jellonek/orgs","repos_url":"https://api.github.com/users/jellonek/repos","events_url":"https://api.github.com/users/jellonek/events{/privacy}","received_events_url":"https://api.github.com/users/jellonek/received_events","type":"User","site_admin":false},"body":"Typo: unknown","created_at":"2019-04-26T12:06:09Z","updated_at":"2019-04-26T12:08:24Z","html_url":"https://github.com/vishvananda/netlink/pull/437#discussion_r278919620","pull_request_url":"https://api.github.com/repos/vishvananda/netlink/pulls/437","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/vishvananda/netlink/pulls/comments/278919620"},"html":{"href":"https://github.com/vishvananda/netlink/pull/437#discussion_r278919620"},"pull_request":{"href":"https://api.github.com/repos/vishvananda/netlink/pulls/437"}}},"pull_request":{"url":"https://api.github.com/repos/vishvananda/netlink/pulls/437","id":268089082,"node_id":"MDExOlB1bGxSZXF1ZXN0MjY4MDg5MDgy","html_url":"https://github.com/vishvananda/netlink/pull/437","diff_url":"https://github.com/vishvananda/netlink/pull/437.diff","patch_url":"https://github.com/vishvananda/netlink/pull/437.patch","issue_url":"https://api.github.com/repos/vishvananda/netlink/issues/437","number":437,"state":"open","locked":false,"title":"Support vlan protocol","user":{"login":"soyking","id":3882738,"node_id":"MDQ6VXNlcjM4ODI3Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3882738?v=4","gravatar_id":"","url":"https://api.github.com/users/soyking","html_url":"https://github.com/soyking","followers_url":"https://api.github.com/users/soyking/followers","following_url":"https://api.github.com/users/soyking/following{/other_user}","gists_url":"https://api.github.com/users/soyking/gists{/gist_id}","starred_url":"https://api.github.com/users/soyking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soyking/subscriptions","organizations_url":"https://api.github.com/users/soyking/orgs","repos_url":"https://api.github.com/users/soyking/repos","events_url":"https://api.github.com/users/soyking/events{/privacy}","received_events_url":"https://api.github.com/users/soyking/received_events","type":"User","site_admin":false},"body":"Support get vlan with protocol and create vlan with protocol, see #429 \r\n\r\nReference: \r\n- https://elixir.bootlin.com/linux/v4.4/source/net/8021q/vlan_netlink.c#L57\r\n- https://elixir.bootlin.com/linux/v4.4/source/include/uapi/linux/if_ether.h#L65","created_at":"2019-04-07T08:07:02Z","updated_at":"2019-04-26T12:08:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d822c52347521b67d1827e857c0bca3620d57925","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vishvananda/netlink/pulls/437/commits","review_comments_url":"https://api.github.com/repos/vishvananda/netlink/pulls/437/comments","review_comment_url":"https://api.github.com/repos/vishvananda/netlink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vishvananda/netlink/issues/437/comments","statuses_url":"https://api.github.com/repos/vishvananda/netlink/statuses/fa5b4b796917fc84b18e035389eab30ae441eaca","head":{"label":"soyking:add_vlan_protocol","ref":"add_vlan_protocol","sha":"fa5b4b796917fc84b18e035389eab30ae441eaca","user":{"login":"soyking","id":3882738,"node_id":"MDQ6VXNlcjM4ODI3Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3882738?v=4","gravatar_id":"","url":"https://api.github.com/users/soyking","html_url":"https://github.com/soyking","followers_url":"https://api.github.com/users/soyking/followers","following_url":"https://api.github.com/users/soyking/following{/other_user}","gists_url":"https://api.github.com/users/soyking/gists{/gist_id}","starred_url":"https://api.github.com/users/soyking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soyking/subscriptions","organizations_url":"https://api.github.com/users/soyking/orgs","repos_url":"https://api.github.com/users/soyking/repos","events_url":"https://api.github.com/users/soyking/events{/privacy}","received_events_url":"https://api.github.com/users/soyking/received_events","type":"User","site_admin":false},"repo":{"id":179925222,"node_id":"MDEwOlJlcG9zaXRvcnkxNzk5MjUyMjI=","name":"netlink","full_name":"soyking/netlink","private":false,"owner":{"login":"soyking","id":3882738,"node_id":"MDQ6VXNlcjM4ODI3Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3882738?v=4","gravatar_id":"","url":"https://api.github.com/users/soyking","html_url":"https://github.com/soyking","followers_url":"https://api.github.com/users/soyking/followers","following_url":"https://api.github.com/users/soyking/following{/other_user}","gists_url":"https://api.github.com/users/soyking/gists{/gist_id}","starred_url":"https://api.github.com/users/soyking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soyking/subscriptions","organizations_url":"https://api.github.com/users/soyking/orgs","repos_url":"https://api.github.com/users/soyking/repos","events_url":"https://api.github.com/users/soyking/events{/privacy}","received_events_url":"https://api.github.com/users/soyking/received_events","type":"User","site_admin":false},"html_url":"https://github.com/soyking/netlink","description":"Simple netlink library for go.","fork":true,"url":"https://api.github.com/repos/soyking/netlink","forks_url":"https://api.github.com/repos/soyking/netlink/forks","keys_url":"https://api.github.com/repos/soyking/netlink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soyking/netlink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soyking/netlink/teams","hooks_url":"https://api.github.com/repos/soyking/netlink/hooks","issue_events_url":"https://api.github.com/repos/soyking/netlink/issues/events{/number}","events_url":"https://api.github.com/repos/soyking/netlink/events","assignees_url":"https://api.github.com/repos/soyking/netlink/assignees{/user}","branches_url":"https://api.github.com/repos/soyking/netlink/branches{/branch}","tags_url":"https://api.github.com/repos/soyking/netlink/tags","blobs_url":"https://api.github.com/repos/soyking/netlink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soyking/netlink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soyking/netlink/git/refs{/sha}","trees_url":"https://api.github.com/repos/soyking/netlink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soyking/netlink/statuses/{sha}","languages_url":"https://api.github.com/repos/soyking/netlink/languages","stargazers_url":"https://api.github.com/repos/soyking/netlink/stargazers","contributors_url":"https://api.github.com/repos/soyking/netlink/contributors","subscribers_url":"https://api.github.com/repos/soyking/netlink/subscribers","subscription_url":"https://api.github.com/repos/soyking/netlink/subscription","commits_url":"https://api.github.com/repos/soyking/netlink/commits{/sha}","git_commits_url":"https://api.github.com/repos/soyking/netlink/git/commits{/sha}","comments_url":"https://api.github.com/repos/soyking/netlink/comments{/number}","issue_comment_url":"https://api.github.com/repos/soyking/netlink/issues/comments{/number}","contents_url":"https://api.github.com/repos/soyking/netlink/contents/{+path}","compare_url":"https://api.github.com/repos/soyking/netlink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soyking/netlink/merges","archive_url":"https://api.github.com/repos/soyking/netlink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soyking/netlink/downloads","issues_url":"https://api.github.com/repos/soyking/netlink/issues{/number}","pulls_url":"https://api.github.com/repos/soyking/netlink/pulls{/number}","milestones_url":"https://api.github.com/repos/soyking/netlink/milestones{/number}","notifications_url":"https://api.github.com/repos/soyking/netlink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soyking/netlink/labels{/name}","releases_url":"https://api.github.com/repos/soyking/netlink/releases{/id}","deployments_url":"https://api.github.com/repos/soyking/netlink/deployments","created_at":"2019-04-07T06:10:24Z","updated_at":"2019-04-07T06:10:26Z","pushed_at":"2019-04-07T08:02:12Z","git_url":"git://github.com/soyking/netlink.git","ssh_url":"git@github.com:soyking/netlink.git","clone_url":"https://github.com/soyking/netlink.git","svn_url":"https://github.com/soyking/netlink","homepage":null,"size":898,"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":"vishvananda:master","ref":"master","sha":"f504738125a57f35f87fc30fb69b8df75237ccde","user":{"login":"vishvananda","id":142222,"node_id":"MDQ6VXNlcjE0MjIyMg==","avatar_url":"https://avatars2.githubusercontent.com/u/142222?v=4","gravatar_id":"","url":"https://api.github.com/users/vishvananda","html_url":"https://github.com/vishvananda","followers_url":"https://api.github.com/users/vishvananda/followers","following_url":"https://api.github.com/users/vishvananda/following{/other_user}","gists_url":"https://api.github.com/users/vishvananda/gists{/gist_id}","starred_url":"https://api.github.com/users/vishvananda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishvananda/subscriptions","organizations_url":"https://api.github.com/users/vishvananda/orgs","repos_url":"https://api.github.com/users/vishvananda/repos","events_url":"https://api.github.com/users/vishvananda/events{/privacy}","received_events_url":"https://api.github.com/users/vishvananda/received_events","type":"User","site_admin":false},"repo":{"id":23529571,"node_id":"MDEwOlJlcG9zaXRvcnkyMzUyOTU3MQ==","name":"netlink","full_name":"vishvananda/netlink","private":false,"owner":{"login":"vishvananda","id":142222,"node_id":"MDQ6VXNlcjE0MjIyMg==","avatar_url":"https://avatars2.githubusercontent.com/u/142222?v=4","gravatar_id":"","url":"https://api.github.com/users/vishvananda","html_url":"https://github.com/vishvananda","followers_url":"https://api.github.com/users/vishvananda/followers","following_url":"https://api.github.com/users/vishvananda/following{/other_user}","gists_url":"https://api.github.com/users/vishvananda/gists{/gist_id}","starred_url":"https://api.github.com/users/vishvananda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishvananda/subscriptions","organizations_url":"https://api.github.com/users/vishvananda/orgs","repos_url":"https://api.github.com/users/vishvananda/repos","events_url":"https://api.github.com/users/vishvananda/events{/privacy}","received_events_url":"https://api.github.com/users/vishvananda/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vishvananda/netlink","description":"Simple netlink library for go.","fork":false,"url":"https://api.github.com/repos/vishvananda/netlink","forks_url":"https://api.github.com/repos/vishvananda/netlink/forks","keys_url":"https://api.github.com/repos/vishvananda/netlink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vishvananda/netlink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vishvananda/netlink/teams","hooks_url":"https://api.github.com/repos/vishvananda/netlink/hooks","issue_events_url":"https://api.github.com/repos/vishvananda/netlink/issues/events{/number}","events_url":"https://api.github.com/repos/vishvananda/netlink/events","assignees_url":"https://api.github.com/repos/vishvananda/netlink/assignees{/user}","branches_url":"https://api.github.com/repos/vishvananda/netlink/branches{/branch}","tags_url":"https://api.github.com/repos/vishvananda/netlink/tags","blobs_url":"https://api.github.com/repos/vishvananda/netlink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vishvananda/netlink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vishvananda/netlink/git/refs{/sha}","trees_url":"https://api.github.com/repos/vishvananda/netlink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vishvananda/netlink/statuses/{sha}","languages_url":"https://api.github.com/repos/vishvananda/netlink/languages","stargazers_url":"https://api.github.com/repos/vishvananda/netlink/stargazers","contributors_url":"https://api.github.com/repos/vishvananda/netlink/contributors","subscribers_url":"https://api.github.com/repos/vishvananda/netlink/subscribers","subscription_url":"https://api.github.com/repos/vishvananda/netlink/subscription","commits_url":"https://api.github.com/repos/vishvananda/netlink/commits{/sha}","git_commits_url":"https://api.github.com/repos/vishvananda/netlink/git/commits{/sha}","comments_url":"https://api.github.com/repos/vishvananda/netlink/comments{/number}","issue_comment_url":"https://api.github.com/repos/vishvananda/netlink/issues/comments{/number}","contents_url":"https://api.github.com/repos/vishvananda/netlink/contents/{+path}","compare_url":"https://api.github.com/repos/vishvananda/netlink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vishvananda/netlink/merges","archive_url":"https://api.github.com/repos/vishvananda/netlink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vishvananda/netlink/downloads","issues_url":"https://api.github.com/repos/vishvananda/netlink/issues{/number}","pulls_url":"https://api.github.com/repos/vishvananda/netlink/pulls{/number}","milestones_url":"https://api.github.com/repos/vishvananda/netlink/milestones{/number}","notifications_url":"https://api.github.com/repos/vishvananda/netlink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vishvananda/netlink/labels{/name}","releases_url":"https://api.github.com/repos/vishvananda/netlink/releases{/id}","deployments_url":"https://api.github.com/repos/vishvananda/netlink/deployments","created_at":"2014-09-01T03:28:37Z","updated_at":"2019-04-26T09:13:08Z","pushed_at":"2019-04-18T04:34:39Z","git_url":"git://github.com/vishvananda/netlink.git","ssh_url":"git@github.com:vishvananda/netlink.git","clone_url":"https://github.com/vishvananda/netlink.git","svn_url":"https://github.com/vishvananda/netlink","homepage":null,"size":900,"stargazers_count":784,"watchers_count":784,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":287,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":62,"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":287,"open_issues":62,"watchers":784,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vishvananda/netlink/pulls/437"},"html":{"href":"https://github.com/vishvananda/netlink/pull/437"},"issue":{"href":"https://api.github.com/repos/vishvananda/netlink/issues/437"},"comments":{"href":"https://api.github.com/repos/vishvananda/netlink/issues/437/comments"},"review_comments":{"href":"https://api.github.com/repos/vishvananda/netlink/pulls/437/comments"},"review_comment":{"href":"https://api.github.com/repos/vishvananda/netlink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vishvananda/netlink/pulls/437/commits"},"statuses":{"href":"https://api.github.com/repos/vishvananda/netlink/statuses/fa5b4b796917fc84b18e035389eab30ae441eaca"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"jellonek"}}