GitHub PullRequestReviewCommentEvent at 2014-11-06 01:59:00
Repository: foodly
Actor: melari
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/foodly/foodly/pulls/comments/19921885","id":19921885,"diff_hunk":"@@ -0,0 +1,34 @@\n+class RestaurantController < ApplicationController\n+   before_filter :authenticate_user\n+\n+  def new\n+  end\n+\n+  def create\n+    # Check input\n+    if !@current_user.restaurant.nil?","path":"app/controllers/restaurant_controller.rb","position":9,"original_position":9,"commit_id":"9c5d4ca3691e749e8269cd23ffda5e2071f59946","original_commit_id":"75998aec147fdc70b2b356ed166d2fa9a0f117e9","user":{"login":"melari","id":821735,"avatar_url":"https://avatars.githubusercontent.com/u/821735?v=2","gravatar_id":"","url":"https://api.github.com/users/melari","html_url":"https://github.com/melari","followers_url":"https://api.github.com/users/melari/followers","following_url":"https://api.github.com/users/melari/following{/other_user}","gists_url":"https://api.github.com/users/melari/gists{/gist_id}","starred_url":"https://api.github.com/users/melari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melari/subscriptions","organizations_url":"https://api.github.com/users/melari/orgs","repos_url":"https://api.github.com/users/melari/repos","events_url":"https://api.github.com/users/melari/events{/privacy}","received_events_url":"https://api.github.com/users/melari/received_events","type":"User","site_admin":false},"body":"You could change this to use your `has_restaurant?` helper method","created_at":"2014-11-06T01:59:00Z","updated_at":"2014-11-06T01:59:00Z","html_url":"https://github.com/foodly/foodly/pull/16#discussion_r19921885","pull_request_url":"https://api.github.com/repos/foodly/foodly/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/foodly/foodly/pulls/comments/19921885"},"html":{"href":"https://github.com/foodly/foodly/pull/16#discussion_r19921885"},"pull_request":{"href":"https://api.github.com/repos/foodly/foodly/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/foodly/foodly/pulls/16","id":23950459,"html_url":"https://github.com/foodly/foodly/pull/16","diff_url":"https://github.com/foodly/foodly/pull/16.diff","patch_url":"https://github.com/foodly/foodly/pull/16.patch","issue_url":"https://api.github.com/repos/foodly/foodly/issues/16","number":16,"state":"open","locked":false,"title":"Restaurant creation","user":{"login":"oharaandrew314","id":894152,"avatar_url":"https://avatars.githubusercontent.com/u/894152?v=2","gravatar_id":"","url":"https://api.github.com/users/oharaandrew314","html_url":"https://github.com/oharaandrew314","followers_url":"https://api.github.com/users/oharaandrew314/followers","following_url":"https://api.github.com/users/oharaandrew314/following{/other_user}","gists_url":"https://api.github.com/users/oharaandrew314/gists{/gist_id}","starred_url":"https://api.github.com/users/oharaandrew314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oharaandrew314/subscriptions","organizations_url":"https://api.github.com/users/oharaandrew314/orgs","repos_url":"https://api.github.com/users/oharaandrew314/repos","events_url":"https://api.github.com/users/oharaandrew314/events{/privacy}","received_events_url":"https://api.github.com/users/oharaandrew314/received_events","type":"User","site_admin":false},"body":"Creates a restaurant and does basic server-side validation checking for non-null string and if you already have a restaurant.\r\n\r\nAlso display messages and create session header.  Currently, these partials must be manually added to the html templates.","created_at":"2014-11-06T00:31:44Z","updated_at":"2014-11-06T01:59:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77ac39efd4fc7a5dd71a267931a7365a6b21944d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/foodly/foodly/pulls/16/commits","review_comments_url":"https://api.github.com/repos/foodly/foodly/pulls/16/comments","review_comment_url":"https://api.github.com/repos/foodly/foodly/pulls/comments/{number}","comments_url":"https://api.github.com/repos/foodly/foodly/issues/16/comments","statuses_url":"https://api.github.com/repos/foodly/foodly/statuses/9c5d4ca3691e749e8269cd23ffda5e2071f59946","head":{"label":"foodly:restaurant_creation","ref":"restaurant_creation","sha":"9c5d4ca3691e749e8269cd23ffda5e2071f59946","user":{"login":"foodly","id":8724341,"avatar_url":"https://avatars.githubusercontent.com/u/8724341?v=2","gravatar_id":"","url":"https://api.github.com/users/foodly","html_url":"https://github.com/foodly","followers_url":"https://api.github.com/users/foodly/followers","following_url":"https://api.github.com/users/foodly/following{/other_user}","gists_url":"https://api.github.com/users/foodly/gists{/gist_id}","starred_url":"https://api.github.com/users/foodly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foodly/subscriptions","organizations_url":"https://api.github.com/users/foodly/orgs","repos_url":"https://api.github.com/users/foodly/repos","events_url":"https://api.github.com/users/foodly/events{/privacy}","received_events_url":"https://api.github.com/users/foodly/received_events","type":"Organization","site_admin":false},"repo":{"id":23877825,"name":"foodly","full_name":"foodly/foodly","owner":{"login":"foodly","id":8724341,"avatar_url":"https://avatars.githubusercontent.com/u/8724341?v=2","gravatar_id":"","url":"https://api.github.com/users/foodly","html_url":"https://github.com/foodly","followers_url":"https://api.github.com/users/foodly/followers","following_url":"https://api.github.com/users/foodly/following{/other_user}","gists_url":"https://api.github.com/users/foodly/gists{/gist_id}","starred_url":"https://api.github.com/users/foodly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foodly/subscriptions","organizations_url":"https://api.github.com/users/foodly/orgs","repos_url":"https://api.github.com/users/foodly/repos","events_url":"https://api.github.com/users/foodly/events{/privacy}","received_events_url":"https://api.github.com/users/foodly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/foodly/foodly","description":"","fork":false,"url":"https://api.github.com/repos/foodly/foodly","forks_url":"https://api.github.com/repos/foodly/foodly/forks","keys_url":"https://api.github.com/repos/foodly/foodly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foodly/foodly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foodly/foodly/teams","hooks_url":"https://api.github.com/repos/foodly/foodly/hooks","issue_events_url":"https://api.github.com/repos/foodly/foodly/issues/events{/number}","events_url":"https://api.github.com/repos/foodly/foodly/events","assignees_url":"https://api.github.com/repos/foodly/foodly/assignees{/user}","branches_url":"https://api.github.com/repos/foodly/foodly/branches{/branch}","tags_url":"https://api.github.com/repos/foodly/foodly/tags","blobs_url":"https://api.github.com/repos/foodly/foodly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foodly/foodly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foodly/foodly/git/refs{/sha}","trees_url":"https://api.github.com/repos/foodly/foodly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foodly/foodly/statuses/{sha}","languages_url":"https://api.github.com/repos/foodly/foodly/languages","stargazers_url":"https://api.github.com/repos/foodly/foodly/stargazers","contributors_url":"https://api.github.com/repos/foodly/foodly/contributors","subscribers_url":"https://api.github.com/repos/foodly/foodly/subscribers","subscription_url":"https://api.github.com/repos/foodly/foodly/subscription","commits_url":"https://api.github.com/repos/foodly/foodly/commits{/sha}","git_commits_url":"https://api.github.com/repos/foodly/foodly/git/commits{/sha}","comments_url":"https://api.github.com/repos/foodly/foodly/comments{/number}","issue_comment_url":"https://api.github.com/repos/foodly/foodly/issues/comments/{number}","contents_url":"https://api.github.com/repos/foodly/foodly/contents/{+path}","compare_url":"https://api.github.com/repos/foodly/foodly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foodly/foodly/merges","archive_url":"https://api.github.com/repos/foodly/foodly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foodly/foodly/downloads","issues_url":"https://api.github.com/repos/foodly/foodly/issues{/number}","pulls_url":"https://api.github.com/repos/foodly/foodly/pulls{/number}","milestones_url":"https://api.github.com/repos/foodly/foodly/milestones{/number}","notifications_url":"https://api.github.com/repos/foodly/foodly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foodly/foodly/labels{/name}","releases_url":"https://api.github.com/repos/foodly/foodly/releases{/id}","created_at":"2014-09-10T14:36:09Z","updated_at":"2014-09-10T20:37:38Z","pushed_at":"2014-11-06T01:58:52Z","git_url":"git://github.com/foodly/foodly.git","ssh_url":"git@github.com:foodly/foodly.git","clone_url":"https://github.com/foodly/foodly.git","svn_url":"https://github.com/foodly/foodly","homepage":"","size":356,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"foodly:master","ref":"master","sha":"1c19f197181e710c881a467836eca1444027dd2e","user":{"login":"foodly","id":8724341,"avatar_url":"https://avatars.githubusercontent.com/u/8724341?v=2","gravatar_id":"","url":"https://api.github.com/users/foodly","html_url":"https://github.com/foodly","followers_url":"https://api.github.com/users/foodly/followers","following_url":"https://api.github.com/users/foodly/following{/other_user}","gists_url":"https://api.github.com/users/foodly/gists{/gist_id}","starred_url":"https://api.github.com/users/foodly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foodly/subscriptions","organizations_url":"https://api.github.com/users/foodly/orgs","repos_url":"https://api.github.com/users/foodly/repos","events_url":"https://api.github.com/users/foodly/events{/privacy}","received_events_url":"https://api.github.com/users/foodly/received_events","type":"Organization","site_admin":false},"repo":{"id":23877825,"name":"foodly","full_name":"foodly/foodly","owner":{"login":"foodly","id":8724341,"avatar_url":"https://avatars.githubusercontent.com/u/8724341?v=2","gravatar_id":"","url":"https://api.github.com/users/foodly","html_url":"https://github.com/foodly","followers_url":"https://api.github.com/users/foodly/followers","following_url":"https://api.github.com/users/foodly/following{/other_user}","gists_url":"https://api.github.com/users/foodly/gists{/gist_id}","starred_url":"https://api.github.com/users/foodly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foodly/subscriptions","organizations_url":"https://api.github.com/users/foodly/orgs","repos_url":"https://api.github.com/users/foodly/repos","events_url":"https://api.github.com/users/foodly/events{/privacy}","received_events_url":"https://api.github.com/users/foodly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/foodly/foodly","description":"","fork":false,"url":"https://api.github.com/repos/foodly/foodly","forks_url":"https://api.github.com/repos/foodly/foodly/forks","keys_url":"https://api.github.com/repos/foodly/foodly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foodly/foodly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foodly/foodly/teams","hooks_url":"https://api.github.com/repos/foodly/foodly/hooks","issue_events_url":"https://api.github.com/repos/foodly/foodly/issues/events{/number}","events_url":"https://api.github.com/repos/foodly/foodly/events","assignees_url":"https://api.github.com/repos/foodly/foodly/assignees{/user}","branches_url":"https://api.github.com/repos/foodly/foodly/branches{/branch}","tags_url":"https://api.github.com/repos/foodly/foodly/tags","blobs_url":"https://api.github.com/repos/foodly/foodly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foodly/foodly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foodly/foodly/git/refs{/sha}","trees_url":"https://api.github.com/repos/foodly/foodly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foodly/foodly/statuses/{sha}","languages_url":"https://api.github.com/repos/foodly/foodly/languages","stargazers_url":"https://api.github.com/repos/foodly/foodly/stargazers","contributors_url":"https://api.github.com/repos/foodly/foodly/contributors","subscribers_url":"https://api.github.com/repos/foodly/foodly/subscribers","subscription_url":"https://api.github.com/repos/foodly/foodly/subscription","commits_url":"https://api.github.com/repos/foodly/foodly/commits{/sha}","git_commits_url":"https://api.github.com/repos/foodly/foodly/git/commits{/sha}","comments_url":"https://api.github.com/repos/foodly/foodly/comments{/number}","issue_comment_url":"https://api.github.com/repos/foodly/foodly/issues/comments/{number}","contents_url":"https://api.github.com/repos/foodly/foodly/contents/{+path}","compare_url":"https://api.github.com/repos/foodly/foodly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foodly/foodly/merges","archive_url":"https://api.github.com/repos/foodly/foodly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foodly/foodly/downloads","issues_url":"https://api.github.com/repos/foodly/foodly/issues{/number}","pulls_url":"https://api.github.com/repos/foodly/foodly/pulls{/number}","milestones_url":"https://api.github.com/repos/foodly/foodly/milestones{/number}","notifications_url":"https://api.github.com/repos/foodly/foodly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foodly/foodly/labels{/name}","releases_url":"https://api.github.com/repos/foodly/foodly/releases{/id}","created_at":"2014-09-10T14:36:09Z","updated_at":"2014-09-10T20:37:38Z","pushed_at":"2014-11-06T01:58:52Z","git_url":"git://github.com/foodly/foodly.git","ssh_url":"git@github.com:foodly/foodly.git","clone_url":"https://github.com/foodly/foodly.git","svn_url":"https://github.com/foodly/foodly","homepage":"","size":356,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/foodly/foodly/pulls/16"},"html":{"href":"https://github.com/foodly/foodly/pull/16"},"issue":{"href":"https://api.github.com/repos/foodly/foodly/issues/16"},"comments":{"href":"https://api.github.com/repos/foodly/foodly/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/foodly/foodly/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/foodly/foodly/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/foodly/foodly/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/foodly/foodly/statuses/9c5d4ca3691e749e8269cd23ffda5e2071f59946"}}}}