{"action":"created","comment":{"url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls/comments/82504161","pull_request_review_id":3409859,"id":82504161,"diff_hunk":"@@ -0,0 +1,16 @@\n+process.gage_colors <- function(viz){\n+  library(RColorBrewer)\n+  library(jsonlite)\n+  required <- c(\"bins\", \"pallete\", \"location\")\n+  checkRequired(viz, required)\n+  \n+  cols <- RColorBrewer::brewer.pal(viz[['bins']], viz[['pallete']])\n+  names(cols) <- paste0(\"bin-\",1:viz[['bins']])\n+  saveRDS(cols, viz[[\"location\"]])\n+  # json <- lapply(1:viz[['bins']], function(x) {\n+  #   out <- list(cols[x])\n+  #   names(out) <- paste0('bin-', x)\n+  #   return(out)\n+  # })\n+  # cat(jsonlite::toJSON(json), file = viz[['location']])","path":"scripts/process/process.gage_colors.R","position":15,"original_position":15,"commit_id":"78d62243453ec9d9facf6edf5387dcf701601115","original_commit_id":"78d62243453ec9d9facf6edf5387dcf701601115","user":{"login":"jread-usgs","id":2349007,"avatar_url":"https://avatars.githubusercontent.com/u/2349007?v=3","gravatar_id":"","url":"https://api.github.com/users/jread-usgs","html_url":"https://github.com/jread-usgs","followers_url":"https://api.github.com/users/jread-usgs/followers","following_url":"https://api.github.com/users/jread-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jread-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jread-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jread-usgs/subscriptions","organizations_url":"https://api.github.com/users/jread-usgs/orgs","repos_url":"https://api.github.com/users/jread-usgs/repos","events_url":"https://api.github.com/users/jread-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jread-usgs/received_events","type":"User","site_admin":false},"body":"eventually will this go to json?","created_at":"2016-10-08T15:17:47Z","updated_at":"2016-10-08T15:18:13Z","html_url":"https://github.com/USGS-VIZLAB/hurricane-matthew/pull/53#discussion_r82504161","pull_request_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls/comments/82504161"},"html":{"href":"https://github.com/USGS-VIZLAB/hurricane-matthew/pull/53#discussion_r82504161"},"pull_request":{"href":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls/53","id":88532900,"html_url":"https://github.com/USGS-VIZLAB/hurricane-matthew/pull/53","diff_url":"https://github.com/USGS-VIZLAB/hurricane-matthew/pull/53.diff","patch_url":"https://github.com/USGS-VIZLAB/hurricane-matthew/pull/53.patch","issue_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/issues/53","number":53,"state":"open","locked":false,"title":"Things that go my build to go further...","user":{"login":"ldecicco-USGS","id":1105215,"avatar_url":"https://avatars.githubusercontent.com/u/1105215?v=3","gravatar_id":"","url":"https://api.github.com/users/ldecicco-USGS","html_url":"https://github.com/ldecicco-USGS","followers_url":"https://api.github.com/users/ldecicco-USGS/followers","following_url":"https://api.github.com/users/ldecicco-USGS/following{/other_user}","gists_url":"https://api.github.com/users/ldecicco-USGS/gists{/gist_id}","starred_url":"https://api.github.com/users/ldecicco-USGS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldecicco-USGS/subscriptions","organizations_url":"https://api.github.com/users/ldecicco-USGS/orgs","repos_url":"https://api.github.com/users/ldecicco-USGS/repos","events_url":"https://api.github.com/users/ldecicco-USGS/events{/privacy}","received_events_url":"https://api.github.com/users/ldecicco-USGS/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-08T04:03:50Z","updated_at":"2016-10-08T15:18:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25927b999221ee2de02476f548db1c0bbecf42a3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls/53/commits","review_comments_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls/53/comments","review_comment_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/issues/53/comments","statuses_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/statuses/78d62243453ec9d9facf6edf5387dcf701601115","head":{"label":"ldecicco-USGS:master","ref":"master","sha":"78d62243453ec9d9facf6edf5387dcf701601115","user":{"login":"ldecicco-USGS","id":1105215,"avatar_url":"https://avatars.githubusercontent.com/u/1105215?v=3","gravatar_id":"","url":"https://api.github.com/users/ldecicco-USGS","html_url":"https://github.com/ldecicco-USGS","followers_url":"https://api.github.com/users/ldecicco-USGS/followers","following_url":"https://api.github.com/users/ldecicco-USGS/following{/other_user}","gists_url":"https://api.github.com/users/ldecicco-USGS/gists{/gist_id}","starred_url":"https://api.github.com/users/ldecicco-USGS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldecicco-USGS/subscriptions","organizations_url":"https://api.github.com/users/ldecicco-USGS/orgs","repos_url":"https://api.github.com/users/ldecicco-USGS/repos","events_url":"https://api.github.com/users/ldecicco-USGS/events{/privacy}","received_events_url":"https://api.github.com/users/ldecicco-USGS/received_events","type":"User","site_admin":false},"repo":{"id":70196351,"name":"hurricane-matthew","full_name":"ldecicco-USGS/hurricane-matthew","owner":{"login":"ldecicco-USGS","id":1105215,"avatar_url":"https://avatars.githubusercontent.com/u/1105215?v=3","gravatar_id":"","url":"https://api.github.com/users/ldecicco-USGS","html_url":"https://github.com/ldecicco-USGS","followers_url":"https://api.github.com/users/ldecicco-USGS/followers","following_url":"https://api.github.com/users/ldecicco-USGS/following{/other_user}","gists_url":"https://api.github.com/users/ldecicco-USGS/gists{/gist_id}","starred_url":"https://api.github.com/users/ldecicco-USGS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldecicco-USGS/subscriptions","organizations_url":"https://api.github.com/users/ldecicco-USGS/orgs","repos_url":"https://api.github.com/users/ldecicco-USGS/repos","events_url":"https://api.github.com/users/ldecicco-USGS/events{/privacy}","received_events_url":"https://api.github.com/users/ldecicco-USGS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ldecicco-USGS/hurricane-matthew","description":"Visualizing the impacts of hurricane Matthew in the Southeastern US through precipitation and streamflow data.","fork":true,"url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew","forks_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/forks","keys_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/teams","hooks_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/hooks","issue_events_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/issues/events{/number}","events_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/events","assignees_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/assignees{/user}","branches_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/branches{/branch}","tags_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/tags","blobs_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/git/refs{/sha}","trees_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/statuses/{sha}","languages_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/languages","stargazers_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/stargazers","contributors_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/contributors","subscribers_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/subscribers","subscription_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/subscription","commits_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/commits{/sha}","git_commits_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/git/commits{/sha}","comments_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/comments{/number}","issue_comment_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/issues/comments{/number}","contents_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/contents/{+path}","compare_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/merges","archive_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/downloads","issues_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/issues{/number}","pulls_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/pulls{/number}","milestones_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/milestones{/number}","notifications_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/labels{/name}","releases_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/releases{/id}","deployments_url":"https://api.github.com/repos/ldecicco-USGS/hurricane-matthew/deployments","created_at":"2016-10-06T21:56:04Z","updated_at":"2016-10-06T21:59:14Z","pushed_at":"2016-10-08T04:00:34Z","git_url":"git://github.com/ldecicco-USGS/hurricane-matthew.git","ssh_url":"git@github.com:ldecicco-USGS/hurricane-matthew.git","clone_url":"https://github.com/ldecicco-USGS/hurricane-matthew.git","svn_url":"https://github.com/ldecicco-USGS/hurricane-matthew","homepage":null,"size":499,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"USGS-VIZLAB:master","ref":"master","sha":"795cfd7e2643abafeec28da996fc8459a7cb14a7","user":{"login":"USGS-VIZLAB","id":18291557,"avatar_url":"https://avatars.githubusercontent.com/u/18291557?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-VIZLAB","html_url":"https://github.com/USGS-VIZLAB","followers_url":"https://api.github.com/users/USGS-VIZLAB/followers","following_url":"https://api.github.com/users/USGS-VIZLAB/following{/other_user}","gists_url":"https://api.github.com/users/USGS-VIZLAB/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-VIZLAB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-VIZLAB/subscriptions","organizations_url":"https://api.github.com/users/USGS-VIZLAB/orgs","repos_url":"https://api.github.com/users/USGS-VIZLAB/repos","events_url":"https://api.github.com/users/USGS-VIZLAB/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-VIZLAB/received_events","type":"Organization","site_admin":false},"repo":{"id":70192019,"name":"hurricane-matthew","full_name":"USGS-VIZLAB/hurricane-matthew","owner":{"login":"USGS-VIZLAB","id":18291557,"avatar_url":"https://avatars.githubusercontent.com/u/18291557?v=3","gravatar_id":"","url":"https://api.github.com/users/USGS-VIZLAB","html_url":"https://github.com/USGS-VIZLAB","followers_url":"https://api.github.com/users/USGS-VIZLAB/followers","following_url":"https://api.github.com/users/USGS-VIZLAB/following{/other_user}","gists_url":"https://api.github.com/users/USGS-VIZLAB/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-VIZLAB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-VIZLAB/subscriptions","organizations_url":"https://api.github.com/users/USGS-VIZLAB/orgs","repos_url":"https://api.github.com/users/USGS-VIZLAB/repos","events_url":"https://api.github.com/users/USGS-VIZLAB/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-VIZLAB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/USGS-VIZLAB/hurricane-matthew","description":"Visualizing the impacts of hurricane Matthew in the Southeastern US through precipitation and streamflow data.","fork":false,"url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew","forks_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/forks","keys_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/teams","hooks_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/hooks","issue_events_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/events","assignees_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/tags","blobs_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/languages","stargazers_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/stargazers","contributors_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/contributors","subscribers_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/subscribers","subscription_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/subscription","commits_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/merges","archive_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/downloads","issues_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/labels{/name}","releases_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/releases{/id}","deployments_url":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/deployments","created_at":"2016-10-06T20:51:16Z","updated_at":"2016-10-07T04:24:27Z","pushed_at":"2016-10-08T05:20:42Z","git_url":"git://github.com/USGS-VIZLAB/hurricane-matthew.git","ssh_url":"git@github.com:USGS-VIZLAB/hurricane-matthew.git","clone_url":"https://github.com/USGS-VIZLAB/hurricane-matthew.git","svn_url":"https://github.com/USGS-VIZLAB/hurricane-matthew","homepage":null,"size":494,"stargazers_count":2,"watchers_count":2,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":12,"forks":7,"open_issues":12,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls/53"},"html":{"href":"https://github.com/USGS-VIZLAB/hurricane-matthew/pull/53"},"issue":{"href":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/issues/53"},"comments":{"href":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-VIZLAB/hurricane-matthew/statuses/78d62243453ec9d9facf6edf5387dcf701601115"}}}}
{"actor":{"display_login":"jread-usgs"}}