{"action":"created","comment":{"url":"https://api.github.com/repos/michelmansour/virgil/pulls/comments/76922505","id":76922505,"diff_hunk":"@@ -0,0 +1,58 @@\n+import React, { PropTypes } from 'react';\n+\n+class AddCommentForm extends React.Component {\n+  constructor(props) {\n+    super(props);\n+    this.state = {\n+      author: '',\n+      text: '',\n+    };\n+  }\n+\n+  handleAuthorChange = (evt) => {\n+    this.setState({ author: evt.target.value });\n+  }\n+\n+  handleTextChange = (evt) => {\n+    this.setState({ text: evt.target.value });\n+  }\n+\n+  handleSubmit = (evt) => {\n+    evt.preventDefault();\n+    const author = this.state.author.trim();\n+    const text = this.state.text.trim();\n+    const poemId = this.props.poemId;","path":"client/src/AddCommentForm.jsx","position":24,"original_position":24,"commit_id":"344bbe4a13175ded0f32be26d2f3e399367413c3","original_commit_id":"344bbe4a13175ded0f32be26d2f3e399367413c3","user":{"login":"michelmansour","id":2029335,"avatar_url":"https://avatars.githubusercontent.com/u/2029335?v=3","gravatar_id":"","url":"https://api.github.com/users/michelmansour","html_url":"https://github.com/michelmansour","followers_url":"https://api.github.com/users/michelmansour/followers","following_url":"https://api.github.com/users/michelmansour/following{/other_user}","gists_url":"https://api.github.com/users/michelmansour/gists{/gist_id}","starred_url":"https://api.github.com/users/michelmansour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelmansour/subscriptions","organizations_url":"https://api.github.com/users/michelmansour/orgs","repos_url":"https://api.github.com/users/michelmansour/repos","events_url":"https://api.github.com/users/michelmansour/events{/privacy}","received_events_url":"https://api.github.com/users/michelmansour/received_events","type":"User","site_admin":false},"body":"All usage of poem ID in this method -- and indeed in this class -- is now unnecessary. See comments below.","created_at":"2016-08-31T04:24:42Z","updated_at":"2016-08-31T04:24:42Z","html_url":"https://github.com/michelmansour/virgil/pull/6#discussion_r76922505","pull_request_url":"https://api.github.com/repos/michelmansour/virgil/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/michelmansour/virgil/pulls/comments/76922505"},"html":{"href":"https://github.com/michelmansour/virgil/pull/6#discussion_r76922505"},"pull_request":{"href":"https://api.github.com/repos/michelmansour/virgil/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/michelmansour/virgil/pulls/6","id":83027333,"html_url":"https://github.com/michelmansour/virgil/pull/6","diff_url":"https://github.com/michelmansour/virgil/pull/6.diff","patch_url":"https://github.com/michelmansour/virgil/pull/6.patch","issue_url":"https://api.github.com/repos/michelmansour/virgil/issues/6","number":6,"state":"open","locked":false,"title":"Add ability to add comments to a poem","user":{"login":"drewrey","id":7526790,"avatar_url":"https://avatars.githubusercontent.com/u/7526790?v=3","gravatar_id":"","url":"https://api.github.com/users/drewrey","html_url":"https://github.com/drewrey","followers_url":"https://api.github.com/users/drewrey/followers","following_url":"https://api.github.com/users/drewrey/following{/other_user}","gists_url":"https://api.github.com/users/drewrey/gists{/gist_id}","starred_url":"https://api.github.com/users/drewrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewrey/subscriptions","organizations_url":"https://api.github.com/users/drewrey/orgs","repos_url":"https://api.github.com/users/drewrey/repos","events_url":"https://api.github.com/users/drewrey/events{/privacy}","received_events_url":"https://api.github.com/users/drewrey/received_events","type":"User","site_admin":false},"body":"- Link comments to a poem by its id","created_at":"2016-08-28T21:12:22Z","updated_at":"2016-08-31T04:24:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf4e48c9395dec61ac2a4754a50aaa5d13447617","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/michelmansour/virgil/pulls/6/commits","review_comments_url":"https://api.github.com/repos/michelmansour/virgil/pulls/6/comments","review_comment_url":"https://api.github.com/repos/michelmansour/virgil/pulls/comments{/number}","comments_url":"https://api.github.com/repos/michelmansour/virgil/issues/6/comments","statuses_url":"https://api.github.com/repos/michelmansour/virgil/statuses/344bbe4a13175ded0f32be26d2f3e399367413c3","head":{"label":"drewrey:comments","ref":"comments","sha":"344bbe4a13175ded0f32be26d2f3e399367413c3","user":{"login":"drewrey","id":7526790,"avatar_url":"https://avatars.githubusercontent.com/u/7526790?v=3","gravatar_id":"","url":"https://api.github.com/users/drewrey","html_url":"https://github.com/drewrey","followers_url":"https://api.github.com/users/drewrey/followers","following_url":"https://api.github.com/users/drewrey/following{/other_user}","gists_url":"https://api.github.com/users/drewrey/gists{/gist_id}","starred_url":"https://api.github.com/users/drewrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewrey/subscriptions","organizations_url":"https://api.github.com/users/drewrey/orgs","repos_url":"https://api.github.com/users/drewrey/repos","events_url":"https://api.github.com/users/drewrey/events{/privacy}","received_events_url":"https://api.github.com/users/drewrey/received_events","type":"User","site_admin":false},"repo":{"id":66025878,"name":"virgil","full_name":"drewrey/virgil","owner":{"login":"drewrey","id":7526790,"avatar_url":"https://avatars.githubusercontent.com/u/7526790?v=3","gravatar_id":"","url":"https://api.github.com/users/drewrey","html_url":"https://github.com/drewrey","followers_url":"https://api.github.com/users/drewrey/followers","following_url":"https://api.github.com/users/drewrey/following{/other_user}","gists_url":"https://api.github.com/users/drewrey/gists{/gist_id}","starred_url":"https://api.github.com/users/drewrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewrey/subscriptions","organizations_url":"https://api.github.com/users/drewrey/orgs","repos_url":"https://api.github.com/users/drewrey/repos","events_url":"https://api.github.com/users/drewrey/events{/privacy}","received_events_url":"https://api.github.com/users/drewrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drewrey/virgil","description":"A delightful way to share, discuss, and annotate poetry","fork":true,"url":"https://api.github.com/repos/drewrey/virgil","forks_url":"https://api.github.com/repos/drewrey/virgil/forks","keys_url":"https://api.github.com/repos/drewrey/virgil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drewrey/virgil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drewrey/virgil/teams","hooks_url":"https://api.github.com/repos/drewrey/virgil/hooks","issue_events_url":"https://api.github.com/repos/drewrey/virgil/issues/events{/number}","events_url":"https://api.github.com/repos/drewrey/virgil/events","assignees_url":"https://api.github.com/repos/drewrey/virgil/assignees{/user}","branches_url":"https://api.github.com/repos/drewrey/virgil/branches{/branch}","tags_url":"https://api.github.com/repos/drewrey/virgil/tags","blobs_url":"https://api.github.com/repos/drewrey/virgil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drewrey/virgil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drewrey/virgil/git/refs{/sha}","trees_url":"https://api.github.com/repos/drewrey/virgil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drewrey/virgil/statuses/{sha}","languages_url":"https://api.github.com/repos/drewrey/virgil/languages","stargazers_url":"https://api.github.com/repos/drewrey/virgil/stargazers","contributors_url":"https://api.github.com/repos/drewrey/virgil/contributors","subscribers_url":"https://api.github.com/repos/drewrey/virgil/subscribers","subscription_url":"https://api.github.com/repos/drewrey/virgil/subscription","commits_url":"https://api.github.com/repos/drewrey/virgil/commits{/sha}","git_commits_url":"https://api.github.com/repos/drewrey/virgil/git/commits{/sha}","comments_url":"https://api.github.com/repos/drewrey/virgil/comments{/number}","issue_comment_url":"https://api.github.com/repos/drewrey/virgil/issues/comments{/number}","contents_url":"https://api.github.com/repos/drewrey/virgil/contents/{+path}","compare_url":"https://api.github.com/repos/drewrey/virgil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drewrey/virgil/merges","archive_url":"https://api.github.com/repos/drewrey/virgil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drewrey/virgil/downloads","issues_url":"https://api.github.com/repos/drewrey/virgil/issues{/number}","pulls_url":"https://api.github.com/repos/drewrey/virgil/pulls{/number}","milestones_url":"https://api.github.com/repos/drewrey/virgil/milestones{/number}","notifications_url":"https://api.github.com/repos/drewrey/virgil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drewrey/virgil/labels{/name}","releases_url":"https://api.github.com/repos/drewrey/virgil/releases{/id}","deployments_url":"https://api.github.com/repos/drewrey/virgil/deployments","created_at":"2016-08-18T19:45:36Z","updated_at":"2016-08-23T03:33:26Z","pushed_at":"2016-08-31T04:14:27Z","git_url":"git://github.com/drewrey/virgil.git","ssh_url":"git@github.com:drewrey/virgil.git","clone_url":"https://github.com/drewrey/virgil.git","svn_url":"https://github.com/drewrey/virgil","homepage":"","size":25,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"michelmansour:master","ref":"master","sha":"50202cff81be3e3e408a2e6cf5f23953c77753cb","user":{"login":"michelmansour","id":2029335,"avatar_url":"https://avatars.githubusercontent.com/u/2029335?v=3","gravatar_id":"","url":"https://api.github.com/users/michelmansour","html_url":"https://github.com/michelmansour","followers_url":"https://api.github.com/users/michelmansour/followers","following_url":"https://api.github.com/users/michelmansour/following{/other_user}","gists_url":"https://api.github.com/users/michelmansour/gists{/gist_id}","starred_url":"https://api.github.com/users/michelmansour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelmansour/subscriptions","organizations_url":"https://api.github.com/users/michelmansour/orgs","repos_url":"https://api.github.com/users/michelmansour/repos","events_url":"https://api.github.com/users/michelmansour/events{/privacy}","received_events_url":"https://api.github.com/users/michelmansour/received_events","type":"User","site_admin":false},"repo":{"id":65787057,"name":"virgil","full_name":"michelmansour/virgil","owner":{"login":"michelmansour","id":2029335,"avatar_url":"https://avatars.githubusercontent.com/u/2029335?v=3","gravatar_id":"","url":"https://api.github.com/users/michelmansour","html_url":"https://github.com/michelmansour","followers_url":"https://api.github.com/users/michelmansour/followers","following_url":"https://api.github.com/users/michelmansour/following{/other_user}","gists_url":"https://api.github.com/users/michelmansour/gists{/gist_id}","starred_url":"https://api.github.com/users/michelmansour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelmansour/subscriptions","organizations_url":"https://api.github.com/users/michelmansour/orgs","repos_url":"https://api.github.com/users/michelmansour/repos","events_url":"https://api.github.com/users/michelmansour/events{/privacy}","received_events_url":"https://api.github.com/users/michelmansour/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michelmansour/virgil","description":"A delightful way to share, discuss, and annotate poetry","fork":false,"url":"https://api.github.com/repos/michelmansour/virgil","forks_url":"https://api.github.com/repos/michelmansour/virgil/forks","keys_url":"https://api.github.com/repos/michelmansour/virgil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michelmansour/virgil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michelmansour/virgil/teams","hooks_url":"https://api.github.com/repos/michelmansour/virgil/hooks","issue_events_url":"https://api.github.com/repos/michelmansour/virgil/issues/events{/number}","events_url":"https://api.github.com/repos/michelmansour/virgil/events","assignees_url":"https://api.github.com/repos/michelmansour/virgil/assignees{/user}","branches_url":"https://api.github.com/repos/michelmansour/virgil/branches{/branch}","tags_url":"https://api.github.com/repos/michelmansour/virgil/tags","blobs_url":"https://api.github.com/repos/michelmansour/virgil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michelmansour/virgil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michelmansour/virgil/git/refs{/sha}","trees_url":"https://api.github.com/repos/michelmansour/virgil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michelmansour/virgil/statuses/{sha}","languages_url":"https://api.github.com/repos/michelmansour/virgil/languages","stargazers_url":"https://api.github.com/repos/michelmansour/virgil/stargazers","contributors_url":"https://api.github.com/repos/michelmansour/virgil/contributors","subscribers_url":"https://api.github.com/repos/michelmansour/virgil/subscribers","subscription_url":"https://api.github.com/repos/michelmansour/virgil/subscription","commits_url":"https://api.github.com/repos/michelmansour/virgil/commits{/sha}","git_commits_url":"https://api.github.com/repos/michelmansour/virgil/git/commits{/sha}","comments_url":"https://api.github.com/repos/michelmansour/virgil/comments{/number}","issue_comment_url":"https://api.github.com/repos/michelmansour/virgil/issues/comments{/number}","contents_url":"https://api.github.com/repos/michelmansour/virgil/contents/{+path}","compare_url":"https://api.github.com/repos/michelmansour/virgil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michelmansour/virgil/merges","archive_url":"https://api.github.com/repos/michelmansour/virgil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michelmansour/virgil/downloads","issues_url":"https://api.github.com/repos/michelmansour/virgil/issues{/number}","pulls_url":"https://api.github.com/repos/michelmansour/virgil/pulls{/number}","milestones_url":"https://api.github.com/repos/michelmansour/virgil/milestones{/number}","notifications_url":"https://api.github.com/repos/michelmansour/virgil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michelmansour/virgil/labels{/name}","releases_url":"https://api.github.com/repos/michelmansour/virgil/releases{/id}","deployments_url":"https://api.github.com/repos/michelmansour/virgil/deployments","created_at":"2016-08-16T04:17:55Z","updated_at":"2016-08-21T03:00:49Z","pushed_at":"2016-08-31T04:14:27Z","git_url":"git://github.com/michelmansour/virgil.git","ssh_url":"git@github.com:michelmansour/virgil.git","clone_url":"https://github.com/michelmansour/virgil.git","svn_url":"https://github.com/michelmansour/virgil","homepage":"","size":24,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/michelmansour/virgil/pulls/6"},"html":{"href":"https://github.com/michelmansour/virgil/pull/6"},"issue":{"href":"https://api.github.com/repos/michelmansour/virgil/issues/6"},"comments":{"href":"https://api.github.com/repos/michelmansour/virgil/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/michelmansour/virgil/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/michelmansour/virgil/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/michelmansour/virgil/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/michelmansour/virgil/statuses/344bbe4a13175ded0f32be26d2f3e399367413c3"}}}}
{"actor":{"display_login":"michelmansour"}}