{"action":"opened","number":104,"pull_request":{"url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/pulls/104","id":120524000,"html_url":"https://github.com/KiiPlatform/thing-if-ThingSDK/pull/104","diff_url":"https://github.com/KiiPlatform/thing-if-ThingSDK/pull/104.diff","patch_url":"https://github.com/KiiPlatform/thing-if-ThingSDK/pull/104.patch","issue_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/issues/104","number":104,"state":"open","locked":false,"title":"Refactor length check for thing type path.","user":{"login":"shinsuke-nara","id":1961600,"avatar_url":"https://avatars0.githubusercontent.com/u/1961600?v=3","gravatar_id":"","url":"https://api.github.com/users/shinsuke-nara","html_url":"https://github.com/shinsuke-nara","followers_url":"https://api.github.com/users/shinsuke-nara/followers","following_url":"https://api.github.com/users/shinsuke-nara/following{/other_user}","gists_url":"https://api.github.com/users/shinsuke-nara/gists{/gist_id}","starred_url":"https://api.github.com/users/shinsuke-nara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinsuke-nara/subscriptions","organizations_url":"https://api.github.com/users/shinsuke-nara/orgs","repos_url":"https://api.github.com/users/shinsuke-nara/repos","events_url":"https://api.github.com/users/shinsuke-nara/events{/privacy}","received_events_url":"https://api.github.com/users/shinsuke-nara/received_events","type":"User","site_admin":false},"body":"According to our discussion on [these comments](https://github.com/KiiPlatform/thing-if-ThingSDK/pull/101/files#r116163379), I refactored length check procedure.\r\n\r\nWhat do you think about this style? If you like this style, I will refactor other length checkings in this PR.","created_at":"2017-05-15T04:42:47Z","updated_at":"2017-05-15T04:42:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/pulls/104/commits","review_comments_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/pulls/104/comments","review_comment_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/issues/104/comments","statuses_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/statuses/84828277e152b9d9d6148ebdeb689e0a3eb516db","head":{"label":"KiiPlatform:refactor-length-check","ref":"refactor-length-check","sha":"84828277e152b9d9d6148ebdeb689e0a3eb516db","user":{"login":"KiiPlatform","id":3078752,"avatar_url":"https://avatars0.githubusercontent.com/u/3078752?v=3","gravatar_id":"","url":"https://api.github.com/users/KiiPlatform","html_url":"https://github.com/KiiPlatform","followers_url":"https://api.github.com/users/KiiPlatform/followers","following_url":"https://api.github.com/users/KiiPlatform/following{/other_user}","gists_url":"https://api.github.com/users/KiiPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/KiiPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiiPlatform/subscriptions","organizations_url":"https://api.github.com/users/KiiPlatform/orgs","repos_url":"https://api.github.com/users/KiiPlatform/repos","events_url":"https://api.github.com/users/KiiPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/KiiPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":40101599,"name":"thing-if-ThingSDK","full_name":"KiiPlatform/thing-if-ThingSDK","owner":{"login":"KiiPlatform","id":3078752,"avatar_url":"https://avatars0.githubusercontent.com/u/3078752?v=3","gravatar_id":"","url":"https://api.github.com/users/KiiPlatform","html_url":"https://github.com/KiiPlatform","followers_url":"https://api.github.com/users/KiiPlatform/followers","following_url":"https://api.github.com/users/KiiPlatform/following{/other_user}","gists_url":"https://api.github.com/users/KiiPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/KiiPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiiPlatform/subscriptions","organizations_url":"https://api.github.com/users/KiiPlatform/orgs","repos_url":"https://api.github.com/users/KiiPlatform/repos","events_url":"https://api.github.com/users/KiiPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/KiiPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KiiPlatform/thing-if-ThingSDK","description":"Kii thing interaction framework sdk for embedded devices.","fork":false,"url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK","forks_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/forks","keys_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/teams","hooks_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/hooks","issue_events_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/issues/events{/number}","events_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/events","assignees_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/assignees{/user}","branches_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/branches{/branch}","tags_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/tags","blobs_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/statuses/{sha}","languages_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/languages","stargazers_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/stargazers","contributors_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/contributors","subscribers_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/subscribers","subscription_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/subscription","commits_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/contents/{+path}","compare_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/merges","archive_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/downloads","issues_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/issues{/number}","pulls_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/pulls{/number}","milestones_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/milestones{/number}","notifications_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/labels{/name}","releases_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/releases{/id}","deployments_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/deployments","created_at":"2015-08-03T02:38:55Z","updated_at":"2016-11-30T08:02:15Z","pushed_at":"2017-05-15T04:39:35Z","git_url":"git://github.com/KiiPlatform/thing-if-ThingSDK.git","ssh_url":"git@github.com:KiiPlatform/thing-if-ThingSDK.git","clone_url":"https://github.com/KiiPlatform/thing-if-ThingSDK.git","svn_url":"https://github.com/KiiPlatform/thing-if-ThingSDK","homepage":"http://kiiplatform.github.io/thing-if-ThingSDK/","size":2182,"stargazers_count":2,"watchers_count":2,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":2,"default_branch":"master"}},"base":{"label":"KiiPlatform:update-thing-type","ref":"update-thing-type","sha":"2bca9bd98641b6ebaf61733c9e25259a4ae7fe66","user":{"login":"KiiPlatform","id":3078752,"avatar_url":"https://avatars0.githubusercontent.com/u/3078752?v=3","gravatar_id":"","url":"https://api.github.com/users/KiiPlatform","html_url":"https://github.com/KiiPlatform","followers_url":"https://api.github.com/users/KiiPlatform/followers","following_url":"https://api.github.com/users/KiiPlatform/following{/other_user}","gists_url":"https://api.github.com/users/KiiPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/KiiPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiiPlatform/subscriptions","organizations_url":"https://api.github.com/users/KiiPlatform/orgs","repos_url":"https://api.github.com/users/KiiPlatform/repos","events_url":"https://api.github.com/users/KiiPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/KiiPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":40101599,"name":"thing-if-ThingSDK","full_name":"KiiPlatform/thing-if-ThingSDK","owner":{"login":"KiiPlatform","id":3078752,"avatar_url":"https://avatars0.githubusercontent.com/u/3078752?v=3","gravatar_id":"","url":"https://api.github.com/users/KiiPlatform","html_url":"https://github.com/KiiPlatform","followers_url":"https://api.github.com/users/KiiPlatform/followers","following_url":"https://api.github.com/users/KiiPlatform/following{/other_user}","gists_url":"https://api.github.com/users/KiiPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/KiiPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiiPlatform/subscriptions","organizations_url":"https://api.github.com/users/KiiPlatform/orgs","repos_url":"https://api.github.com/users/KiiPlatform/repos","events_url":"https://api.github.com/users/KiiPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/KiiPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KiiPlatform/thing-if-ThingSDK","description":"Kii thing interaction framework sdk for embedded devices.","fork":false,"url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK","forks_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/forks","keys_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/teams","hooks_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/hooks","issue_events_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/issues/events{/number}","events_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/events","assignees_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/assignees{/user}","branches_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/branches{/branch}","tags_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/tags","blobs_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/statuses/{sha}","languages_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/languages","stargazers_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/stargazers","contributors_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/contributors","subscribers_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/subscribers","subscription_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/subscription","commits_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/contents/{+path}","compare_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/merges","archive_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/downloads","issues_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/issues{/number}","pulls_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/pulls{/number}","milestones_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/milestones{/number}","notifications_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/labels{/name}","releases_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/releases{/id}","deployments_url":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/deployments","created_at":"2015-08-03T02:38:55Z","updated_at":"2016-11-30T08:02:15Z","pushed_at":"2017-05-15T04:39:35Z","git_url":"git://github.com/KiiPlatform/thing-if-ThingSDK.git","ssh_url":"git@github.com:KiiPlatform/thing-if-ThingSDK.git","clone_url":"https://github.com/KiiPlatform/thing-if-ThingSDK.git","svn_url":"https://github.com/KiiPlatform/thing-if-ThingSDK","homepage":"http://kiiplatform.github.io/thing-if-ThingSDK/","size":2182,"stargazers_count":2,"watchers_count":2,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/pulls/104"},"html":{"href":"https://github.com/KiiPlatform/thing-if-ThingSDK/pull/104"},"issue":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/issues/104"},"comments":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/KiiPlatform/thing-if-ThingSDK/statuses/84828277e152b9d9d6148ebdeb689e0a3eb516db"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":7,"deletions":5,"changed_files":1}}
{"actor":{"display_login":"shinsuke-nara"}}