payload: {"action":"created","comment":{"url":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls/comments/270319048","pull_request_review_id":220420442,"id":270319048,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3MDMxOTA0OA==","diff_hunk":"@@ -0,0 +1,155 @@\n+import React from 'react';\n+import PropTypes from 'prop-types';\n+import styled from 'styled-components';\n+import AceEditor from 'react-ace';\n+import JSONL from 'json-literal';\n+import { Dropdown, Button } from '..';\n+import { defaultFontFamily, defaultFomtSize, defaultFontWeight } from '../constants';\n+import image from '../../assets/settings.png';\n+import 'brace/mode/javascript';\n+import 'brace/mode/json';\n+import '../theme';\n+\n+const Container = styled.div`\n+  font-family: ${defaultFontFamily};\n+  font-style: ${defaultFontWeight};\n+  font-size: ${defaultFomtSize};\n+  width: ${(props) => props.width}px;\n+  height: ${(props) => props.height}px;\n+  background: #3f3f3f;\n+  color: #767676;\n+  min-width: 150px;\n+`;\n+const Column = styled.div`\n+  display: flex;\n+  flex-direction: column;\n+  padding: 5px;\n+`;\n+const Header = styled.div`\n+  display: flex;\n+  flex-direction: row;\n+  justify-content: space-between;\n+`;\n+const Footer = styled.div`\n+  display: flex;\n+  flex-direction: row;\n+  justify-content: space-between;\n+  align-items: flex-end;\n+`;\n+const Wrapper = styled.div`\n+  display: flex;\n+  flex-direction: row;\n+  justify-content: center;\n+`;\n+const Line = styled.div`\n+  height: 1px;\n+  border-bottom: 1px dashed #767676;\n+  width: 100%;\n+`;\n+const Image = styled.img`\n+  padding-right: 5px;\n+  width: 16px;\n+  height: 16px;\n+`;\n+const Title = styled.div`\n+  text-transform: uppercase;\n+  color: ${(props) => props.color};\n+`;\n+\n+const argumentsCount = [{ label: 'One' }, { label: 'Two' }, { label: 'Three' }];\n+const languages = [{ label: 'javascript' }, { label: 'json' }];\n+\n+export default class RequestForm extends React.Component {\n+  static propTypes = {\n+    width: PropTypes.number.isRequired,\n+    height: PropTypes.number.isRequired,\n+    path: PropTypes.string.isRequired,\n+    input: PropTypes.string,\n+    selectLanguage: PropTypes.func.isRequired,\n+    setArgument: PropTypes.func.isRequired,\n+    submit: PropTypes.func.isRequired,\n+  };\n+\n+  state = {\n+    language: 'javascript',\n+    arguments: [''],\n+  };\n+\n+  onLoad = (editor) => (this.editor = editor);\n+  onChangeLanguage = ({ label }) => {\n+    this.setState({ language: label });\n+    this.editor.getSession().setMode(`ace/mode/${label}`);\n+    this.props.selectLanguage(label);\n+  };\n+  onChangeArgumentsCount = ({ label }) => {\n+    const args = this.state.arguments;\n+    const reset = (n, array = []) => [...array, ...new Array(n).fill('')].slice(0, n);","path":"src/components/request-form/request-form.js","position":86,"original_position":86,"commit_id":"7b67f274387dde2ee0a354f85c435d5382af737b","original_commit_id":"7b67f274387dde2ee0a354f85c435d5382af737b","user":{"login":"dmitriyslaym","id":22326839,"node_id":"MDQ6VXNlcjIyMzI2ODM5","avatar_url":"https://avatars0.githubusercontent.com/u/22326839?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitriyslaym","html_url":"https://github.com/dmitriyslaym","followers_url":"https://api.github.com/users/dmitriyslaym/followers","following_url":"https://api.github.com/users/dmitriyslaym/following{/other_user}","gists_url":"https://api.github.com/users/dmitriyslaym/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitriyslaym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitriyslaym/subscriptions","organizations_url":"https://api.github.com/users/dmitriyslaym/orgs","repos_url":"https://api.github.com/users/dmitriyslaym/repos","events_url":"https://api.github.com/users/dmitriyslaym/events{/privacy}","received_events_url":"https://api.github.com/users/dmitriyslaym/received_events","type":"User","site_admin":false},"body":"I don't see how does this function resetting anything. I think getRequiredArguments is a better name","created_at":"2019-03-29T08:43:01Z","updated_at":"2019-03-29T08:49:46Z","html_url":"https://github.com/capsulajs/capsulahub-ui/pull/20#discussion_r270319048","pull_request_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls/20","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls/comments/270319048"},"html":{"href":"https://github.com/capsulajs/capsulahub-ui/pull/20#discussion_r270319048"},"pull_request":{"href":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls/20","id":264909678,"node_id":"MDExOlB1bGxSZXF1ZXN0MjY0OTA5Njc4","html_url":"https://github.com/capsulajs/capsulahub-ui/pull/20","diff_url":"https://github.com/capsulajs/capsulahub-ui/pull/20.diff","patch_url":"https://github.com/capsulajs/capsulahub-ui/pull/20.patch","issue_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/issues/20","number":20,"state":"open","locked":false,"title":"Request form","user":{"login":"95kach","id":10588116,"node_id":"MDQ6VXNlcjEwNTg4MTE2","avatar_url":"https://avatars3.githubusercontent.com/u/10588116?v=4","gravatar_id":"","url":"https://api.github.com/users/95kach","html_url":"https://github.com/95kach","followers_url":"https://api.github.com/users/95kach/followers","following_url":"https://api.github.com/users/95kach/following{/other_user}","gists_url":"https://api.github.com/users/95kach/gists{/gist_id}","starred_url":"https://api.github.com/users/95kach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/95kach/subscriptions","organizations_url":"https://api.github.com/users/95kach/orgs","repos_url":"https://api.github.com/users/95kach/repos","events_url":"https://api.github.com/users/95kach/events{/privacy}","received_events_url":"https://api.github.com/users/95kach/received_events","type":"User","site_admin":false},"body":"https://github.com/capsulajs/capsulahub-ui/issues/10","created_at":"2019-03-27T12:44:28Z","updated_at":"2019-03-29T08:49:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bae0a3ca86648ef58793abf17cb32ba758d32ff9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls/20/commits","review_comments_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls/20/comments","review_comment_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/issues/20/comments","statuses_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/statuses/7b67f274387dde2ee0a354f85c435d5382af737b","head":{"label":"capsulajs:feature/request-form","ref":"feature/request-form","sha":"7b67f274387dde2ee0a354f85c435d5382af737b","user":{"login":"capsulajs","id":40060224,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMDYwMjI0","avatar_url":"https://avatars3.githubusercontent.com/u/40060224?v=4","gravatar_id":"","url":"https://api.github.com/users/capsulajs","html_url":"https://github.com/capsulajs","followers_url":"https://api.github.com/users/capsulajs/followers","following_url":"https://api.github.com/users/capsulajs/following{/other_user}","gists_url":"https://api.github.com/users/capsulajs/gists{/gist_id}","starred_url":"https://api.github.com/users/capsulajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capsulajs/subscriptions","organizations_url":"https://api.github.com/users/capsulajs/orgs","repos_url":"https://api.github.com/users/capsulajs/repos","events_url":"https://api.github.com/users/capsulajs/events{/privacy}","received_events_url":"https://api.github.com/users/capsulajs/received_events","type":"Organization","site_admin":false},"repo":{"id":147314448,"node_id":"MDEwOlJlcG9zaXRvcnkxNDczMTQ0NDg=","name":"capsulahub-ui","full_name":"capsulajs/capsulahub-ui","private":false,"owner":{"login":"capsulajs","id":40060224,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMDYwMjI0","avatar_url":"https://avatars3.githubusercontent.com/u/40060224?v=4","gravatar_id":"","url":"https://api.github.com/users/capsulajs","html_url":"https://github.com/capsulajs","followers_url":"https://api.github.com/users/capsulajs/followers","following_url":"https://api.github.com/users/capsulajs/following{/other_user}","gists_url":"https://api.github.com/users/capsulajs/gists{/gist_id}","starred_url":"https://api.github.com/users/capsulajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capsulajs/subscriptions","organizations_url":"https://api.github.com/users/capsulajs/orgs","repos_url":"https://api.github.com/users/capsulajs/repos","events_url":"https://api.github.com/users/capsulajs/events{/privacy}","received_events_url":"https://api.github.com/users/capsulajs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/capsulajs/capsulahub-ui","description":null,"fork":false,"url":"https://api.github.com/repos/capsulajs/capsulahub-ui","forks_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/forks","keys_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/teams","hooks_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/hooks","issue_events_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/issues/events{/number}","events_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/events","assignees_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/assignees{/user}","branches_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/branches{/branch}","tags_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/tags","blobs_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/languages","stargazers_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/stargazers","contributors_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/contributors","subscribers_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/subscribers","subscription_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/subscription","commits_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/contents/{+path}","compare_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/merges","archive_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/downloads","issues_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/issues{/number}","pulls_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/labels{/name}","releases_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/releases{/id}","deployments_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/deployments","created_at":"2018-09-04T08:37:05Z","updated_at":"2019-03-26T08:55:54Z","pushed_at":"2019-03-29T08:25:44Z","git_url":"git://github.com/capsulajs/capsulahub-ui.git","ssh_url":"git@github.com:capsulajs/capsulahub-ui.git","clone_url":"https://github.com/capsulajs/capsulahub-ui.git","svn_url":"https://github.com/capsulajs/capsulahub-ui","homepage":null,"size":381,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":1,"default_branch":"develop"}},"base":{"label":"capsulajs:develop","ref":"develop","sha":"ad8febcc03f8a59adc8ed1d787fbb71726db87bc","user":{"login":"capsulajs","id":40060224,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMDYwMjI0","avatar_url":"https://avatars3.githubusercontent.com/u/40060224?v=4","gravatar_id":"","url":"https://api.github.com/users/capsulajs","html_url":"https://github.com/capsulajs","followers_url":"https://api.github.com/users/capsulajs/followers","following_url":"https://api.github.com/users/capsulajs/following{/other_user}","gists_url":"https://api.github.com/users/capsulajs/gists{/gist_id}","starred_url":"https://api.github.com/users/capsulajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capsulajs/subscriptions","organizations_url":"https://api.github.com/users/capsulajs/orgs","repos_url":"https://api.github.com/users/capsulajs/repos","events_url":"https://api.github.com/users/capsulajs/events{/privacy}","received_events_url":"https://api.github.com/users/capsulajs/received_events","type":"Organization","site_admin":false},"repo":{"id":147314448,"node_id":"MDEwOlJlcG9zaXRvcnkxNDczMTQ0NDg=","name":"capsulahub-ui","full_name":"capsulajs/capsulahub-ui","private":false,"owner":{"login":"capsulajs","id":40060224,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMDYwMjI0","avatar_url":"https://avatars3.githubusercontent.com/u/40060224?v=4","gravatar_id":"","url":"https://api.github.com/users/capsulajs","html_url":"https://github.com/capsulajs","followers_url":"https://api.github.com/users/capsulajs/followers","following_url":"https://api.github.com/users/capsulajs/following{/other_user}","gists_url":"https://api.github.com/users/capsulajs/gists{/gist_id}","starred_url":"https://api.github.com/users/capsulajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capsulajs/subscriptions","organizations_url":"https://api.github.com/users/capsulajs/orgs","repos_url":"https://api.github.com/users/capsulajs/repos","events_url":"https://api.github.com/users/capsulajs/events{/privacy}","received_events_url":"https://api.github.com/users/capsulajs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/capsulajs/capsulahub-ui","description":null,"fork":false,"url":"https://api.github.com/repos/capsulajs/capsulahub-ui","forks_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/forks","keys_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/teams","hooks_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/hooks","issue_events_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/issues/events{/number}","events_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/events","assignees_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/assignees{/user}","branches_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/branches{/branch}","tags_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/tags","blobs_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/languages","stargazers_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/stargazers","contributors_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/contributors","subscribers_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/subscribers","subscription_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/subscription","commits_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/contents/{+path}","compare_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/merges","archive_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/downloads","issues_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/issues{/number}","pulls_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/labels{/name}","releases_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/releases{/id}","deployments_url":"https://api.github.com/repos/capsulajs/capsulahub-ui/deployments","created_at":"2018-09-04T08:37:05Z","updated_at":"2019-03-26T08:55:54Z","pushed_at":"2019-03-29T08:25:44Z","git_url":"git://github.com/capsulajs/capsulahub-ui.git","ssh_url":"git@github.com:capsulajs/capsulahub-ui.git","clone_url":"https://github.com/capsulajs/capsulahub-ui.git","svn_url":"https://github.com/capsulajs/capsulahub-ui","homepage":null,"size":381,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls/20"},"html":{"href":"https://github.com/capsulajs/capsulahub-ui/pull/20"},"issue":{"href":"https://api.github.com/repos/capsulajs/capsulahub-ui/issues/20"},"comments":{"href":"https://api.github.com/repos/capsulajs/capsulahub-ui/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/capsulajs/capsulahub-ui/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/capsulajs/capsulahub-ui/statuses/7b67f274387dde2ee0a354f85c435d5382af737b"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"dmitriyslaym"}}