{"action":"created","comment":{"url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/comments/37095664","id":37095664,"diff_hunk":"@@ -0,0 +1,151 @@\n+/**\n+ *  SLEEPsense-fall asleep\n+ *\n+ *  Copyright 2015 Samsung Mobileapp\n+ *\n+ *  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except\n+ *  in compliance with the License. You may obtain a copy of the License at:\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ *  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed\n+ *  on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License\n+ *  for the specific language governing permissions and limitations under the License.\n+ *\n+ */\n+definition(\n+    name: \"SLEEPsense-fall asleep\",\n+    namespace: \"samsung\",\n+    author: \"Samsung Mobileapp\",\n+    description: \"When you fall asleep, do this.\",\n+    category: \"My Apps\",\n+    iconUrl: \"https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png\",\n+    iconX2Url: \"https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png\",\n+    iconX3Url: \"https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png\")","path":"smartapps/samsung/sleepsense-fall-asleep.src/sleepsense-fall-asleep.groovy","position":24,"original_position":24,"commit_id":"addc7ccc4170ff3ff6817e4f7d5efb1f187b16c1","original_commit_id":"addc7ccc4170ff3ff6817e4f7d5efb1f187b16c1","user":{"login":"kris-schaller","id":5333357,"avatar_url":"https://avatars.githubusercontent.com/u/5333357?v=3","gravatar_id":"","url":"https://api.github.com/users/kris-schaller","html_url":"https://github.com/kris-schaller","followers_url":"https://api.github.com/users/kris-schaller/followers","following_url":"https://api.github.com/users/kris-schaller/following{/other_user}","gists_url":"https://api.github.com/users/kris-schaller/gists{/gist_id}","starred_url":"https://api.github.com/users/kris-schaller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kris-schaller/subscriptions","organizations_url":"https://api.github.com/users/kris-schaller/orgs","repos_url":"https://api.github.com/users/kris-schaller/repos","events_url":"https://api.github.com/users/kris-schaller/events{/privacy}","received_events_url":"https://api.github.com/users/kris-schaller/received_events","type":"User","site_admin":false},"body":"use a different icon than the default one.","created_at":"2015-08-14T16:57:43Z","updated_at":"2015-08-14T16:57:43Z","html_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/20#discussion_r37095664","pull_request_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/comments/37095664"},"html":{"href":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/20#discussion_r37095664"},"pull_request":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/20","id":42344184,"html_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/20","diff_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/20.diff","patch_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/20.patch","issue_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/20","number":20,"state":"closed","locked":false,"title":"MSA-28: I request one menu app and five automation app registrations.","user":{"login":"SmartThings","id":11654461,"avatar_url":"https://avatars.githubusercontent.com/u/11654461?v=3","gravatar_id":"","url":"https://api.github.com/users/SmartThings","html_url":"https://github.com/SmartThings","followers_url":"https://api.github.com/users/SmartThings/followers","following_url":"https://api.github.com/users/SmartThings/following{/other_user}","gists_url":"https://api.github.com/users/SmartThings/gists{/gist_id}","starred_url":"https://api.github.com/users/SmartThings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmartThings/subscriptions","organizations_url":"https://api.github.com/users/SmartThings/orgs","repos_url":"https://api.github.com/users/SmartThings/repos","events_url":"https://api.github.com/users/SmartThings/events{/privacy}","received_events_url":"https://api.github.com/users/SmartThings/received_events","type":"User","site_admin":false},"body":"Submitting 'I request one menu app and five automation app registrations.' for publication","created_at":"2015-08-13T12:24:21Z","updated_at":"2015-08-14T16:57:43Z","closed_at":"2015-08-13T17:48:22Z","merged_at":null,"merge_commit_sha":"55500df7b34639e3c1749cf1cd8c9b93f3d23871","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/20/commits","review_comments_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/20/comments","review_comment_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/20/comments","statuses_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/statuses/addc7ccc4170ff3ff6817e4f7d5efb1f187b16c1","head":{"label":"SmartThingsCommunity:MSA-28-1","ref":"MSA-28-1","sha":"addc7ccc4170ff3ff6817e4f7d5efb1f187b16c1","user":{"login":"SmartThingsCommunity","id":7317431,"avatar_url":"https://avatars.githubusercontent.com/u/7317431?v=3","gravatar_id":"","url":"https://api.github.com/users/SmartThingsCommunity","html_url":"https://github.com/SmartThingsCommunity","followers_url":"https://api.github.com/users/SmartThingsCommunity/followers","following_url":"https://api.github.com/users/SmartThingsCommunity/following{/other_user}","gists_url":"https://api.github.com/users/SmartThingsCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/SmartThingsCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmartThingsCommunity/subscriptions","organizations_url":"https://api.github.com/users/SmartThingsCommunity/orgs","repos_url":"https://api.github.com/users/SmartThingsCommunity/repos","events_url":"https://api.github.com/users/SmartThingsCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/SmartThingsCommunity/received_events","type":"Organization","site_admin":false},"repo":{"id":40212802,"name":"SmartThingsPublic","full_name":"SmartThingsCommunity/SmartThingsPublic","owner":{"login":"SmartThingsCommunity","id":7317431,"avatar_url":"https://avatars.githubusercontent.com/u/7317431?v=3","gravatar_id":"","url":"https://api.github.com/users/SmartThingsCommunity","html_url":"https://github.com/SmartThingsCommunity","followers_url":"https://api.github.com/users/SmartThingsCommunity/followers","following_url":"https://api.github.com/users/SmartThingsCommunity/following{/other_user}","gists_url":"https://api.github.com/users/SmartThingsCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/SmartThingsCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmartThingsCommunity/subscriptions","organizations_url":"https://api.github.com/users/SmartThingsCommunity/orgs","repos_url":"https://api.github.com/users/SmartThingsCommunity/repos","events_url":"https://api.github.com/users/SmartThingsCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/SmartThingsCommunity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic","description":"","fork":false,"url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic","forks_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/forks","keys_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/teams","hooks_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/hooks","issue_events_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/events{/number}","events_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/events","assignees_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/assignees{/user}","branches_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/branches{/branch}","tags_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/tags","blobs_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/refs{/sha}","trees_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/statuses/{sha}","languages_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/languages","stargazers_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/stargazers","contributors_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/contributors","subscribers_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/subscribers","subscription_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/subscription","commits_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/commits{/sha}","git_commits_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/commits{/sha}","comments_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/comments{/number}","issue_comment_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/comments{/number}","contents_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/contents/{+path}","compare_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/merges","archive_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/downloads","issues_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues{/number}","pulls_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls{/number}","milestones_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/milestones{/number}","notifications_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/labels{/name}","releases_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/releases{/id}","created_at":"2015-08-04T22:48:02Z","updated_at":"2015-08-14T16:41:42Z","pushed_at":"2015-08-13T19:00:12Z","git_url":"git://github.com/SmartThingsCommunity/SmartThingsPublic.git","ssh_url":"git@github.com:SmartThingsCommunity/SmartThingsPublic.git","clone_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic.git","svn_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic","homepage":null,"size":988,"stargazers_count":20,"watchers_count":20,"language":"Groovy","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":148,"mirror_url":null,"open_issues_count":3,"forks":148,"open_issues":3,"watchers":20,"default_branch":"master"}},"base":{"label":"SmartThingsCommunity:master","ref":"master","sha":"ff1505aa2eb33c1e7b2d780fbbb41044b4851b5e","user":{"login":"SmartThingsCommunity","id":7317431,"avatar_url":"https://avatars.githubusercontent.com/u/7317431?v=3","gravatar_id":"","url":"https://api.github.com/users/SmartThingsCommunity","html_url":"https://github.com/SmartThingsCommunity","followers_url":"https://api.github.com/users/SmartThingsCommunity/followers","following_url":"https://api.github.com/users/SmartThingsCommunity/following{/other_user}","gists_url":"https://api.github.com/users/SmartThingsCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/SmartThingsCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmartThingsCommunity/subscriptions","organizations_url":"https://api.github.com/users/SmartThingsCommunity/orgs","repos_url":"https://api.github.com/users/SmartThingsCommunity/repos","events_url":"https://api.github.com/users/SmartThingsCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/SmartThingsCommunity/received_events","type":"Organization","site_admin":false},"repo":{"id":40212802,"name":"SmartThingsPublic","full_name":"SmartThingsCommunity/SmartThingsPublic","owner":{"login":"SmartThingsCommunity","id":7317431,"avatar_url":"https://avatars.githubusercontent.com/u/7317431?v=3","gravatar_id":"","url":"https://api.github.com/users/SmartThingsCommunity","html_url":"https://github.com/SmartThingsCommunity","followers_url":"https://api.github.com/users/SmartThingsCommunity/followers","following_url":"https://api.github.com/users/SmartThingsCommunity/following{/other_user}","gists_url":"https://api.github.com/users/SmartThingsCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/SmartThingsCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmartThingsCommunity/subscriptions","organizations_url":"https://api.github.com/users/SmartThingsCommunity/orgs","repos_url":"https://api.github.com/users/SmartThingsCommunity/repos","events_url":"https://api.github.com/users/SmartThingsCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/SmartThingsCommunity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic","description":"","fork":false,"url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic","forks_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/forks","keys_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/teams","hooks_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/hooks","issue_events_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/events{/number}","events_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/events","assignees_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/assignees{/user}","branches_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/branches{/branch}","tags_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/tags","blobs_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/refs{/sha}","trees_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/statuses/{sha}","languages_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/languages","stargazers_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/stargazers","contributors_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/contributors","subscribers_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/subscribers","subscription_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/subscription","commits_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/commits{/sha}","git_commits_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/git/commits{/sha}","comments_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/comments{/number}","issue_comment_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/comments{/number}","contents_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/contents/{+path}","compare_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/merges","archive_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/downloads","issues_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues{/number}","pulls_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls{/number}","milestones_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/milestones{/number}","notifications_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/labels{/name}","releases_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/releases{/id}","created_at":"2015-08-04T22:48:02Z","updated_at":"2015-08-14T16:41:42Z","pushed_at":"2015-08-13T19:00:12Z","git_url":"git://github.com/SmartThingsCommunity/SmartThingsPublic.git","ssh_url":"git@github.com:SmartThingsCommunity/SmartThingsPublic.git","clone_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic.git","svn_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic","homepage":null,"size":988,"stargazers_count":20,"watchers_count":20,"language":"Groovy","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":148,"mirror_url":null,"open_issues_count":3,"forks":148,"open_issues":3,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/20"},"html":{"href":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/20"},"issue":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/20"},"comments":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/statuses/addc7ccc4170ff3ff6817e4f7d5efb1f187b16c1"}}}}