{"action":"created","comment":{"url":"https://api.github.com/repos/cartwrightforeman/retra/pulls/comments/130446504","pull_request_review_id":53323441,"id":130446504,"diff_hunk":"@@ -0,0 +1,95 @@\n+import React, { Component } from 'react';\n+import BodyField from '../components/BodyField'\n+\n+class ListFormContainer extends Component {\n+  constructor(props) {\n+    super(props)\n+    this.state = {\n+      error: [],\n+      body: ''\n+    }\n+    this.handleChange = this.handleChange.bind(this)\n+    this.handleClearForm = this.handleClearForm.bind(this)\n+    this.handleFormSubmit = this.handleFormSubmit.bind(this)\n+    this.validateEmptyFields = this.validateEmptyFields.bind(this)\n+  }\n+\n+  handleChange(event) {\n+    const name = event.target.name\n+    const value = event.target.value\n+\n+    this.setState({ [name]: value })\n+    this.validateEmptyFields(name, value)\n+  }\n+\n+  validateEmptyFields(name, field) {\n+    let message = `Hey you left ${name} blank! `;\n+    let errorArray = [...this.state.error, message];\n+    if (field === null || field === \"\" || field === \" \") {\n+      this.setState({error: errorArray})\n+    } else {\n+      if (errorArray.includes(message)) {\n+        let newError = this.state.error.filter((error) => {\n+          return error !== message\n+        })\n+        this.setState({ error: newError })\n+      }\n+    }\n+  }\n+\n+  handleClearForm(event) {\n+    event.preventDefault();\n+    this.setState({\n+      body: ''\n+    })\n+  }\n+\n+  handleFormSubmit(event) {\n+    event.preventDefault();\n+    let formPayload = {post: {\n+      body: this.state.body\n+    }}\n+    this.props.addNewPost(formPayload);\n+    this.handleClearForm(event);\n+    let reload = 2","path":"react/src/containers/ListFormContainer.js","position":54,"original_position":54,"commit_id":"dade3a4372ef29034b50764de40689d3a1ea0851","original_commit_id":"dade3a4372ef29034b50764de40689d3a1ea0851","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Missing semicolon.","created_at":"2017-07-31T20:01:17Z","updated_at":"2017-07-31T20:01:17Z","html_url":"https://github.com/cartwrightforeman/retra/pull/2#discussion_r130446504","pull_request_url":"https://api.github.com/repos/cartwrightforeman/retra/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/cartwrightforeman/retra/pulls/comments/130446504"},"html":{"href":"https://github.com/cartwrightforeman/retra/pull/2#discussion_r130446504"},"pull_request":{"href":"https://api.github.com/repos/cartwrightforeman/retra/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/cartwrightforeman/retra/pulls/2","id":133322513,"html_url":"https://github.com/cartwrightforeman/retra/pull/2","diff_url":"https://github.com/cartwrightforeman/retra/pull/2.diff","patch_url":"https://github.com/cartwrightforeman/retra/pull/2.patch","issue_url":"https://api.github.com/repos/cartwrightforeman/retra/issues/2","number":2,"state":"open","locked":false,"title":"List","user":{"login":"cartwrightforeman","id":27019915,"avatar_url":"https://avatars2.githubusercontent.com/u/27019915?v=4","gravatar_id":"","url":"https://api.github.com/users/cartwrightforeman","html_url":"https://github.com/cartwrightforeman","followers_url":"https://api.github.com/users/cartwrightforeman/followers","following_url":"https://api.github.com/users/cartwrightforeman/following{/other_user}","gists_url":"https://api.github.com/users/cartwrightforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/cartwrightforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartwrightforeman/subscriptions","organizations_url":"https://api.github.com/users/cartwrightforeman/orgs","repos_url":"https://api.github.com/users/cartwrightforeman/repos","events_url":"https://api.github.com/users/cartwrightforeman/events{/privacy}","received_events_url":"https://api.github.com/users/cartwrightforeman/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-31T19:51:01Z","updated_at":"2017-07-31T20:01:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd797b4d8d98c4c90faec5ac9f90c5b970c4dcb1","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/cartwrightforeman/retra/pulls/2/commits","review_comments_url":"https://api.github.com/repos/cartwrightforeman/retra/pulls/2/comments","review_comment_url":"https://api.github.com/repos/cartwrightforeman/retra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cartwrightforeman/retra/issues/2/comments","statuses_url":"https://api.github.com/repos/cartwrightforeman/retra/statuses/dade3a4372ef29034b50764de40689d3a1ea0851","head":{"label":"cartwrightforeman:list","ref":"list","sha":"dade3a4372ef29034b50764de40689d3a1ea0851","user":{"login":"cartwrightforeman","id":27019915,"avatar_url":"https://avatars2.githubusercontent.com/u/27019915?v=4","gravatar_id":"","url":"https://api.github.com/users/cartwrightforeman","html_url":"https://github.com/cartwrightforeman","followers_url":"https://api.github.com/users/cartwrightforeman/followers","following_url":"https://api.github.com/users/cartwrightforeman/following{/other_user}","gists_url":"https://api.github.com/users/cartwrightforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/cartwrightforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartwrightforeman/subscriptions","organizations_url":"https://api.github.com/users/cartwrightforeman/orgs","repos_url":"https://api.github.com/users/cartwrightforeman/repos","events_url":"https://api.github.com/users/cartwrightforeman/events{/privacy}","received_events_url":"https://api.github.com/users/cartwrightforeman/received_events","type":"User","site_admin":false},"repo":{"id":98469303,"name":"retra","full_name":"cartwrightforeman/retra","owner":{"login":"cartwrightforeman","id":27019915,"avatar_url":"https://avatars2.githubusercontent.com/u/27019915?v=4","gravatar_id":"","url":"https://api.github.com/users/cartwrightforeman","html_url":"https://github.com/cartwrightforeman","followers_url":"https://api.github.com/users/cartwrightforeman/followers","following_url":"https://api.github.com/users/cartwrightforeman/following{/other_user}","gists_url":"https://api.github.com/users/cartwrightforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/cartwrightforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartwrightforeman/subscriptions","organizations_url":"https://api.github.com/users/cartwrightforeman/orgs","repos_url":"https://api.github.com/users/cartwrightforeman/repos","events_url":"https://api.github.com/users/cartwrightforeman/events{/privacy}","received_events_url":"https://api.github.com/users/cartwrightforeman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cartwrightforeman/retra","description":"Retrospective meeting facilitator","fork":false,"url":"https://api.github.com/repos/cartwrightforeman/retra","forks_url":"https://api.github.com/repos/cartwrightforeman/retra/forks","keys_url":"https://api.github.com/repos/cartwrightforeman/retra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cartwrightforeman/retra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cartwrightforeman/retra/teams","hooks_url":"https://api.github.com/repos/cartwrightforeman/retra/hooks","issue_events_url":"https://api.github.com/repos/cartwrightforeman/retra/issues/events{/number}","events_url":"https://api.github.com/repos/cartwrightforeman/retra/events","assignees_url":"https://api.github.com/repos/cartwrightforeman/retra/assignees{/user}","branches_url":"https://api.github.com/repos/cartwrightforeman/retra/branches{/branch}","tags_url":"https://api.github.com/repos/cartwrightforeman/retra/tags","blobs_url":"https://api.github.com/repos/cartwrightforeman/retra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cartwrightforeman/retra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cartwrightforeman/retra/git/refs{/sha}","trees_url":"https://api.github.com/repos/cartwrightforeman/retra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cartwrightforeman/retra/statuses/{sha}","languages_url":"https://api.github.com/repos/cartwrightforeman/retra/languages","stargazers_url":"https://api.github.com/repos/cartwrightforeman/retra/stargazers","contributors_url":"https://api.github.com/repos/cartwrightforeman/retra/contributors","subscribers_url":"https://api.github.com/repos/cartwrightforeman/retra/subscribers","subscription_url":"https://api.github.com/repos/cartwrightforeman/retra/subscription","commits_url":"https://api.github.com/repos/cartwrightforeman/retra/commits{/sha}","git_commits_url":"https://api.github.com/repos/cartwrightforeman/retra/git/commits{/sha}","comments_url":"https://api.github.com/repos/cartwrightforeman/retra/comments{/number}","issue_comment_url":"https://api.github.com/repos/cartwrightforeman/retra/issues/comments{/number}","contents_url":"https://api.github.com/repos/cartwrightforeman/retra/contents/{+path}","compare_url":"https://api.github.com/repos/cartwrightforeman/retra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cartwrightforeman/retra/merges","archive_url":"https://api.github.com/repos/cartwrightforeman/retra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cartwrightforeman/retra/downloads","issues_url":"https://api.github.com/repos/cartwrightforeman/retra/issues{/number}","pulls_url":"https://api.github.com/repos/cartwrightforeman/retra/pulls{/number}","milestones_url":"https://api.github.com/repos/cartwrightforeman/retra/milestones{/number}","notifications_url":"https://api.github.com/repos/cartwrightforeman/retra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cartwrightforeman/retra/labels{/name}","releases_url":"https://api.github.com/repos/cartwrightforeman/retra/releases{/id}","deployments_url":"https://api.github.com/repos/cartwrightforeman/retra/deployments","created_at":"2017-07-26T22:01:36Z","updated_at":"2017-07-27T01:29:46Z","pushed_at":"2017-07-31T20:00:57Z","git_url":"git://github.com/cartwrightforeman/retra.git","ssh_url":"git@github.com:cartwrightforeman/retra.git","clone_url":"https://github.com/cartwrightforeman/retra.git","svn_url":"https://github.com/cartwrightforeman/retra","homepage":null,"size":95,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"cartwrightforeman:master","ref":"master","sha":"7cf1cc1dd50eb89f3a4c71464566b54048b6e54a","user":{"login":"cartwrightforeman","id":27019915,"avatar_url":"https://avatars2.githubusercontent.com/u/27019915?v=4","gravatar_id":"","url":"https://api.github.com/users/cartwrightforeman","html_url":"https://github.com/cartwrightforeman","followers_url":"https://api.github.com/users/cartwrightforeman/followers","following_url":"https://api.github.com/users/cartwrightforeman/following{/other_user}","gists_url":"https://api.github.com/users/cartwrightforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/cartwrightforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartwrightforeman/subscriptions","organizations_url":"https://api.github.com/users/cartwrightforeman/orgs","repos_url":"https://api.github.com/users/cartwrightforeman/repos","events_url":"https://api.github.com/users/cartwrightforeman/events{/privacy}","received_events_url":"https://api.github.com/users/cartwrightforeman/received_events","type":"User","site_admin":false},"repo":{"id":98469303,"name":"retra","full_name":"cartwrightforeman/retra","owner":{"login":"cartwrightforeman","id":27019915,"avatar_url":"https://avatars2.githubusercontent.com/u/27019915?v=4","gravatar_id":"","url":"https://api.github.com/users/cartwrightforeman","html_url":"https://github.com/cartwrightforeman","followers_url":"https://api.github.com/users/cartwrightforeman/followers","following_url":"https://api.github.com/users/cartwrightforeman/following{/other_user}","gists_url":"https://api.github.com/users/cartwrightforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/cartwrightforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartwrightforeman/subscriptions","organizations_url":"https://api.github.com/users/cartwrightforeman/orgs","repos_url":"https://api.github.com/users/cartwrightforeman/repos","events_url":"https://api.github.com/users/cartwrightforeman/events{/privacy}","received_events_url":"https://api.github.com/users/cartwrightforeman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cartwrightforeman/retra","description":"Retrospective meeting facilitator","fork":false,"url":"https://api.github.com/repos/cartwrightforeman/retra","forks_url":"https://api.github.com/repos/cartwrightforeman/retra/forks","keys_url":"https://api.github.com/repos/cartwrightforeman/retra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cartwrightforeman/retra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cartwrightforeman/retra/teams","hooks_url":"https://api.github.com/repos/cartwrightforeman/retra/hooks","issue_events_url":"https://api.github.com/repos/cartwrightforeman/retra/issues/events{/number}","events_url":"https://api.github.com/repos/cartwrightforeman/retra/events","assignees_url":"https://api.github.com/repos/cartwrightforeman/retra/assignees{/user}","branches_url":"https://api.github.com/repos/cartwrightforeman/retra/branches{/branch}","tags_url":"https://api.github.com/repos/cartwrightforeman/retra/tags","blobs_url":"https://api.github.com/repos/cartwrightforeman/retra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cartwrightforeman/retra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cartwrightforeman/retra/git/refs{/sha}","trees_url":"https://api.github.com/repos/cartwrightforeman/retra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cartwrightforeman/retra/statuses/{sha}","languages_url":"https://api.github.com/repos/cartwrightforeman/retra/languages","stargazers_url":"https://api.github.com/repos/cartwrightforeman/retra/stargazers","contributors_url":"https://api.github.com/repos/cartwrightforeman/retra/contributors","subscribers_url":"https://api.github.com/repos/cartwrightforeman/retra/subscribers","subscription_url":"https://api.github.com/repos/cartwrightforeman/retra/subscription","commits_url":"https://api.github.com/repos/cartwrightforeman/retra/commits{/sha}","git_commits_url":"https://api.github.com/repos/cartwrightforeman/retra/git/commits{/sha}","comments_url":"https://api.github.com/repos/cartwrightforeman/retra/comments{/number}","issue_comment_url":"https://api.github.com/repos/cartwrightforeman/retra/issues/comments{/number}","contents_url":"https://api.github.com/repos/cartwrightforeman/retra/contents/{+path}","compare_url":"https://api.github.com/repos/cartwrightforeman/retra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cartwrightforeman/retra/merges","archive_url":"https://api.github.com/repos/cartwrightforeman/retra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cartwrightforeman/retra/downloads","issues_url":"https://api.github.com/repos/cartwrightforeman/retra/issues{/number}","pulls_url":"https://api.github.com/repos/cartwrightforeman/retra/pulls{/number}","milestones_url":"https://api.github.com/repos/cartwrightforeman/retra/milestones{/number}","notifications_url":"https://api.github.com/repos/cartwrightforeman/retra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cartwrightforeman/retra/labels{/name}","releases_url":"https://api.github.com/repos/cartwrightforeman/retra/releases{/id}","deployments_url":"https://api.github.com/repos/cartwrightforeman/retra/deployments","created_at":"2017-07-26T22:01:36Z","updated_at":"2017-07-27T01:29:46Z","pushed_at":"2017-07-31T20:00:57Z","git_url":"git://github.com/cartwrightforeman/retra.git","ssh_url":"git@github.com:cartwrightforeman/retra.git","clone_url":"https://github.com/cartwrightforeman/retra.git","svn_url":"https://github.com/cartwrightforeman/retra","homepage":null,"size":95,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cartwrightforeman/retra/pulls/2"},"html":{"href":"https://github.com/cartwrightforeman/retra/pull/2"},"issue":{"href":"https://api.github.com/repos/cartwrightforeman/retra/issues/2"},"comments":{"href":"https://api.github.com/repos/cartwrightforeman/retra/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/cartwrightforeman/retra/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/cartwrightforeman/retra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cartwrightforeman/retra/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/cartwrightforeman/retra/statuses/dade3a4372ef29034b50764de40689d3a1ea0851"}}}}
{"actor":{"display_login":"houndci-bot"}}