{"action":"opened","number":182,"pull_request":{"url":"https://api.github.com/repos/openthread/borderrouter/pulls/182","id":211593932,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExNTkzOTMy","html_url":"https://github.com/openthread/borderrouter/pull/182","diff_url":"https://github.com/openthread/borderrouter/pull/182.diff","patch_url":"https://github.com/openthread/borderrouter/pull/182.patch","issue_url":"https://api.github.com/repos/openthread/borderrouter/issues/182","number":182,"state":"open","locked":false,"title":"[code] clean up code","user":{"login":"bukepo","id":2240212,"node_id":"MDQ6VXNlcjIyNDAyMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/2240212?v=4","gravatar_id":"","url":"https://api.github.com/users/bukepo","html_url":"https://github.com/bukepo","followers_url":"https://api.github.com/users/bukepo/followers","following_url":"https://api.github.com/users/bukepo/following{/other_user}","gists_url":"https://api.github.com/users/bukepo/gists{/gist_id}","starred_url":"https://api.github.com/users/bukepo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bukepo/subscriptions","organizations_url":"https://api.github.com/users/bukepo/orgs","repos_url":"https://api.github.com/users/bukepo/repos","events_url":"https://api.github.com/users/bukepo/events{/privacy}","received_events_url":"https://api.github.com/users/bukepo/received_events","type":"User","site_admin":false},"body":"* set mbedtls logging level according to otbr log level\r\n* remove duplicated code\r\n* add additional calls to improve code coverage","created_at":"2018-08-29T00:16:08Z","updated_at":"2018-08-29T00:16:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":616141400,"node_id":"MDU6TGFiZWw2MTYxNDE0MDA=","url":"https://api.github.com/repos/openthread/borderrouter/labels/P4","name":"P4","color":"AFDF00","default":false},{"id":602296566,"node_id":"MDU6TGFiZWw2MDIyOTY1NjY=","url":"https://api.github.com/repos/openthread/borderrouter/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/openthread/borderrouter/pulls/182/commits","review_comments_url":"https://api.github.com/repos/openthread/borderrouter/pulls/182/comments","review_comment_url":"https://api.github.com/repos/openthread/borderrouter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openthread/borderrouter/issues/182/comments","statuses_url":"https://api.github.com/repos/openthread/borderrouter/statuses/ee639f95462520b235e5ba84dfd5a4d75bd924b6","head":{"label":"bukepo:cleanup-code","ref":"cleanup-code","sha":"ee639f95462520b235e5ba84dfd5a4d75bd924b6","user":{"login":"bukepo","id":2240212,"node_id":"MDQ6VXNlcjIyNDAyMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/2240212?v=4","gravatar_id":"","url":"https://api.github.com/users/bukepo","html_url":"https://github.com/bukepo","followers_url":"https://api.github.com/users/bukepo/followers","following_url":"https://api.github.com/users/bukepo/following{/other_user}","gists_url":"https://api.github.com/users/bukepo/gists{/gist_id}","starred_url":"https://api.github.com/users/bukepo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bukepo/subscriptions","organizations_url":"https://api.github.com/users/bukepo/orgs","repos_url":"https://api.github.com/users/bukepo/repos","events_url":"https://api.github.com/users/bukepo/events{/privacy}","received_events_url":"https://api.github.com/users/bukepo/received_events","type":"User","site_admin":false},"repo":{"id":92851372,"node_id":"MDEwOlJlcG9zaXRvcnk5Mjg1MTM3Mg==","name":"borderrouter","full_name":"bukepo/borderrouter","owner":{"login":"bukepo","id":2240212,"node_id":"MDQ6VXNlcjIyNDAyMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/2240212?v=4","gravatar_id":"","url":"https://api.github.com/users/bukepo","html_url":"https://github.com/bukepo","followers_url":"https://api.github.com/users/bukepo/followers","following_url":"https://api.github.com/users/bukepo/following{/other_user}","gists_url":"https://api.github.com/users/bukepo/gists{/gist_id}","starred_url":"https://api.github.com/users/bukepo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bukepo/subscriptions","organizations_url":"https://api.github.com/users/bukepo/orgs","repos_url":"https://api.github.com/users/bukepo/repos","events_url":"https://api.github.com/users/bukepo/events{/privacy}","received_events_url":"https://api.github.com/users/bukepo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bukepo/borderrouter","description":null,"fork":true,"url":"https://api.github.com/repos/bukepo/borderrouter","forks_url":"https://api.github.com/repos/bukepo/borderrouter/forks","keys_url":"https://api.github.com/repos/bukepo/borderrouter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bukepo/borderrouter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bukepo/borderrouter/teams","hooks_url":"https://api.github.com/repos/bukepo/borderrouter/hooks","issue_events_url":"https://api.github.com/repos/bukepo/borderrouter/issues/events{/number}","events_url":"https://api.github.com/repos/bukepo/borderrouter/events","assignees_url":"https://api.github.com/repos/bukepo/borderrouter/assignees{/user}","branches_url":"https://api.github.com/repos/bukepo/borderrouter/branches{/branch}","tags_url":"https://api.github.com/repos/bukepo/borderrouter/tags","blobs_url":"https://api.github.com/repos/bukepo/borderrouter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bukepo/borderrouter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bukepo/borderrouter/git/refs{/sha}","trees_url":"https://api.github.com/repos/bukepo/borderrouter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bukepo/borderrouter/statuses/{sha}","languages_url":"https://api.github.com/repos/bukepo/borderrouter/languages","stargazers_url":"https://api.github.com/repos/bukepo/borderrouter/stargazers","contributors_url":"https://api.github.com/repos/bukepo/borderrouter/contributors","subscribers_url":"https://api.github.com/repos/bukepo/borderrouter/subscribers","subscription_url":"https://api.github.com/repos/bukepo/borderrouter/subscription","commits_url":"https://api.github.com/repos/bukepo/borderrouter/commits{/sha}","git_commits_url":"https://api.github.com/repos/bukepo/borderrouter/git/commits{/sha}","comments_url":"https://api.github.com/repos/bukepo/borderrouter/comments{/number}","issue_comment_url":"https://api.github.com/repos/bukepo/borderrouter/issues/comments{/number}","contents_url":"https://api.github.com/repos/bukepo/borderrouter/contents/{+path}","compare_url":"https://api.github.com/repos/bukepo/borderrouter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bukepo/borderrouter/merges","archive_url":"https://api.github.com/repos/bukepo/borderrouter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bukepo/borderrouter/downloads","issues_url":"https://api.github.com/repos/bukepo/borderrouter/issues{/number}","pulls_url":"https://api.github.com/repos/bukepo/borderrouter/pulls{/number}","milestones_url":"https://api.github.com/repos/bukepo/borderrouter/milestones{/number}","notifications_url":"https://api.github.com/repos/bukepo/borderrouter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bukepo/borderrouter/labels{/name}","releases_url":"https://api.github.com/repos/bukepo/borderrouter/releases{/id}","deployments_url":"https://api.github.com/repos/bukepo/borderrouter/deployments","created_at":"2017-05-30T16:07:49Z","updated_at":"2017-05-30T16:07:51Z","pushed_at":"2018-08-28T08:33:27Z","git_url":"git://github.com/bukepo/borderrouter.git","ssh_url":"git@github.com:bukepo/borderrouter.git","clone_url":"https://github.com/bukepo/borderrouter.git","svn_url":"https://github.com/bukepo/borderrouter","homepage":null,"size":25048,"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":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openthread:master","ref":"master","sha":"c2dd6424c38c118d950ed7e78ebe1d8d833c16c5","user":{"login":"openthread","id":16142269,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MTQyMjY5","avatar_url":"https://avatars2.githubusercontent.com/u/16142269?v=4","gravatar_id":"","url":"https://api.github.com/users/openthread","html_url":"https://github.com/openthread","followers_url":"https://api.github.com/users/openthread/followers","following_url":"https://api.github.com/users/openthread/following{/other_user}","gists_url":"https://api.github.com/users/openthread/gists{/gist_id}","starred_url":"https://api.github.com/users/openthread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openthread/subscriptions","organizations_url":"https://api.github.com/users/openthread/orgs","repos_url":"https://api.github.com/users/openthread/repos","events_url":"https://api.github.com/users/openthread/events{/privacy}","received_events_url":"https://api.github.com/users/openthread/received_events","type":"Organization","site_admin":false},"repo":{"id":90885820,"node_id":"MDEwOlJlcG9zaXRvcnk5MDg4NTgyMA==","name":"borderrouter","full_name":"openthread/borderrouter","owner":{"login":"openthread","id":16142269,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MTQyMjY5","avatar_url":"https://avatars2.githubusercontent.com/u/16142269?v=4","gravatar_id":"","url":"https://api.github.com/users/openthread","html_url":"https://github.com/openthread","followers_url":"https://api.github.com/users/openthread/followers","following_url":"https://api.github.com/users/openthread/following{/other_user}","gists_url":"https://api.github.com/users/openthread/gists{/gist_id}","starred_url":"https://api.github.com/users/openthread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openthread/subscriptions","organizations_url":"https://api.github.com/users/openthread/orgs","repos_url":"https://api.github.com/users/openthread/repos","events_url":"https://api.github.com/users/openthread/events{/privacy}","received_events_url":"https://api.github.com/users/openthread/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openthread/borderrouter","description":"An open source border router, designed to work with OpenThread","fork":false,"url":"https://api.github.com/repos/openthread/borderrouter","forks_url":"https://api.github.com/repos/openthread/borderrouter/forks","keys_url":"https://api.github.com/repos/openthread/borderrouter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openthread/borderrouter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openthread/borderrouter/teams","hooks_url":"https://api.github.com/repos/openthread/borderrouter/hooks","issue_events_url":"https://api.github.com/repos/openthread/borderrouter/issues/events{/number}","events_url":"https://api.github.com/repos/openthread/borderrouter/events","assignees_url":"https://api.github.com/repos/openthread/borderrouter/assignees{/user}","branches_url":"https://api.github.com/repos/openthread/borderrouter/branches{/branch}","tags_url":"https://api.github.com/repos/openthread/borderrouter/tags","blobs_url":"https://api.github.com/repos/openthread/borderrouter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openthread/borderrouter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openthread/borderrouter/git/refs{/sha}","trees_url":"https://api.github.com/repos/openthread/borderrouter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openthread/borderrouter/statuses/{sha}","languages_url":"https://api.github.com/repos/openthread/borderrouter/languages","stargazers_url":"https://api.github.com/repos/openthread/borderrouter/stargazers","contributors_url":"https://api.github.com/repos/openthread/borderrouter/contributors","subscribers_url":"https://api.github.com/repos/openthread/borderrouter/subscribers","subscription_url":"https://api.github.com/repos/openthread/borderrouter/subscription","commits_url":"https://api.github.com/repos/openthread/borderrouter/commits{/sha}","git_commits_url":"https://api.github.com/repos/openthread/borderrouter/git/commits{/sha}","comments_url":"https://api.github.com/repos/openthread/borderrouter/comments{/number}","issue_comment_url":"https://api.github.com/repos/openthread/borderrouter/issues/comments{/number}","contents_url":"https://api.github.com/repos/openthread/borderrouter/contents/{+path}","compare_url":"https://api.github.com/repos/openthread/borderrouter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openthread/borderrouter/merges","archive_url":"https://api.github.com/repos/openthread/borderrouter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openthread/borderrouter/downloads","issues_url":"https://api.github.com/repos/openthread/borderrouter/issues{/number}","pulls_url":"https://api.github.com/repos/openthread/borderrouter/pulls{/number}","milestones_url":"https://api.github.com/repos/openthread/borderrouter/milestones{/number}","notifications_url":"https://api.github.com/repos/openthread/borderrouter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openthread/borderrouter/labels{/name}","releases_url":"https://api.github.com/repos/openthread/borderrouter/releases{/id}","deployments_url":"https://api.github.com/repos/openthread/borderrouter/deployments","created_at":"2017-05-10T16:31:06Z","updated_at":"2018-08-28T09:30:02Z","pushed_at":"2018-08-28T10:28:23Z","git_url":"git://github.com/openthread/borderrouter.git","ssh_url":"git@github.com:openthread/borderrouter.git","clone_url":"https://github.com/openthread/borderrouter.git","svn_url":"https://github.com/openthread/borderrouter","homepage":"","size":24863,"stargazers_count":53,"watchers_count":53,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":38,"open_issues":22,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openthread/borderrouter/pulls/182"},"html":{"href":"https://github.com/openthread/borderrouter/pull/182"},"issue":{"href":"https://api.github.com/repos/openthread/borderrouter/issues/182"},"comments":{"href":"https://api.github.com/repos/openthread/borderrouter/issues/182/comments"},"review_comments":{"href":"https://api.github.com/repos/openthread/borderrouter/pulls/182/comments"},"review_comment":{"href":"https://api.github.com/repos/openthread/borderrouter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openthread/borderrouter/pulls/182/commits"},"statuses":{"href":"https://api.github.com/repos/openthread/borderrouter/statuses/ee639f95462520b235e5ba84dfd5a4d75bd924b6"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":4,"additions":79,"deletions":100,"changed_files":5}}
{"actor":{"display_login":"bukepo"}}