{"action":"created","comment":{"url":"https://api.github.com/repos/adhoclabs/task/pulls/comments/51036470","id":51036470,"diff_hunk":"@@ -63,14 +52,28 @@ private[task] trait Config {\n   val gcmBaseUrl = pushConfig.getString(\"gcm-base-url\")\n   val gcmRequestTimeout = pushConfig.getDuration(\"request-timeout\", MILLISECONDS)\n \n+  private def getKeyOrThrow(key: String) = {\n+    val config = pushConfig.getString(key)\n+    if (!config.isEmpty) key else throw new RuntimeException(s\"$key is missing\")","path":"src/main/scala/co/adhoclabs/task/Config.scala","position":46,"original_position":46,"commit_id":"c41b69d5ba1754e4a3285669c4553c95ad12c18a","original_commit_id":"c41b69d5ba1754e4a3285669c4553c95ad12c18a","user":{"login":"yeghishe","id":1479173,"avatar_url":"https://avatars.githubusercontent.com/u/1479173?v=3","gravatar_id":"","url":"https://api.github.com/users/yeghishe","html_url":"https://github.com/yeghishe","followers_url":"https://api.github.com/users/yeghishe/followers","following_url":"https://api.github.com/users/yeghishe/following{/other_user}","gists_url":"https://api.github.com/users/yeghishe/gists{/gist_id}","starred_url":"https://api.github.com/users/yeghishe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeghishe/subscriptions","organizations_url":"https://api.github.com/users/yeghishe/orgs","repos_url":"https://api.github.com/users/yeghishe/repos","events_url":"https://api.github.com/users/yeghishe/events{/privacy}","received_events_url":"https://api.github.com/users/yeghishe/received_events","type":"User","site_admin":false},"body":"`if (config.isEmpty) else throw new RuntimeException(s\"$key is missing\") else key`","created_at":"2016-01-27T19:30:16Z","updated_at":"2016-01-27T19:30:16Z","html_url":"https://github.com/adhoclabs/task/pull/19#discussion_r51036470","pull_request_url":"https://api.github.com/repos/adhoclabs/task/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/adhoclabs/task/pulls/comments/51036470"},"html":{"href":"https://github.com/adhoclabs/task/pull/19#discussion_r51036470"},"pull_request":{"href":"https://api.github.com/repos/adhoclabs/task/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/adhoclabs/task/pulls/19","id":57296903,"html_url":"https://github.com/adhoclabs/task/pull/19","diff_url":"https://github.com/adhoclabs/task/pull/19.diff","patch_url":"https://github.com/adhoclabs/task/pull/19.patch","issue_url":"https://api.github.com/repos/adhoclabs/task/issues/19","number":19,"state":"closed","locked":false,"title":"Adding slack webhook task.","user":{"login":"chromalley","id":293890,"avatar_url":"https://avatars.githubusercontent.com/u/293890?v=3","gravatar_id":"","url":"https://api.github.com/users/chromalley","html_url":"https://github.com/chromalley","followers_url":"https://api.github.com/users/chromalley/followers","following_url":"https://api.github.com/users/chromalley/following{/other_user}","gists_url":"https://api.github.com/users/chromalley/gists{/gist_id}","starred_url":"https://api.github.com/users/chromalley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chromalley/subscriptions","organizations_url":"https://api.github.com/users/chromalley/orgs","repos_url":"https://api.github.com/users/chromalley/repos","events_url":"https://api.github.com/users/chromalley/events{/privacy}","received_events_url":"https://api.github.com/users/chromalley/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-27T00:36:59Z","updated_at":"2016-01-27T19:30:16Z","closed_at":"2016-01-27T19:28:05Z","merged_at":null,"merge_commit_sha":"4836d9f487bb01c97f675effc8f0932256742e49","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/adhoclabs/task/pulls/19/commits","review_comments_url":"https://api.github.com/repos/adhoclabs/task/pulls/19/comments","review_comment_url":"https://api.github.com/repos/adhoclabs/task/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adhoclabs/task/issues/19/comments","statuses_url":"https://api.github.com/repos/adhoclabs/task/statuses/c41b69d5ba1754e4a3285669c4553c95ad12c18a","head":{"label":"adhoclabs:chromalley.slack_webhook_task","ref":"chromalley.slack_webhook_task","sha":"c41b69d5ba1754e4a3285669c4553c95ad12c18a","user":{"login":"adhoclabs","id":2192663,"avatar_url":"https://avatars.githubusercontent.com/u/2192663?v=3","gravatar_id":"","url":"https://api.github.com/users/adhoclabs","html_url":"https://github.com/adhoclabs","followers_url":"https://api.github.com/users/adhoclabs/followers","following_url":"https://api.github.com/users/adhoclabs/following{/other_user}","gists_url":"https://api.github.com/users/adhoclabs/gists{/gist_id}","starred_url":"https://api.github.com/users/adhoclabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adhoclabs/subscriptions","organizations_url":"https://api.github.com/users/adhoclabs/orgs","repos_url":"https://api.github.com/users/adhoclabs/repos","events_url":"https://api.github.com/users/adhoclabs/events{/privacy}","received_events_url":"https://api.github.com/users/adhoclabs/received_events","type":"Organization","site_admin":false},"repo":{"id":35517742,"name":"task","full_name":"adhoclabs/task","owner":{"login":"adhoclabs","id":2192663,"avatar_url":"https://avatars.githubusercontent.com/u/2192663?v=3","gravatar_id":"","url":"https://api.github.com/users/adhoclabs","html_url":"https://github.com/adhoclabs","followers_url":"https://api.github.com/users/adhoclabs/followers","following_url":"https://api.github.com/users/adhoclabs/following{/other_user}","gists_url":"https://api.github.com/users/adhoclabs/gists{/gist_id}","starred_url":"https://api.github.com/users/adhoclabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adhoclabs/subscriptions","organizations_url":"https://api.github.com/users/adhoclabs/orgs","repos_url":"https://api.github.com/users/adhoclabs/repos","events_url":"https://api.github.com/users/adhoclabs/events{/privacy}","received_events_url":"https://api.github.com/users/adhoclabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/adhoclabs/task","description":"","fork":false,"url":"https://api.github.com/repos/adhoclabs/task","forks_url":"https://api.github.com/repos/adhoclabs/task/forks","keys_url":"https://api.github.com/repos/adhoclabs/task/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adhoclabs/task/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adhoclabs/task/teams","hooks_url":"https://api.github.com/repos/adhoclabs/task/hooks","issue_events_url":"https://api.github.com/repos/adhoclabs/task/issues/events{/number}","events_url":"https://api.github.com/repos/adhoclabs/task/events","assignees_url":"https://api.github.com/repos/adhoclabs/task/assignees{/user}","branches_url":"https://api.github.com/repos/adhoclabs/task/branches{/branch}","tags_url":"https://api.github.com/repos/adhoclabs/task/tags","blobs_url":"https://api.github.com/repos/adhoclabs/task/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adhoclabs/task/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adhoclabs/task/git/refs{/sha}","trees_url":"https://api.github.com/repos/adhoclabs/task/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adhoclabs/task/statuses/{sha}","languages_url":"https://api.github.com/repos/adhoclabs/task/languages","stargazers_url":"https://api.github.com/repos/adhoclabs/task/stargazers","contributors_url":"https://api.github.com/repos/adhoclabs/task/contributors","subscribers_url":"https://api.github.com/repos/adhoclabs/task/subscribers","subscription_url":"https://api.github.com/repos/adhoclabs/task/subscription","commits_url":"https://api.github.com/repos/adhoclabs/task/commits{/sha}","git_commits_url":"https://api.github.com/repos/adhoclabs/task/git/commits{/sha}","comments_url":"https://api.github.com/repos/adhoclabs/task/comments{/number}","issue_comment_url":"https://api.github.com/repos/adhoclabs/task/issues/comments{/number}","contents_url":"https://api.github.com/repos/adhoclabs/task/contents/{+path}","compare_url":"https://api.github.com/repos/adhoclabs/task/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adhoclabs/task/merges","archive_url":"https://api.github.com/repos/adhoclabs/task/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adhoclabs/task/downloads","issues_url":"https://api.github.com/repos/adhoclabs/task/issues{/number}","pulls_url":"https://api.github.com/repos/adhoclabs/task/pulls{/number}","milestones_url":"https://api.github.com/repos/adhoclabs/task/milestones{/number}","notifications_url":"https://api.github.com/repos/adhoclabs/task/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adhoclabs/task/labels{/name}","releases_url":"https://api.github.com/repos/adhoclabs/task/releases{/id}","deployments_url":"https://api.github.com/repos/adhoclabs/task/deployments","created_at":"2015-05-12T23:30:05Z","updated_at":"2015-09-14T22:41:48Z","pushed_at":"2016-01-27T19:28:29Z","git_url":"git://github.com/adhoclabs/task.git","ssh_url":"git@github.com:adhoclabs/task.git","clone_url":"https://github.com/adhoclabs/task.git","svn_url":"https://github.com/adhoclabs/task","homepage":null,"size":67,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"adhoclabs:master","ref":"master","sha":"3fbbd9dec7b1fdb2332549c84ef96ea31931b037","user":{"login":"adhoclabs","id":2192663,"avatar_url":"https://avatars.githubusercontent.com/u/2192663?v=3","gravatar_id":"","url":"https://api.github.com/users/adhoclabs","html_url":"https://github.com/adhoclabs","followers_url":"https://api.github.com/users/adhoclabs/followers","following_url":"https://api.github.com/users/adhoclabs/following{/other_user}","gists_url":"https://api.github.com/users/adhoclabs/gists{/gist_id}","starred_url":"https://api.github.com/users/adhoclabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adhoclabs/subscriptions","organizations_url":"https://api.github.com/users/adhoclabs/orgs","repos_url":"https://api.github.com/users/adhoclabs/repos","events_url":"https://api.github.com/users/adhoclabs/events{/privacy}","received_events_url":"https://api.github.com/users/adhoclabs/received_events","type":"Organization","site_admin":false},"repo":{"id":35517742,"name":"task","full_name":"adhoclabs/task","owner":{"login":"adhoclabs","id":2192663,"avatar_url":"https://avatars.githubusercontent.com/u/2192663?v=3","gravatar_id":"","url":"https://api.github.com/users/adhoclabs","html_url":"https://github.com/adhoclabs","followers_url":"https://api.github.com/users/adhoclabs/followers","following_url":"https://api.github.com/users/adhoclabs/following{/other_user}","gists_url":"https://api.github.com/users/adhoclabs/gists{/gist_id}","starred_url":"https://api.github.com/users/adhoclabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adhoclabs/subscriptions","organizations_url":"https://api.github.com/users/adhoclabs/orgs","repos_url":"https://api.github.com/users/adhoclabs/repos","events_url":"https://api.github.com/users/adhoclabs/events{/privacy}","received_events_url":"https://api.github.com/users/adhoclabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/adhoclabs/task","description":"","fork":false,"url":"https://api.github.com/repos/adhoclabs/task","forks_url":"https://api.github.com/repos/adhoclabs/task/forks","keys_url":"https://api.github.com/repos/adhoclabs/task/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adhoclabs/task/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adhoclabs/task/teams","hooks_url":"https://api.github.com/repos/adhoclabs/task/hooks","issue_events_url":"https://api.github.com/repos/adhoclabs/task/issues/events{/number}","events_url":"https://api.github.com/repos/adhoclabs/task/events","assignees_url":"https://api.github.com/repos/adhoclabs/task/assignees{/user}","branches_url":"https://api.github.com/repos/adhoclabs/task/branches{/branch}","tags_url":"https://api.github.com/repos/adhoclabs/task/tags","blobs_url":"https://api.github.com/repos/adhoclabs/task/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adhoclabs/task/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adhoclabs/task/git/refs{/sha}","trees_url":"https://api.github.com/repos/adhoclabs/task/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adhoclabs/task/statuses/{sha}","languages_url":"https://api.github.com/repos/adhoclabs/task/languages","stargazers_url":"https://api.github.com/repos/adhoclabs/task/stargazers","contributors_url":"https://api.github.com/repos/adhoclabs/task/contributors","subscribers_url":"https://api.github.com/repos/adhoclabs/task/subscribers","subscription_url":"https://api.github.com/repos/adhoclabs/task/subscription","commits_url":"https://api.github.com/repos/adhoclabs/task/commits{/sha}","git_commits_url":"https://api.github.com/repos/adhoclabs/task/git/commits{/sha}","comments_url":"https://api.github.com/repos/adhoclabs/task/comments{/number}","issue_comment_url":"https://api.github.com/repos/adhoclabs/task/issues/comments{/number}","contents_url":"https://api.github.com/repos/adhoclabs/task/contents/{+path}","compare_url":"https://api.github.com/repos/adhoclabs/task/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adhoclabs/task/merges","archive_url":"https://api.github.com/repos/adhoclabs/task/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adhoclabs/task/downloads","issues_url":"https://api.github.com/repos/adhoclabs/task/issues{/number}","pulls_url":"https://api.github.com/repos/adhoclabs/task/pulls{/number}","milestones_url":"https://api.github.com/repos/adhoclabs/task/milestones{/number}","notifications_url":"https://api.github.com/repos/adhoclabs/task/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adhoclabs/task/labels{/name}","releases_url":"https://api.github.com/repos/adhoclabs/task/releases{/id}","deployments_url":"https://api.github.com/repos/adhoclabs/task/deployments","created_at":"2015-05-12T23:30:05Z","updated_at":"2015-09-14T22:41:48Z","pushed_at":"2016-01-27T19:28:29Z","git_url":"git://github.com/adhoclabs/task.git","ssh_url":"git@github.com:adhoclabs/task.git","clone_url":"https://github.com/adhoclabs/task.git","svn_url":"https://github.com/adhoclabs/task","homepage":null,"size":67,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adhoclabs/task/pulls/19"},"html":{"href":"https://github.com/adhoclabs/task/pull/19"},"issue":{"href":"https://api.github.com/repos/adhoclabs/task/issues/19"},"comments":{"href":"https://api.github.com/repos/adhoclabs/task/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/adhoclabs/task/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/adhoclabs/task/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adhoclabs/task/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/adhoclabs/task/statuses/c41b69d5ba1754e4a3285669c4553c95ad12c18a"}}}}