{"action":"created","comment":{"url":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls/comments/171361778","pull_request_review_id":100200779,"id":171361778,"diff_hunk":"@@ -1,6 +1,18 @@\n var editor;\n var position;\n var blockDict = {};\n+var colorArray = [\n+    'background-color:#ff3399', // fuschia\n+    'background-color:darkgoldenrod',\n+    'background-color:deepskyblue',\n+    'background-color:limegreen',\n+    'background-color:darkorchid',\n+    'background-color:coral',\n+    'background-color:orange']\n+\n+var keysArray = ['IF', 'IF-ELSE', 'FOR', 'WHILE', 'VARIABLE', 'FUNCTION'];","path":"brick-editor.js","position":13,"original_position":13,"commit_id":"c2ee9d26d3f61d5df83dec9a45388bd46cb7f915","original_commit_id":"c2ee9d26d3f61d5df83dec9a45388bd46cb7f915","user":{"login":"justinnhli","id":624737,"avatar_url":"https://avatars0.githubusercontent.com/u/624737?v=4","gravatar_id":"","url":"https://api.github.com/users/justinnhli","html_url":"https://github.com/justinnhli","followers_url":"https://api.github.com/users/justinnhli/followers","following_url":"https://api.github.com/users/justinnhli/following{/other_user}","gists_url":"https://api.github.com/users/justinnhli/gists{/gist_id}","starred_url":"https://api.github.com/users/justinnhli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinnhli/subscriptions","organizations_url":"https://api.github.com/users/justinnhli/orgs","repos_url":"https://api.github.com/users/justinnhli/repos","events_url":"https://api.github.com/users/justinnhli/events{/privacy}","received_events_url":"https://api.github.com/users/justinnhli/received_events","type":"User","site_admin":false},"body":"Both of these arrays would require manual updating. See comments below.","created_at":"2018-02-28T19:39:37Z","updated_at":"2018-02-28T19:50:47Z","html_url":"https://github.com/oxy-compsci/brick-editor/pull/2#discussion_r171361778","pull_request_url":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls/comments/171361778"},"html":{"href":"https://github.com/oxy-compsci/brick-editor/pull/2#discussion_r171361778"},"pull_request":{"href":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls/2","id":172051203,"html_url":"https://github.com/oxy-compsci/brick-editor/pull/2","diff_url":"https://github.com/oxy-compsci/brick-editor/pull/2.diff","patch_url":"https://github.com/oxy-compsci/brick-editor/pull/2.patch","issue_url":"https://api.github.com/repos/oxy-compsci/brick-editor/issues/2","number":2,"state":"open","locked":false,"title":"Autonomize HTML button additions using JS","user":{"login":"ccullip","id":22626811,"avatar_url":"https://avatars2.githubusercontent.com/u/22626811?v=4","gravatar_id":"","url":"https://api.github.com/users/ccullip","html_url":"https://github.com/ccullip","followers_url":"https://api.github.com/users/ccullip/followers","following_url":"https://api.github.com/users/ccullip/following{/other_user}","gists_url":"https://api.github.com/users/ccullip/gists{/gist_id}","starred_url":"https://api.github.com/users/ccullip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccullip/subscriptions","organizations_url":"https://api.github.com/users/ccullip/orgs","repos_url":"https://api.github.com/users/ccullip/repos","events_url":"https://api.github.com/users/ccullip/events{/privacy}","received_events_url":"https://api.github.com/users/ccullip/received_events","type":"User","site_admin":false},"body":"Function that adds buttons to the HTML using javascript and array of dictionary keys","created_at":"2018-02-28T19:36:51Z","updated_at":"2018-02-28T19:50:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"935600b4bd10efe392216b5e90e5b2b7bb79c940","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls/2/commits","review_comments_url":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls/2/comments","review_comment_url":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oxy-compsci/brick-editor/issues/2/comments","statuses_url":"https://api.github.com/repos/oxy-compsci/brick-editor/statuses/c2ee9d26d3f61d5df83dec9a45388bd46cb7f915","head":{"label":"ccullip:master","ref":"master","sha":"c2ee9d26d3f61d5df83dec9a45388bd46cb7f915","user":{"login":"ccullip","id":22626811,"avatar_url":"https://avatars2.githubusercontent.com/u/22626811?v=4","gravatar_id":"","url":"https://api.github.com/users/ccullip","html_url":"https://github.com/ccullip","followers_url":"https://api.github.com/users/ccullip/followers","following_url":"https://api.github.com/users/ccullip/following{/other_user}","gists_url":"https://api.github.com/users/ccullip/gists{/gist_id}","starred_url":"https://api.github.com/users/ccullip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccullip/subscriptions","organizations_url":"https://api.github.com/users/ccullip/orgs","repos_url":"https://api.github.com/users/ccullip/repos","events_url":"https://api.github.com/users/ccullip/events{/privacy}","received_events_url":"https://api.github.com/users/ccullip/received_events","type":"User","site_admin":false},"repo":{"id":123327535,"name":"brick-editor","full_name":"ccullip/brick-editor","owner":{"login":"ccullip","id":22626811,"avatar_url":"https://avatars2.githubusercontent.com/u/22626811?v=4","gravatar_id":"","url":"https://api.github.com/users/ccullip","html_url":"https://github.com/ccullip","followers_url":"https://api.github.com/users/ccullip/followers","following_url":"https://api.github.com/users/ccullip/following{/other_user}","gists_url":"https://api.github.com/users/ccullip/gists{/gist_id}","starred_url":"https://api.github.com/users/ccullip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccullip/subscriptions","organizations_url":"https://api.github.com/users/ccullip/orgs","repos_url":"https://api.github.com/users/ccullip/repos","events_url":"https://api.github.com/users/ccullip/events{/privacy}","received_events_url":"https://api.github.com/users/ccullip/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ccullip/brick-editor","description":"An editor to help beginners transition from block-based languages","fork":true,"url":"https://api.github.com/repos/ccullip/brick-editor","forks_url":"https://api.github.com/repos/ccullip/brick-editor/forks","keys_url":"https://api.github.com/repos/ccullip/brick-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccullip/brick-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccullip/brick-editor/teams","hooks_url":"https://api.github.com/repos/ccullip/brick-editor/hooks","issue_events_url":"https://api.github.com/repos/ccullip/brick-editor/issues/events{/number}","events_url":"https://api.github.com/repos/ccullip/brick-editor/events","assignees_url":"https://api.github.com/repos/ccullip/brick-editor/assignees{/user}","branches_url":"https://api.github.com/repos/ccullip/brick-editor/branches{/branch}","tags_url":"https://api.github.com/repos/ccullip/brick-editor/tags","blobs_url":"https://api.github.com/repos/ccullip/brick-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccullip/brick-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccullip/brick-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccullip/brick-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccullip/brick-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/ccullip/brick-editor/languages","stargazers_url":"https://api.github.com/repos/ccullip/brick-editor/stargazers","contributors_url":"https://api.github.com/repos/ccullip/brick-editor/contributors","subscribers_url":"https://api.github.com/repos/ccullip/brick-editor/subscribers","subscription_url":"https://api.github.com/repos/ccullip/brick-editor/subscription","commits_url":"https://api.github.com/repos/ccullip/brick-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccullip/brick-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccullip/brick-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccullip/brick-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/ccullip/brick-editor/contents/{+path}","compare_url":"https://api.github.com/repos/ccullip/brick-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccullip/brick-editor/merges","archive_url":"https://api.github.com/repos/ccullip/brick-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccullip/brick-editor/downloads","issues_url":"https://api.github.com/repos/ccullip/brick-editor/issues{/number}","pulls_url":"https://api.github.com/repos/ccullip/brick-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/ccullip/brick-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/ccullip/brick-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccullip/brick-editor/labels{/name}","releases_url":"https://api.github.com/repos/ccullip/brick-editor/releases{/id}","deployments_url":"https://api.github.com/repos/ccullip/brick-editor/deployments","created_at":"2018-02-28T18:49:21Z","updated_at":"2018-02-28T18:49:23Z","pushed_at":"2018-02-28T19:34:31Z","git_url":"git://github.com/ccullip/brick-editor.git","ssh_url":"git@github.com:ccullip/brick-editor.git","clone_url":"https://github.com/ccullip/brick-editor.git","svn_url":"https://github.com/ccullip/brick-editor","homepage":"","size":188,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"oxy-compsci:master","ref":"master","sha":"d7716bd03c89c11bab25b14c5168068151861d42","user":{"login":"oxy-compsci","id":30164511,"avatar_url":"https://avatars0.githubusercontent.com/u/30164511?v=4","gravatar_id":"","url":"https://api.github.com/users/oxy-compsci","html_url":"https://github.com/oxy-compsci","followers_url":"https://api.github.com/users/oxy-compsci/followers","following_url":"https://api.github.com/users/oxy-compsci/following{/other_user}","gists_url":"https://api.github.com/users/oxy-compsci/gists{/gist_id}","starred_url":"https://api.github.com/users/oxy-compsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxy-compsci/subscriptions","organizations_url":"https://api.github.com/users/oxy-compsci/orgs","repos_url":"https://api.github.com/users/oxy-compsci/repos","events_url":"https://api.github.com/users/oxy-compsci/events{/privacy}","received_events_url":"https://api.github.com/users/oxy-compsci/received_events","type":"Organization","site_admin":false},"repo":{"id":119914875,"name":"brick-editor","full_name":"oxy-compsci/brick-editor","owner":{"login":"oxy-compsci","id":30164511,"avatar_url":"https://avatars0.githubusercontent.com/u/30164511?v=4","gravatar_id":"","url":"https://api.github.com/users/oxy-compsci","html_url":"https://github.com/oxy-compsci","followers_url":"https://api.github.com/users/oxy-compsci/followers","following_url":"https://api.github.com/users/oxy-compsci/following{/other_user}","gists_url":"https://api.github.com/users/oxy-compsci/gists{/gist_id}","starred_url":"https://api.github.com/users/oxy-compsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxy-compsci/subscriptions","organizations_url":"https://api.github.com/users/oxy-compsci/orgs","repos_url":"https://api.github.com/users/oxy-compsci/repos","events_url":"https://api.github.com/users/oxy-compsci/events{/privacy}","received_events_url":"https://api.github.com/users/oxy-compsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oxy-compsci/brick-editor","description":"An editor to help beginners transition from block-based languages","fork":false,"url":"https://api.github.com/repos/oxy-compsci/brick-editor","forks_url":"https://api.github.com/repos/oxy-compsci/brick-editor/forks","keys_url":"https://api.github.com/repos/oxy-compsci/brick-editor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oxy-compsci/brick-editor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oxy-compsci/brick-editor/teams","hooks_url":"https://api.github.com/repos/oxy-compsci/brick-editor/hooks","issue_events_url":"https://api.github.com/repos/oxy-compsci/brick-editor/issues/events{/number}","events_url":"https://api.github.com/repos/oxy-compsci/brick-editor/events","assignees_url":"https://api.github.com/repos/oxy-compsci/brick-editor/assignees{/user}","branches_url":"https://api.github.com/repos/oxy-compsci/brick-editor/branches{/branch}","tags_url":"https://api.github.com/repos/oxy-compsci/brick-editor/tags","blobs_url":"https://api.github.com/repos/oxy-compsci/brick-editor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oxy-compsci/brick-editor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oxy-compsci/brick-editor/git/refs{/sha}","trees_url":"https://api.github.com/repos/oxy-compsci/brick-editor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oxy-compsci/brick-editor/statuses/{sha}","languages_url":"https://api.github.com/repos/oxy-compsci/brick-editor/languages","stargazers_url":"https://api.github.com/repos/oxy-compsci/brick-editor/stargazers","contributors_url":"https://api.github.com/repos/oxy-compsci/brick-editor/contributors","subscribers_url":"https://api.github.com/repos/oxy-compsci/brick-editor/subscribers","subscription_url":"https://api.github.com/repos/oxy-compsci/brick-editor/subscription","commits_url":"https://api.github.com/repos/oxy-compsci/brick-editor/commits{/sha}","git_commits_url":"https://api.github.com/repos/oxy-compsci/brick-editor/git/commits{/sha}","comments_url":"https://api.github.com/repos/oxy-compsci/brick-editor/comments{/number}","issue_comment_url":"https://api.github.com/repos/oxy-compsci/brick-editor/issues/comments{/number}","contents_url":"https://api.github.com/repos/oxy-compsci/brick-editor/contents/{+path}","compare_url":"https://api.github.com/repos/oxy-compsci/brick-editor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oxy-compsci/brick-editor/merges","archive_url":"https://api.github.com/repos/oxy-compsci/brick-editor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oxy-compsci/brick-editor/downloads","issues_url":"https://api.github.com/repos/oxy-compsci/brick-editor/issues{/number}","pulls_url":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls{/number}","milestones_url":"https://api.github.com/repos/oxy-compsci/brick-editor/milestones{/number}","notifications_url":"https://api.github.com/repos/oxy-compsci/brick-editor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oxy-compsci/brick-editor/labels{/name}","releases_url":"https://api.github.com/repos/oxy-compsci/brick-editor/releases{/id}","deployments_url":"https://api.github.com/repos/oxy-compsci/brick-editor/deployments","created_at":"2018-02-02T01:26:07Z","updated_at":"2018-02-08T02:10:15Z","pushed_at":"2018-02-28T19:36:52Z","git_url":"git://github.com/oxy-compsci/brick-editor.git","ssh_url":"git@github.com:oxy-compsci/brick-editor.git","clone_url":"https://github.com/oxy-compsci/brick-editor.git","svn_url":"https://github.com/oxy-compsci/brick-editor","homepage":"","size":188,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls/2"},"html":{"href":"https://github.com/oxy-compsci/brick-editor/pull/2"},"issue":{"href":"https://api.github.com/repos/oxy-compsci/brick-editor/issues/2"},"comments":{"href":"https://api.github.com/repos/oxy-compsci/brick-editor/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oxy-compsci/brick-editor/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/oxy-compsci/brick-editor/statuses/c2ee9d26d3f61d5df83dec9a45388bd46cb7f915"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"justinnhli"}}