{"action":"created","comment":{"url":"https://api.github.com/repos/evercam/evercam-api/pulls/comments/37532066","id":37532066,"diff_hunk":"@@ -88,6 +93,15 @@ def validate\n         if location_lat && nil == location_lng\n           add_error(:location_lng, :valid, 'Must provide both location coordinates')\n         end\n+\n+        if motiondetection_threshold < 1 || motiondetection_threshold > 100\n+          add_error(:motiondetection_threshold, :valid, 'Motiondetection threshold must be in the range from 1 to 100')\n+        end\n+\n+        # TODO: add validations for \n+        # :schedule\n+        # :region_of_interest\n+        ","path":"lib/actors/camera_update.rb","position":87,"original_position":87,"commit_id":"fcdee908e0c5a91cfea3e1f85d94a8eae51fd43a","original_commit_id":"fcdee908e0c5a91cfea3e1f85d94a8eae51fd43a","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Trailing whitespace detected.","created_at":"2015-08-20T14:01:44Z","updated_at":"2015-08-20T14:01:44Z","html_url":"https://github.com/evercam/evercam-api/pull/410#discussion_r37532066","pull_request_url":"https://api.github.com/repos/evercam/evercam-api/pulls/410","_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-api/pulls/comments/37532066"},"html":{"href":"https://github.com/evercam/evercam-api/pull/410#discussion_r37532066"},"pull_request":{"href":"https://api.github.com/repos/evercam/evercam-api/pulls/410"}}},"pull_request":{"url":"https://api.github.com/repos/evercam/evercam-api/pulls/410","id":42928659,"html_url":"https://github.com/evercam/evercam-api/pull/410","diff_url":"https://github.com/evercam/evercam-api/pull/410.diff","patch_url":"https://github.com/evercam/evercam-api/pull/410.patch","issue_url":"https://api.github.com/repos/evercam/evercam-api/issues/410","number":410,"state":"open","locked":false,"title":"Motion detection notifications","user":{"login":"eugenehp","id":1857263,"avatar_url":"https://avatars.githubusercontent.com/u/1857263?v=3","gravatar_id":"","url":"https://api.github.com/users/eugenehp","html_url":"https://github.com/eugenehp","followers_url":"https://api.github.com/users/eugenehp/followers","following_url":"https://api.github.com/users/eugenehp/following{/other_user}","gists_url":"https://api.github.com/users/eugenehp/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenehp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenehp/subscriptions","organizations_url":"https://api.github.com/users/eugenehp/orgs","repos_url":"https://api.github.com/users/eugenehp/repos","events_url":"https://api.github.com/users/eugenehp/events{/privacy}","received_events_url":"https://api.github.com/users/eugenehp/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-20T13:25:13Z","updated_at":"2015-08-20T14:01:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09607edc16c101ab43d82941dd7530c8efe103a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/evercam/evercam-api/pulls/410/commits","review_comments_url":"https://api.github.com/repos/evercam/evercam-api/pulls/410/comments","review_comment_url":"https://api.github.com/repos/evercam/evercam-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evercam/evercam-api/issues/410/comments","statuses_url":"https://api.github.com/repos/evercam/evercam-api/statuses/fcdee908e0c5a91cfea3e1f85d94a8eae51fd43a","head":{"label":"evercam:motion-detection-notifications","ref":"motion-detection-notifications","sha":"fcdee908e0c5a91cfea3e1f85d94a8eae51fd43a","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":14651973,"name":"evercam-api","full_name":"evercam/evercam-api","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-api","description":"Grape application that manages all communication between Evecam Media & Evercam Clients","fork":false,"url":"https://api.github.com/repos/evercam/evercam-api","forks_url":"https://api.github.com/repos/evercam/evercam-api/forks","keys_url":"https://api.github.com/repos/evercam/evercam-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-api/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-api/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-api/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-api/events","assignees_url":"https://api.github.com/repos/evercam/evercam-api/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-api/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-api/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-api/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-api/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-api/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-api/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-api/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-api/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-api/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-api/merges","archive_url":"https://api.github.com/repos/evercam/evercam-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-api/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-api/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-api/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-api/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-api/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-api/releases{/id}","created_at":"2013-11-23T22:52:01Z","updated_at":"2015-08-13T06:48:16Z","pushed_at":"2015-08-20T14:01:38Z","git_url":"git://github.com/evercam/evercam-api.git","ssh_url":"git@github.com:evercam/evercam-api.git","clone_url":"https://github.com/evercam/evercam-api.git","svn_url":"https://github.com/evercam/evercam-api","homepage":"http://dash.evercam.io/swagger","size":114715,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":23,"forks":3,"open_issues":23,"watchers":5,"default_branch":"master"}},"base":{"label":"evercam:master","ref":"master","sha":"18755821e525f4a630fb5a98e36d12c54f1f59dc","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":14651973,"name":"evercam-api","full_name":"evercam/evercam-api","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-api","description":"Grape application that manages all communication between Evecam Media & Evercam Clients","fork":false,"url":"https://api.github.com/repos/evercam/evercam-api","forks_url":"https://api.github.com/repos/evercam/evercam-api/forks","keys_url":"https://api.github.com/repos/evercam/evercam-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-api/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-api/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-api/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-api/events","assignees_url":"https://api.github.com/repos/evercam/evercam-api/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-api/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-api/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-api/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-api/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-api/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-api/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-api/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-api/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-api/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-api/merges","archive_url":"https://api.github.com/repos/evercam/evercam-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-api/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-api/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-api/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-api/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-api/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-api/releases{/id}","created_at":"2013-11-23T22:52:01Z","updated_at":"2015-08-13T06:48:16Z","pushed_at":"2015-08-20T14:01:38Z","git_url":"git://github.com/evercam/evercam-api.git","ssh_url":"git@github.com:evercam/evercam-api.git","clone_url":"https://github.com/evercam/evercam-api.git","svn_url":"https://github.com/evercam/evercam-api","homepage":"http://dash.evercam.io/swagger","size":114715,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":23,"forks":3,"open_issues":23,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-api/pulls/410"},"html":{"href":"https://github.com/evercam/evercam-api/pull/410"},"issue":{"href":"https://api.github.com/repos/evercam/evercam-api/issues/410"},"comments":{"href":"https://api.github.com/repos/evercam/evercam-api/issues/410/comments"},"review_comments":{"href":"https://api.github.com/repos/evercam/evercam-api/pulls/410/comments"},"review_comment":{"href":"https://api.github.com/repos/evercam/evercam-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evercam/evercam-api/pulls/410/commits"},"statuses":{"href":"https://api.github.com/repos/evercam/evercam-api/statuses/fcdee908e0c5a91cfea3e1f85d94a8eae51fd43a"}}}}