{"action":"opened","number":148,"pull_request":{"url":"https://api.github.com/repos/resin-io/resin-sdk/pulls/148","id":48099050,"html_url":"https://github.com/resin-io/resin-sdk/pull/148","diff_url":"https://github.com/resin-io/resin-sdk/pull/148.diff","patch_url":"https://github.com/resin-io/resin-sdk/pull/148.patch","issue_url":"https://api.github.com/repos/resin-io/resin-sdk/issues/148","number":148,"state":"open","locked":false,"title":"Support searching a device type slug by a slug","user":{"login":"jviotti","id":2192773,"avatar_url":"https://avatars.githubusercontent.com/u/2192773?v=3","gravatar_id":"","url":"https://api.github.com/users/jviotti","html_url":"https://github.com/jviotti","followers_url":"https://api.github.com/users/jviotti/followers","following_url":"https://api.github.com/users/jviotti/following{/other_user}","gists_url":"https://api.github.com/users/jviotti/gists{/gist_id}","starred_url":"https://api.github.com/users/jviotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jviotti/subscriptions","organizations_url":"https://api.github.com/users/jviotti/orgs","repos_url":"https://api.github.com/users/jviotti/repos","events_url":"https://api.github.com/users/jviotti/events{/privacy}","received_events_url":"https://api.github.com/users/jviotti/received_events","type":"User","site_admin":false},"body":"Passing a slug to `resin.models.device.getDeviceSlug()` returns\nundefined. A more natural behaviour would be to return the same slug if it is already recognised.","created_at":"2015-10-19T17:06:49Z","updated_at":"2015-10-19T17:06:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/resin-io/resin-sdk/pulls/148/commits","review_comments_url":"https://api.github.com/repos/resin-io/resin-sdk/pulls/148/comments","review_comment_url":"https://api.github.com/repos/resin-io/resin-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/resin-io/resin-sdk/issues/148/comments","statuses_url":"https://api.github.com/repos/resin-io/resin-sdk/statuses/fce698fb8be9bc4363064e28a6c2a45852298839","head":{"label":"resin-io:jviotti/fix/device-slug-by-slug","ref":"jviotti/fix/device-slug-by-slug","sha":"fce698fb8be9bc4363064e28a6c2a45852298839","user":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"repo":{"id":29677279,"name":"resin-sdk","full_name":"resin-io/resin-sdk","owner":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io/resin-sdk","description":"The SDK to make Resin.io powered JavaScript applications.","fork":false,"url":"https://api.github.com/repos/resin-io/resin-sdk","forks_url":"https://api.github.com/repos/resin-io/resin-sdk/forks","keys_url":"https://api.github.com/repos/resin-io/resin-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io/resin-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io/resin-sdk/teams","hooks_url":"https://api.github.com/repos/resin-io/resin-sdk/hooks","issue_events_url":"https://api.github.com/repos/resin-io/resin-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io/resin-sdk/events","assignees_url":"https://api.github.com/repos/resin-io/resin-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io/resin-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io/resin-sdk/tags","blobs_url":"https://api.github.com/repos/resin-io/resin-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io/resin-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io/resin-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io/resin-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io/resin-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io/resin-sdk/languages","stargazers_url":"https://api.github.com/repos/resin-io/resin-sdk/stargazers","contributors_url":"https://api.github.com/repos/resin-io/resin-sdk/contributors","subscribers_url":"https://api.github.com/repos/resin-io/resin-sdk/subscribers","subscription_url":"https://api.github.com/repos/resin-io/resin-sdk/subscription","commits_url":"https://api.github.com/repos/resin-io/resin-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io/resin-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io/resin-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io/resin-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io/resin-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io/resin-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io/resin-sdk/merges","archive_url":"https://api.github.com/repos/resin-io/resin-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io/resin-sdk/downloads","issues_url":"https://api.github.com/repos/resin-io/resin-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io/resin-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io/resin-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io/resin-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io/resin-sdk/labels{/name}","releases_url":"https://api.github.com/repos/resin-io/resin-sdk/releases{/id}","created_at":"2015-01-22T12:15:25Z","updated_at":"2015-10-13T09:51:34Z","pushed_at":"2015-10-19T17:06:47Z","git_url":"git://github.com/resin-io/resin-sdk.git","ssh_url":"git@github.com:resin-io/resin-sdk.git","clone_url":"https://github.com/resin-io/resin-sdk.git","svn_url":"https://github.com/resin-io/resin-sdk","homepage":"https://resin.io","size":2847,"stargazers_count":14,"watchers_count":14,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":14,"default_branch":"master"}},"base":{"label":"resin-io:master","ref":"master","sha":"a40e563a4659400492b89aff281a4618cac61440","user":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"repo":{"id":29677279,"name":"resin-sdk","full_name":"resin-io/resin-sdk","owner":{"login":"resin-io","id":6157842,"avatar_url":"https://avatars.githubusercontent.com/u/6157842?v=3","gravatar_id":"","url":"https://api.github.com/users/resin-io","html_url":"https://github.com/resin-io","followers_url":"https://api.github.com/users/resin-io/followers","following_url":"https://api.github.com/users/resin-io/following{/other_user}","gists_url":"https://api.github.com/users/resin-io/gists{/gist_id}","starred_url":"https://api.github.com/users/resin-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resin-io/subscriptions","organizations_url":"https://api.github.com/users/resin-io/orgs","repos_url":"https://api.github.com/users/resin-io/repos","events_url":"https://api.github.com/users/resin-io/events{/privacy}","received_events_url":"https://api.github.com/users/resin-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/resin-io/resin-sdk","description":"The SDK to make Resin.io powered JavaScript applications.","fork":false,"url":"https://api.github.com/repos/resin-io/resin-sdk","forks_url":"https://api.github.com/repos/resin-io/resin-sdk/forks","keys_url":"https://api.github.com/repos/resin-io/resin-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resin-io/resin-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resin-io/resin-sdk/teams","hooks_url":"https://api.github.com/repos/resin-io/resin-sdk/hooks","issue_events_url":"https://api.github.com/repos/resin-io/resin-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/resin-io/resin-sdk/events","assignees_url":"https://api.github.com/repos/resin-io/resin-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/resin-io/resin-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/resin-io/resin-sdk/tags","blobs_url":"https://api.github.com/repos/resin-io/resin-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resin-io/resin-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resin-io/resin-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/resin-io/resin-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resin-io/resin-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/resin-io/resin-sdk/languages","stargazers_url":"https://api.github.com/repos/resin-io/resin-sdk/stargazers","contributors_url":"https://api.github.com/repos/resin-io/resin-sdk/contributors","subscribers_url":"https://api.github.com/repos/resin-io/resin-sdk/subscribers","subscription_url":"https://api.github.com/repos/resin-io/resin-sdk/subscription","commits_url":"https://api.github.com/repos/resin-io/resin-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/resin-io/resin-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/resin-io/resin-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/resin-io/resin-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/resin-io/resin-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/resin-io/resin-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resin-io/resin-sdk/merges","archive_url":"https://api.github.com/repos/resin-io/resin-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resin-io/resin-sdk/downloads","issues_url":"https://api.github.com/repos/resin-io/resin-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/resin-io/resin-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/resin-io/resin-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/resin-io/resin-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resin-io/resin-sdk/labels{/name}","releases_url":"https://api.github.com/repos/resin-io/resin-sdk/releases{/id}","created_at":"2015-01-22T12:15:25Z","updated_at":"2015-10-13T09:51:34Z","pushed_at":"2015-10-19T17:06:47Z","git_url":"git://github.com/resin-io/resin-sdk.git","ssh_url":"git@github.com:resin-io/resin-sdk.git","clone_url":"https://github.com/resin-io/resin-sdk.git","svn_url":"https://github.com/resin-io/resin-sdk","homepage":"https://resin.io","size":2847,"stargazers_count":14,"watchers_count":14,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/resin-io/resin-sdk/pulls/148"},"html":{"href":"https://github.com/resin-io/resin-sdk/pull/148"},"issue":{"href":"https://api.github.com/repos/resin-io/resin-sdk/issues/148"},"comments":{"href":"https://api.github.com/repos/resin-io/resin-sdk/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/resin-io/resin-sdk/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/resin-io/resin-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/resin-io/resin-sdk/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/resin-io/resin-sdk/statuses/fce698fb8be9bc4363064e28a6c2a45852298839"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":3,"changed_files":3}}