{"action":"created","comment":{"url":"https://api.github.com/repos/EvianneKeeney/Planted/pulls/comments/109298244","pull_request_review_id":30394853,"id":109298244,"diff_hunk":"@@ -50,43 +50,43 @@ class Plant extends Component {\n         this.setState({plants: body});\n       })\n       .catch(error => console.error(`Error in fetch: ${error.message}`));\n-  }\n-  componentDidMount() {\n-    this.getData();\n-  }\n+    }\n+    componentDidMount() {\n+      this.getData();\n+    }\n \n-  render() {\n-    let plantList = this.state.plants.map((plant, index) => {\n+    render() {\n+      let plantList = this.state.plants.map((plant, index) => {\n \n-//      DATE PLANTED\n-      let planted_date = plant.created_at\n-      let date_planted = new Date(planted_date).toUTCString();\n+        //      DATE PLANTED\n+        let planted_date = plant.created_at\n+        let date_planted = new Date(planted_date).toUTCString();\n \n-//      CYCLE\n-      let cycle_in_ms = plant.cycle * 86400000\n+        //      CYCLE\n+        let cycle_in_ms = plant.cycle * 86400000\n \n-//      DATE WATERED\n-      this.state.last_watered = plant.date_last_watered;\n-      let ms_date_last_watered = new Date(this.state.last_watered).getTime();\n+        //      DATE WATERED\n+        this.state.last_watered = plant.date_last_watered;\n+        let ms_date_last_watered = new Date(this.state.last_watered).getTime();\n \n-//      NEEDS WATERING = date watered + cycle\n-      let expected_to_water = ms_date_last_watered + cycle_in_ms\n-      let date_expected_to_water = new Date(expected_to_water).toUTCString();\n-      let date = new Date().getTime()\n-      let days_left_before_next_water = (expected_to_water - date)/86400000;\n-      let className\n-      let shadowName\n-      if (days_left_before_next_water < 0){\n-        className = \"expired\"\n-        shadowName = \"expiredShadow\"\n-        days_left_before_next_water = \"Click to start cycle\"\n-      }\n-      else {\n-        className = \"reactWaterButton\"\n-        shadowName = \"shadow\"}\n+        //      NEEDS WATERING = date watered + cycle\n+        let expected_to_water = ms_date_last_watered + cycle_in_ms\n+        let date_expected_to_water = new Date(expected_to_water).toUTCString();\n+        let date = new Date().getTime()\n+        let days_left_before_next_water = (expected_to_water - date)/86400000;\n+        let className\n+        let shadowName\n+        if (days_left_before_next_water < 0){\n+          className = \"expired\"\n+          shadowName = \"expiredShadow\"\n+          days_left_before_next_water = \"Click to start cycle\"\n+        }\n+        else {\n+          className = \"reactWaterButton\"\n+          shadowName = \"shadow\"}","path":"react/src/components/Plant.js","position":129,"original_position":129,"commit_id":"7d390ddeb5091beb796af9d4eae13bb9b5406813","original_commit_id":"7d390ddeb5091beb796af9d4eae13bb9b5406813","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.githubusercontent.com/u/6697940?v=3","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-04-02T01:57:39Z","updated_at":"2017-04-02T01:57:39Z","html_url":"https://github.com/EvianneKeeney/Planted/pull/22#discussion_r109298244","pull_request_url":"https://api.github.com/repos/EvianneKeeney/Planted/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/EvianneKeeney/Planted/pulls/comments/109298244"},"html":{"href":"https://github.com/EvianneKeeney/Planted/pull/22#discussion_r109298244"},"pull_request":{"href":"https://api.github.com/repos/EvianneKeeney/Planted/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/EvianneKeeney/Planted/pulls/22","id":113801938,"html_url":"https://github.com/EvianneKeeney/Planted/pull/22","diff_url":"https://github.com/EvianneKeeney/Planted/pull/22.diff","patch_url":"https://github.com/EvianneKeeney/Planted/pull/22.patch","issue_url":"https://api.github.com/repos/EvianneKeeney/Planted/issues/22","number":22,"state":"closed","locked":false,"title":"Geolocate","user":{"login":"EvianneKeeney","id":25093734,"avatar_url":"https://avatars2.githubusercontent.com/u/25093734?v=3","gravatar_id":"","url":"https://api.github.com/users/EvianneKeeney","html_url":"https://github.com/EvianneKeeney","followers_url":"https://api.github.com/users/EvianneKeeney/followers","following_url":"https://api.github.com/users/EvianneKeeney/following{/other_user}","gists_url":"https://api.github.com/users/EvianneKeeney/gists{/gist_id}","starred_url":"https://api.github.com/users/EvianneKeeney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvianneKeeney/subscriptions","organizations_url":"https://api.github.com/users/EvianneKeeney/orgs","repos_url":"https://api.github.com/users/EvianneKeeney/repos","events_url":"https://api.github.com/users/EvianneKeeney/events{/privacy}","received_events_url":"https://api.github.com/users/EvianneKeeney/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-02T01:57:27Z","updated_at":"2017-04-02T01:57:39Z","closed_at":"2017-04-02T01:57:31Z","merged_at":"2017-04-02T01:57:31Z","merge_commit_sha":"9df4f4c74ff5417530d77f2fa2a789db240baeda","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/EvianneKeeney/Planted/pulls/22/commits","review_comments_url":"https://api.github.com/repos/EvianneKeeney/Planted/pulls/22/comments","review_comment_url":"https://api.github.com/repos/EvianneKeeney/Planted/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EvianneKeeney/Planted/issues/22/comments","statuses_url":"https://api.github.com/repos/EvianneKeeney/Planted/statuses/7d390ddeb5091beb796af9d4eae13bb9b5406813","head":{"label":"EvianneKeeney:geolocate","ref":"geolocate","sha":"7d390ddeb5091beb796af9d4eae13bb9b5406813","user":{"login":"EvianneKeeney","id":25093734,"avatar_url":"https://avatars2.githubusercontent.com/u/25093734?v=3","gravatar_id":"","url":"https://api.github.com/users/EvianneKeeney","html_url":"https://github.com/EvianneKeeney","followers_url":"https://api.github.com/users/EvianneKeeney/followers","following_url":"https://api.github.com/users/EvianneKeeney/following{/other_user}","gists_url":"https://api.github.com/users/EvianneKeeney/gists{/gist_id}","starred_url":"https://api.github.com/users/EvianneKeeney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvianneKeeney/subscriptions","organizations_url":"https://api.github.com/users/EvianneKeeney/orgs","repos_url":"https://api.github.com/users/EvianneKeeney/repos","events_url":"https://api.github.com/users/EvianneKeeney/events{/privacy}","received_events_url":"https://api.github.com/users/EvianneKeeney/received_events","type":"User","site_admin":false},"repo":{"id":85452220,"name":"Planted","full_name":"EvianneKeeney/Planted","owner":{"login":"EvianneKeeney","id":25093734,"avatar_url":"https://avatars2.githubusercontent.com/u/25093734?v=3","gravatar_id":"","url":"https://api.github.com/users/EvianneKeeney","html_url":"https://github.com/EvianneKeeney","followers_url":"https://api.github.com/users/EvianneKeeney/followers","following_url":"https://api.github.com/users/EvianneKeeney/following{/other_user}","gists_url":"https://api.github.com/users/EvianneKeeney/gists{/gist_id}","starred_url":"https://api.github.com/users/EvianneKeeney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvianneKeeney/subscriptions","organizations_url":"https://api.github.com/users/EvianneKeeney/orgs","repos_url":"https://api.github.com/users/EvianneKeeney/repos","events_url":"https://api.github.com/users/EvianneKeeney/events{/privacy}","received_events_url":"https://api.github.com/users/EvianneKeeney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EvianneKeeney/Planted","description":"This app reminds you when to water your plants. RoR framework with JS React integration. Postgresql database. Foundation/Sass styling.","fork":false,"url":"https://api.github.com/repos/EvianneKeeney/Planted","forks_url":"https://api.github.com/repos/EvianneKeeney/Planted/forks","keys_url":"https://api.github.com/repos/EvianneKeeney/Planted/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EvianneKeeney/Planted/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EvianneKeeney/Planted/teams","hooks_url":"https://api.github.com/repos/EvianneKeeney/Planted/hooks","issue_events_url":"https://api.github.com/repos/EvianneKeeney/Planted/issues/events{/number}","events_url":"https://api.github.com/repos/EvianneKeeney/Planted/events","assignees_url":"https://api.github.com/repos/EvianneKeeney/Planted/assignees{/user}","branches_url":"https://api.github.com/repos/EvianneKeeney/Planted/branches{/branch}","tags_url":"https://api.github.com/repos/EvianneKeeney/Planted/tags","blobs_url":"https://api.github.com/repos/EvianneKeeney/Planted/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EvianneKeeney/Planted/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EvianneKeeney/Planted/git/refs{/sha}","trees_url":"https://api.github.com/repos/EvianneKeeney/Planted/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EvianneKeeney/Planted/statuses/{sha}","languages_url":"https://api.github.com/repos/EvianneKeeney/Planted/languages","stargazers_url":"https://api.github.com/repos/EvianneKeeney/Planted/stargazers","contributors_url":"https://api.github.com/repos/EvianneKeeney/Planted/contributors","subscribers_url":"https://api.github.com/repos/EvianneKeeney/Planted/subscribers","subscription_url":"https://api.github.com/repos/EvianneKeeney/Planted/subscription","commits_url":"https://api.github.com/repos/EvianneKeeney/Planted/commits{/sha}","git_commits_url":"https://api.github.com/repos/EvianneKeeney/Planted/git/commits{/sha}","comments_url":"https://api.github.com/repos/EvianneKeeney/Planted/comments{/number}","issue_comment_url":"https://api.github.com/repos/EvianneKeeney/Planted/issues/comments{/number}","contents_url":"https://api.github.com/repos/EvianneKeeney/Planted/contents/{+path}","compare_url":"https://api.github.com/repos/EvianneKeeney/Planted/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EvianneKeeney/Planted/merges","archive_url":"https://api.github.com/repos/EvianneKeeney/Planted/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EvianneKeeney/Planted/downloads","issues_url":"https://api.github.com/repos/EvianneKeeney/Planted/issues{/number}","pulls_url":"https://api.github.com/repos/EvianneKeeney/Planted/pulls{/number}","milestones_url":"https://api.github.com/repos/EvianneKeeney/Planted/milestones{/number}","notifications_url":"https://api.github.com/repos/EvianneKeeney/Planted/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EvianneKeeney/Planted/labels{/name}","releases_url":"https://api.github.com/repos/EvianneKeeney/Planted/releases{/id}","deployments_url":"https://api.github.com/repos/EvianneKeeney/Planted/deployments","created_at":"2017-03-19T05:02:42Z","updated_at":"2017-03-30T21:17:00Z","pushed_at":"2017-04-02T01:57:31Z","git_url":"git://github.com/EvianneKeeney/Planted.git","ssh_url":"git@github.com:EvianneKeeney/Planted.git","clone_url":"https://github.com/EvianneKeeney/Planted.git","svn_url":"https://github.com/EvianneKeeney/Planted","homepage":null,"size":6875,"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":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"EvianneKeeney:master","ref":"master","sha":"cd43c388969b7c078356db74eb255e59024cb25a","user":{"login":"EvianneKeeney","id":25093734,"avatar_url":"https://avatars2.githubusercontent.com/u/25093734?v=3","gravatar_id":"","url":"https://api.github.com/users/EvianneKeeney","html_url":"https://github.com/EvianneKeeney","followers_url":"https://api.github.com/users/EvianneKeeney/followers","following_url":"https://api.github.com/users/EvianneKeeney/following{/other_user}","gists_url":"https://api.github.com/users/EvianneKeeney/gists{/gist_id}","starred_url":"https://api.github.com/users/EvianneKeeney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvianneKeeney/subscriptions","organizations_url":"https://api.github.com/users/EvianneKeeney/orgs","repos_url":"https://api.github.com/users/EvianneKeeney/repos","events_url":"https://api.github.com/users/EvianneKeeney/events{/privacy}","received_events_url":"https://api.github.com/users/EvianneKeeney/received_events","type":"User","site_admin":false},"repo":{"id":85452220,"name":"Planted","full_name":"EvianneKeeney/Planted","owner":{"login":"EvianneKeeney","id":25093734,"avatar_url":"https://avatars2.githubusercontent.com/u/25093734?v=3","gravatar_id":"","url":"https://api.github.com/users/EvianneKeeney","html_url":"https://github.com/EvianneKeeney","followers_url":"https://api.github.com/users/EvianneKeeney/followers","following_url":"https://api.github.com/users/EvianneKeeney/following{/other_user}","gists_url":"https://api.github.com/users/EvianneKeeney/gists{/gist_id}","starred_url":"https://api.github.com/users/EvianneKeeney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvianneKeeney/subscriptions","organizations_url":"https://api.github.com/users/EvianneKeeney/orgs","repos_url":"https://api.github.com/users/EvianneKeeney/repos","events_url":"https://api.github.com/users/EvianneKeeney/events{/privacy}","received_events_url":"https://api.github.com/users/EvianneKeeney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EvianneKeeney/Planted","description":"This app reminds you when to water your plants. RoR framework with JS React integration. Postgresql database. Foundation/Sass styling.","fork":false,"url":"https://api.github.com/repos/EvianneKeeney/Planted","forks_url":"https://api.github.com/repos/EvianneKeeney/Planted/forks","keys_url":"https://api.github.com/repos/EvianneKeeney/Planted/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EvianneKeeney/Planted/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EvianneKeeney/Planted/teams","hooks_url":"https://api.github.com/repos/EvianneKeeney/Planted/hooks","issue_events_url":"https://api.github.com/repos/EvianneKeeney/Planted/issues/events{/number}","events_url":"https://api.github.com/repos/EvianneKeeney/Planted/events","assignees_url":"https://api.github.com/repos/EvianneKeeney/Planted/assignees{/user}","branches_url":"https://api.github.com/repos/EvianneKeeney/Planted/branches{/branch}","tags_url":"https://api.github.com/repos/EvianneKeeney/Planted/tags","blobs_url":"https://api.github.com/repos/EvianneKeeney/Planted/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EvianneKeeney/Planted/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EvianneKeeney/Planted/git/refs{/sha}","trees_url":"https://api.github.com/repos/EvianneKeeney/Planted/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EvianneKeeney/Planted/statuses/{sha}","languages_url":"https://api.github.com/repos/EvianneKeeney/Planted/languages","stargazers_url":"https://api.github.com/repos/EvianneKeeney/Planted/stargazers","contributors_url":"https://api.github.com/repos/EvianneKeeney/Planted/contributors","subscribers_url":"https://api.github.com/repos/EvianneKeeney/Planted/subscribers","subscription_url":"https://api.github.com/repos/EvianneKeeney/Planted/subscription","commits_url":"https://api.github.com/repos/EvianneKeeney/Planted/commits{/sha}","git_commits_url":"https://api.github.com/repos/EvianneKeeney/Planted/git/commits{/sha}","comments_url":"https://api.github.com/repos/EvianneKeeney/Planted/comments{/number}","issue_comment_url":"https://api.github.com/repos/EvianneKeeney/Planted/issues/comments{/number}","contents_url":"https://api.github.com/repos/EvianneKeeney/Planted/contents/{+path}","compare_url":"https://api.github.com/repos/EvianneKeeney/Planted/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EvianneKeeney/Planted/merges","archive_url":"https://api.github.com/repos/EvianneKeeney/Planted/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EvianneKeeney/Planted/downloads","issues_url":"https://api.github.com/repos/EvianneKeeney/Planted/issues{/number}","pulls_url":"https://api.github.com/repos/EvianneKeeney/Planted/pulls{/number}","milestones_url":"https://api.github.com/repos/EvianneKeeney/Planted/milestones{/number}","notifications_url":"https://api.github.com/repos/EvianneKeeney/Planted/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EvianneKeeney/Planted/labels{/name}","releases_url":"https://api.github.com/repos/EvianneKeeney/Planted/releases{/id}","deployments_url":"https://api.github.com/repos/EvianneKeeney/Planted/deployments","created_at":"2017-03-19T05:02:42Z","updated_at":"2017-03-30T21:17:00Z","pushed_at":"2017-04-02T01:57:31Z","git_url":"git://github.com/EvianneKeeney/Planted.git","ssh_url":"git@github.com:EvianneKeeney/Planted.git","clone_url":"https://github.com/EvianneKeeney/Planted.git","svn_url":"https://github.com/EvianneKeeney/Planted","homepage":null,"size":6875,"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":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EvianneKeeney/Planted/pulls/22"},"html":{"href":"https://github.com/EvianneKeeney/Planted/pull/22"},"issue":{"href":"https://api.github.com/repos/EvianneKeeney/Planted/issues/22"},"comments":{"href":"https://api.github.com/repos/EvianneKeeney/Planted/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/EvianneKeeney/Planted/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/EvianneKeeney/Planted/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EvianneKeeney/Planted/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/EvianneKeeney/Planted/statuses/7d390ddeb5091beb796af9d4eae13bb9b5406813"}}}}
{"actor":{"display_login":"houndci-bot"}}