{"action":"created","comment":{"url":"https://api.github.com/repos/Growstuff/growstuff/pulls/comments/24313515","id":24313515,"diff_hunk":"@@ -6,7 +6,7 @@\n   %ul\n     - crop.plantings.take(3).each do |planting|\n       %li\n-        = link_to \"#{planting.owner} planted #{planting.quantity} #{planting.planted_from}.\", planting_path(planting)\n+        = link_to display_planting(planting), planting_path(planting)","path":"app/views/crops/_plantings.html.haml","position":5,"original_position":5,"commit_id":"9318e4195c1850cf78965419a6a3846e76c9dcaa","original_commit_id":"9318e4195c1850cf78965419a6a3846e76c9dcaa","user":{"login":"tygriffin","id":4317136,"avatar_url":"https://avatars.githubusercontent.com/u/4317136?v=3","gravatar_id":"","url":"https://api.github.com/users/tygriffin","html_url":"https://github.com/tygriffin","followers_url":"https://api.github.com/users/tygriffin/followers","following_url":"https://api.github.com/users/tygriffin/following{/other_user}","gists_url":"https://api.github.com/users/tygriffin/gists{/gist_id}","starred_url":"https://api.github.com/users/tygriffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tygriffin/subscriptions","organizations_url":"https://api.github.com/users/tygriffin/orgs","repos_url":"https://api.github.com/users/tygriffin/repos","events_url":"https://api.github.com/users/tygriffin/events{/privacy}","received_events_url":"https://api.github.com/users/tygriffin/received_events","type":"User","site_admin":false},"body":"This may be my personal preference, but I would probably refactor this to look like:\r\n```\r\n= link_to planting.to_sentence, planting_path(planting)\r\n```","created_at":"2015-02-09T08:14:59Z","updated_at":"2015-02-09T08:14:59Z","html_url":"https://github.com/Growstuff/growstuff/pull/698#discussion_r24313515","pull_request_url":"https://api.github.com/repos/Growstuff/growstuff/pulls/698","_links":{"self":{"href":"https://api.github.com/repos/Growstuff/growstuff/pulls/comments/24313515"},"html":{"href":"https://github.com/Growstuff/growstuff/pull/698#discussion_r24313515"},"pull_request":{"href":"https://api.github.com/repos/Growstuff/growstuff/pulls/698"}}},"pull_request":{"url":"https://api.github.com/repos/Growstuff/growstuff/pulls/698","id":28866521,"html_url":"https://github.com/Growstuff/growstuff/pull/698","diff_url":"https://github.com/Growstuff/growstuff/pull/698.diff","patch_url":"https://github.com/Growstuff/growstuff/pull/698.patch","issue_url":"https://api.github.com/repos/Growstuff/growstuff/issues/698","number":698,"state":"open","locked":false,"title":"Added Helper for See Who's Planted Link Text","user":{"login":"gabrielle27","id":416920,"avatar_url":"https://avatars.githubusercontent.com/u/416920?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielle27","html_url":"https://github.com/gabrielle27","followers_url":"https://api.github.com/users/gabrielle27/followers","following_url":"https://api.github.com/users/gabrielle27/following{/other_user}","gists_url":"https://api.github.com/users/gabrielle27/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielle27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielle27/subscriptions","organizations_url":"https://api.github.com/users/gabrielle27/orgs","repos_url":"https://api.github.com/users/gabrielle27/repos","events_url":"https://api.github.com/users/gabrielle27/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielle27/received_events","type":"User","site_admin":false},"body":"Quantity and planted_from are not required\r\nto add a planting. This change handles\r\nthe cases where one or both attributes are\r\nmissing.\r\n\r\nFixes #633\r\n\r\n\r\n","created_at":"2015-02-07T16:51:56Z","updated_at":"2015-02-09T08:14:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3898b775f054691f1d5447e0c331209d4297db92","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Growstuff/growstuff/pulls/698/commits","review_comments_url":"https://api.github.com/repos/Growstuff/growstuff/pulls/698/comments","review_comment_url":"https://api.github.com/repos/Growstuff/growstuff/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Growstuff/growstuff/issues/698/comments","statuses_url":"https://api.github.com/repos/Growstuff/growstuff/statuses/9318e4195c1850cf78965419a6a3846e76c9dcaa","head":{"label":"gabrielle27:crop-sidebar-display-633","ref":"crop-sidebar-display-633","sha":"9318e4195c1850cf78965419a6a3846e76c9dcaa","user":{"login":"gabrielle27","id":416920,"avatar_url":"https://avatars.githubusercontent.com/u/416920?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielle27","html_url":"https://github.com/gabrielle27","followers_url":"https://api.github.com/users/gabrielle27/followers","following_url":"https://api.github.com/users/gabrielle27/following{/other_user}","gists_url":"https://api.github.com/users/gabrielle27/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielle27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielle27/subscriptions","organizations_url":"https://api.github.com/users/gabrielle27/orgs","repos_url":"https://api.github.com/users/gabrielle27/repos","events_url":"https://api.github.com/users/gabrielle27/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielle27/received_events","type":"User","site_admin":false},"repo":{"id":30381862,"name":"growstuff","full_name":"gabrielle27/growstuff","owner":{"login":"gabrielle27","id":416920,"avatar_url":"https://avatars.githubusercontent.com/u/416920?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielle27","html_url":"https://github.com/gabrielle27","followers_url":"https://api.github.com/users/gabrielle27/followers","following_url":"https://api.github.com/users/gabrielle27/following{/other_user}","gists_url":"https://api.github.com/users/gabrielle27/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielle27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielle27/subscriptions","organizations_url":"https://api.github.com/users/gabrielle27/orgs","repos_url":"https://api.github.com/users/gabrielle27/repos","events_url":"https://api.github.com/users/gabrielle27/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielle27/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabrielle27/growstuff","description":"Open data project for small-scale food growers","fork":true,"url":"https://api.github.com/repos/gabrielle27/growstuff","forks_url":"https://api.github.com/repos/gabrielle27/growstuff/forks","keys_url":"https://api.github.com/repos/gabrielle27/growstuff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabrielle27/growstuff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabrielle27/growstuff/teams","hooks_url":"https://api.github.com/repos/gabrielle27/growstuff/hooks","issue_events_url":"https://api.github.com/repos/gabrielle27/growstuff/issues/events{/number}","events_url":"https://api.github.com/repos/gabrielle27/growstuff/events","assignees_url":"https://api.github.com/repos/gabrielle27/growstuff/assignees{/user}","branches_url":"https://api.github.com/repos/gabrielle27/growstuff/branches{/branch}","tags_url":"https://api.github.com/repos/gabrielle27/growstuff/tags","blobs_url":"https://api.github.com/repos/gabrielle27/growstuff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabrielle27/growstuff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabrielle27/growstuff/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabrielle27/growstuff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabrielle27/growstuff/statuses/{sha}","languages_url":"https://api.github.com/repos/gabrielle27/growstuff/languages","stargazers_url":"https://api.github.com/repos/gabrielle27/growstuff/stargazers","contributors_url":"https://api.github.com/repos/gabrielle27/growstuff/contributors","subscribers_url":"https://api.github.com/repos/gabrielle27/growstuff/subscribers","subscription_url":"https://api.github.com/repos/gabrielle27/growstuff/subscription","commits_url":"https://api.github.com/repos/gabrielle27/growstuff/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabrielle27/growstuff/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabrielle27/growstuff/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabrielle27/growstuff/issues/comments/{number}","contents_url":"https://api.github.com/repos/gabrielle27/growstuff/contents/{+path}","compare_url":"https://api.github.com/repos/gabrielle27/growstuff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabrielle27/growstuff/merges","archive_url":"https://api.github.com/repos/gabrielle27/growstuff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabrielle27/growstuff/downloads","issues_url":"https://api.github.com/repos/gabrielle27/growstuff/issues{/number}","pulls_url":"https://api.github.com/repos/gabrielle27/growstuff/pulls{/number}","milestones_url":"https://api.github.com/repos/gabrielle27/growstuff/milestones{/number}","notifications_url":"https://api.github.com/repos/gabrielle27/growstuff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabrielle27/growstuff/labels{/name}","releases_url":"https://api.github.com/repos/gabrielle27/growstuff/releases{/id}","created_at":"2015-02-05T22:27:36Z","updated_at":"2015-02-05T22:27:37Z","pushed_at":"2015-02-07T16:39:00Z","git_url":"git://github.com/gabrielle27/growstuff.git","ssh_url":"git@github.com:gabrielle27/growstuff.git","clone_url":"https://github.com/gabrielle27/growstuff.git","svn_url":"https://github.com/gabrielle27/growstuff","homepage":"http://growstuff.org/","size":8317,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"Growstuff:dev","ref":"dev","sha":"4c6b96e59099577619675bdf9540b10f999b3fa7","user":{"login":"Growstuff","id":2066469,"avatar_url":"https://avatars.githubusercontent.com/u/2066469?v=3","gravatar_id":"","url":"https://api.github.com/users/Growstuff","html_url":"https://github.com/Growstuff","followers_url":"https://api.github.com/users/Growstuff/followers","following_url":"https://api.github.com/users/Growstuff/following{/other_user}","gists_url":"https://api.github.com/users/Growstuff/gists{/gist_id}","starred_url":"https://api.github.com/users/Growstuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Growstuff/subscriptions","organizations_url":"https://api.github.com/users/Growstuff/orgs","repos_url":"https://api.github.com/users/Growstuff/repos","events_url":"https://api.github.com/users/Growstuff/events{/privacy}","received_events_url":"https://api.github.com/users/Growstuff/received_events","type":"Organization","site_admin":false},"repo":{"id":5337437,"name":"growstuff","full_name":"Growstuff/growstuff","owner":{"login":"Growstuff","id":2066469,"avatar_url":"https://avatars.githubusercontent.com/u/2066469?v=3","gravatar_id":"","url":"https://api.github.com/users/Growstuff","html_url":"https://github.com/Growstuff","followers_url":"https://api.github.com/users/Growstuff/followers","following_url":"https://api.github.com/users/Growstuff/following{/other_user}","gists_url":"https://api.github.com/users/Growstuff/gists{/gist_id}","starred_url":"https://api.github.com/users/Growstuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Growstuff/subscriptions","organizations_url":"https://api.github.com/users/Growstuff/orgs","repos_url":"https://api.github.com/users/Growstuff/repos","events_url":"https://api.github.com/users/Growstuff/events{/privacy}","received_events_url":"https://api.github.com/users/Growstuff/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Growstuff/growstuff","description":"Open data project for small-scale food growers","fork":false,"url":"https://api.github.com/repos/Growstuff/growstuff","forks_url":"https://api.github.com/repos/Growstuff/growstuff/forks","keys_url":"https://api.github.com/repos/Growstuff/growstuff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Growstuff/growstuff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Growstuff/growstuff/teams","hooks_url":"https://api.github.com/repos/Growstuff/growstuff/hooks","issue_events_url":"https://api.github.com/repos/Growstuff/growstuff/issues/events{/number}","events_url":"https://api.github.com/repos/Growstuff/growstuff/events","assignees_url":"https://api.github.com/repos/Growstuff/growstuff/assignees{/user}","branches_url":"https://api.github.com/repos/Growstuff/growstuff/branches{/branch}","tags_url":"https://api.github.com/repos/Growstuff/growstuff/tags","blobs_url":"https://api.github.com/repos/Growstuff/growstuff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Growstuff/growstuff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Growstuff/growstuff/git/refs{/sha}","trees_url":"https://api.github.com/repos/Growstuff/growstuff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Growstuff/growstuff/statuses/{sha}","languages_url":"https://api.github.com/repos/Growstuff/growstuff/languages","stargazers_url":"https://api.github.com/repos/Growstuff/growstuff/stargazers","contributors_url":"https://api.github.com/repos/Growstuff/growstuff/contributors","subscribers_url":"https://api.github.com/repos/Growstuff/growstuff/subscribers","subscription_url":"https://api.github.com/repos/Growstuff/growstuff/subscription","commits_url":"https://api.github.com/repos/Growstuff/growstuff/commits{/sha}","git_commits_url":"https://api.github.com/repos/Growstuff/growstuff/git/commits{/sha}","comments_url":"https://api.github.com/repos/Growstuff/growstuff/comments{/number}","issue_comment_url":"https://api.github.com/repos/Growstuff/growstuff/issues/comments/{number}","contents_url":"https://api.github.com/repos/Growstuff/growstuff/contents/{+path}","compare_url":"https://api.github.com/repos/Growstuff/growstuff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Growstuff/growstuff/merges","archive_url":"https://api.github.com/repos/Growstuff/growstuff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Growstuff/growstuff/downloads","issues_url":"https://api.github.com/repos/Growstuff/growstuff/issues{/number}","pulls_url":"https://api.github.com/repos/Growstuff/growstuff/pulls{/number}","milestones_url":"https://api.github.com/repos/Growstuff/growstuff/milestones{/number}","notifications_url":"https://api.github.com/repos/Growstuff/growstuff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Growstuff/growstuff/labels{/name}","releases_url":"https://api.github.com/repos/Growstuff/growstuff/releases{/id}","created_at":"2012-08-08T05:13:37Z","updated_at":"2015-02-09T06:53:12Z","pushed_at":"2015-02-09T06:53:11Z","git_url":"git://github.com/Growstuff/growstuff.git","ssh_url":"git@github.com:Growstuff/growstuff.git","clone_url":"https://github.com/Growstuff/growstuff.git","svn_url":"https://github.com/Growstuff/growstuff","homepage":"http://growstuff.org/","size":8317,"stargazers_count":124,"watchers_count":124,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":162,"forks":75,"open_issues":162,"watchers":124,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Growstuff/growstuff/pulls/698"},"html":{"href":"https://github.com/Growstuff/growstuff/pull/698"},"issue":{"href":"https://api.github.com/repos/Growstuff/growstuff/issues/698"},"comments":{"href":"https://api.github.com/repos/Growstuff/growstuff/issues/698/comments"},"review_comments":{"href":"https://api.github.com/repos/Growstuff/growstuff/pulls/698/comments"},"review_comment":{"href":"https://api.github.com/repos/Growstuff/growstuff/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Growstuff/growstuff/pulls/698/commits"},"statuses":{"href":"https://api.github.com/repos/Growstuff/growstuff/statuses/9318e4195c1850cf78965419a6a3846e76c9dcaa"}}}}