{"action":"created","comment":{"url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls/comments/195330103","pull_request_review_id":128675008,"id":195330103,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTMzMDEwMw==","diff_hunk":"@@ -0,0 +1,45 @@\n+class EventsController < ApplicationController\n+  before_action :set_event, only: [:show, :edit, :update, :destroy]\n+\n+  def show\n+  end\n+\n+  def new\n+    @event = Event.new\n+  end\n+\n+  def edit\n+  end\n+\n+  def create\n+    @event = Event.new(event_params)\n+\n+    if @event.save\n+      redirect_to @event, notice: 'Event was successfully created.'\n+    else\n+      render :new\n+    end\n+  end\n+\n+  def update\n+    if @event.update(event_params)\n+      redirect_to @event, notice: 'Event was successfully updated.'\n+    else\n+      render :edit\n+    end\n+  end\n+\n+  def destroy\n+    @event.destroy","path":"app/controllers/events_controller.rb","position":33,"original_position":33,"commit_id":"9346d7c3d03d291838b47ca11d86eea95f4e3b35","original_commit_id":"8ad5e2cb09250b18843506e5e8878ad1d8b0ca75","user":{"login":"masayoshi-toku","id":39050027,"node_id":"MDQ6VXNlcjM5MDUwMDI3","avatar_url":"https://avatars1.githubusercontent.com/u/39050027?v=4","gravatar_id":"","url":"https://api.github.com/users/masayoshi-toku","html_url":"https://github.com/masayoshi-toku","followers_url":"https://api.github.com/users/masayoshi-toku/followers","following_url":"https://api.github.com/users/masayoshi-toku/following{/other_user}","gists_url":"https://api.github.com/users/masayoshi-toku/gists{/gist_id}","starred_url":"https://api.github.com/users/masayoshi-toku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masayoshi-toku/subscriptions","organizations_url":"https://api.github.com/users/masayoshi-toku/orgs","repos_url":"https://api.github.com/users/masayoshi-toku/repos","events_url":"https://api.github.com/users/masayoshi-toku/events{/privacy}","received_events_url":"https://api.github.com/users/masayoshi-toku/received_events","type":"User","site_admin":false},"body":"承知しました！","created_at":"2018-06-14T07:52:22Z","updated_at":"2018-06-14T07:52:23Z","html_url":"https://github.com/masayoshi-toku/nomikai_adjustment/pull/5#discussion_r195330103","pull_request_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls/5","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls/comments/195330103"},"html":{"href":"https://github.com/masayoshi-toku/nomikai_adjustment/pull/5#discussion_r195330103"},"pull_request":{"href":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls/5"}},"in_reply_to_id":195329191},"pull_request":{"url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls/5","id":194800041,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0ODAwMDQx","html_url":"https://github.com/masayoshi-toku/nomikai_adjustment/pull/5","diff_url":"https://github.com/masayoshi-toku/nomikai_adjustment/pull/5.diff","patch_url":"https://github.com/masayoshi-toku/nomikai_adjustment/pull/5.patch","issue_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/issues/5","number":5,"state":"open","locked":false,"title":"Eventsコントローラーの追加","user":{"login":"masayoshi-toku","id":39050027,"node_id":"MDQ6VXNlcjM5MDUwMDI3","avatar_url":"https://avatars1.githubusercontent.com/u/39050027?v=4","gravatar_id":"","url":"https://api.github.com/users/masayoshi-toku","html_url":"https://github.com/masayoshi-toku","followers_url":"https://api.github.com/users/masayoshi-toku/followers","following_url":"https://api.github.com/users/masayoshi-toku/following{/other_user}","gists_url":"https://api.github.com/users/masayoshi-toku/gists{/gist_id}","starred_url":"https://api.github.com/users/masayoshi-toku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masayoshi-toku/subscriptions","organizations_url":"https://api.github.com/users/masayoshi-toku/orgs","repos_url":"https://api.github.com/users/masayoshi-toku/repos","events_url":"https://api.github.com/users/masayoshi-toku/events{/privacy}","received_events_url":"https://api.github.com/users/masayoshi-toku/received_events","type":"User","site_admin":false},"body":"# 目的\r\nEventsコントローラーを追加し、テストを書きました。\r\n\r\n# 内容\r\nEventsコントローラーを追加し、テストを書きました。コミットが多いのは、既出のプルリクエストの内容を踏まえたブランチで作業をしたからです。\r\n\r\n確認の方をよろしくお願いします。","created_at":"2018-06-14T07:23:11Z","updated_at":"2018-06-14T07:52:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2645a0e259cf243c3004a32d5e83ea3f7145cdbd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls/5/commits","review_comments_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls/5/comments","review_comment_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/issues/5/comments","statuses_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/statuses/9346d7c3d03d291838b47ca11d86eea95f4e3b35","head":{"label":"masayoshi-toku:feature/add-event-controller","ref":"feature/add-event-controller","sha":"9346d7c3d03d291838b47ca11d86eea95f4e3b35","user":{"login":"masayoshi-toku","id":39050027,"node_id":"MDQ6VXNlcjM5MDUwMDI3","avatar_url":"https://avatars1.githubusercontent.com/u/39050027?v=4","gravatar_id":"","url":"https://api.github.com/users/masayoshi-toku","html_url":"https://github.com/masayoshi-toku","followers_url":"https://api.github.com/users/masayoshi-toku/followers","following_url":"https://api.github.com/users/masayoshi-toku/following{/other_user}","gists_url":"https://api.github.com/users/masayoshi-toku/gists{/gist_id}","starred_url":"https://api.github.com/users/masayoshi-toku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masayoshi-toku/subscriptions","organizations_url":"https://api.github.com/users/masayoshi-toku/orgs","repos_url":"https://api.github.com/users/masayoshi-toku/repos","events_url":"https://api.github.com/users/masayoshi-toku/events{/privacy}","received_events_url":"https://api.github.com/users/masayoshi-toku/received_events","type":"User","site_admin":false},"repo":{"id":136150198,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYxNTAxOTg=","name":"nomikai_adjustment","full_name":"masayoshi-toku/nomikai_adjustment","owner":{"login":"masayoshi-toku","id":39050027,"node_id":"MDQ6VXNlcjM5MDUwMDI3","avatar_url":"https://avatars1.githubusercontent.com/u/39050027?v=4","gravatar_id":"","url":"https://api.github.com/users/masayoshi-toku","html_url":"https://github.com/masayoshi-toku","followers_url":"https://api.github.com/users/masayoshi-toku/followers","following_url":"https://api.github.com/users/masayoshi-toku/following{/other_user}","gists_url":"https://api.github.com/users/masayoshi-toku/gists{/gist_id}","starred_url":"https://api.github.com/users/masayoshi-toku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masayoshi-toku/subscriptions","organizations_url":"https://api.github.com/users/masayoshi-toku/orgs","repos_url":"https://api.github.com/users/masayoshi-toku/repos","events_url":"https://api.github.com/users/masayoshi-toku/events{/privacy}","received_events_url":"https://api.github.com/users/masayoshi-toku/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/masayoshi-toku/nomikai_adjustment","description":null,"fork":false,"url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment","forks_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/forks","keys_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/teams","hooks_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/hooks","issue_events_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/issues/events{/number}","events_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/events","assignees_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/assignees{/user}","branches_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/branches{/branch}","tags_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/tags","blobs_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/git/refs{/sha}","trees_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/statuses/{sha}","languages_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/languages","stargazers_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/stargazers","contributors_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/contributors","subscribers_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/subscribers","subscription_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/subscription","commits_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/commits{/sha}","git_commits_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/git/commits{/sha}","comments_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/comments{/number}","issue_comment_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/issues/comments{/number}","contents_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/contents/{+path}","compare_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/merges","archive_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/downloads","issues_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/issues{/number}","pulls_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls{/number}","milestones_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/milestones{/number}","notifications_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/labels{/name}","releases_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/releases{/id}","deployments_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/deployments","created_at":"2018-06-05T09:04:02Z","updated_at":"2018-06-14T07:33:47Z","pushed_at":"2018-06-14T07:47:59Z","git_url":"git://github.com/masayoshi-toku/nomikai_adjustment.git","ssh_url":"git@github.com:masayoshi-toku/nomikai_adjustment.git","clone_url":"https://github.com/masayoshi-toku/nomikai_adjustment.git","svn_url":"https://github.com/masayoshi-toku/nomikai_adjustment","homepage":null,"size":88,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"masayoshi-toku:master","ref":"master","sha":"c88e7a944000276bf5383654278490ea868c9467","user":{"login":"masayoshi-toku","id":39050027,"node_id":"MDQ6VXNlcjM5MDUwMDI3","avatar_url":"https://avatars1.githubusercontent.com/u/39050027?v=4","gravatar_id":"","url":"https://api.github.com/users/masayoshi-toku","html_url":"https://github.com/masayoshi-toku","followers_url":"https://api.github.com/users/masayoshi-toku/followers","following_url":"https://api.github.com/users/masayoshi-toku/following{/other_user}","gists_url":"https://api.github.com/users/masayoshi-toku/gists{/gist_id}","starred_url":"https://api.github.com/users/masayoshi-toku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masayoshi-toku/subscriptions","organizations_url":"https://api.github.com/users/masayoshi-toku/orgs","repos_url":"https://api.github.com/users/masayoshi-toku/repos","events_url":"https://api.github.com/users/masayoshi-toku/events{/privacy}","received_events_url":"https://api.github.com/users/masayoshi-toku/received_events","type":"User","site_admin":false},"repo":{"id":136150198,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYxNTAxOTg=","name":"nomikai_adjustment","full_name":"masayoshi-toku/nomikai_adjustment","owner":{"login":"masayoshi-toku","id":39050027,"node_id":"MDQ6VXNlcjM5MDUwMDI3","avatar_url":"https://avatars1.githubusercontent.com/u/39050027?v=4","gravatar_id":"","url":"https://api.github.com/users/masayoshi-toku","html_url":"https://github.com/masayoshi-toku","followers_url":"https://api.github.com/users/masayoshi-toku/followers","following_url":"https://api.github.com/users/masayoshi-toku/following{/other_user}","gists_url":"https://api.github.com/users/masayoshi-toku/gists{/gist_id}","starred_url":"https://api.github.com/users/masayoshi-toku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masayoshi-toku/subscriptions","organizations_url":"https://api.github.com/users/masayoshi-toku/orgs","repos_url":"https://api.github.com/users/masayoshi-toku/repos","events_url":"https://api.github.com/users/masayoshi-toku/events{/privacy}","received_events_url":"https://api.github.com/users/masayoshi-toku/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/masayoshi-toku/nomikai_adjustment","description":null,"fork":false,"url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment","forks_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/forks","keys_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/teams","hooks_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/hooks","issue_events_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/issues/events{/number}","events_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/events","assignees_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/assignees{/user}","branches_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/branches{/branch}","tags_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/tags","blobs_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/git/refs{/sha}","trees_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/statuses/{sha}","languages_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/languages","stargazers_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/stargazers","contributors_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/contributors","subscribers_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/subscribers","subscription_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/subscription","commits_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/commits{/sha}","git_commits_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/git/commits{/sha}","comments_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/comments{/number}","issue_comment_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/issues/comments{/number}","contents_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/contents/{+path}","compare_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/merges","archive_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/downloads","issues_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/issues{/number}","pulls_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls{/number}","milestones_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/milestones{/number}","notifications_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/labels{/name}","releases_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/releases{/id}","deployments_url":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/deployments","created_at":"2018-06-05T09:04:02Z","updated_at":"2018-06-14T07:33:47Z","pushed_at":"2018-06-14T07:47:59Z","git_url":"git://github.com/masayoshi-toku/nomikai_adjustment.git","ssh_url":"git@github.com:masayoshi-toku/nomikai_adjustment.git","clone_url":"https://github.com/masayoshi-toku/nomikai_adjustment.git","svn_url":"https://github.com/masayoshi-toku/nomikai_adjustment","homepage":null,"size":88,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls/5"},"html":{"href":"https://github.com/masayoshi-toku/nomikai_adjustment/pull/5"},"issue":{"href":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/issues/5"},"comments":{"href":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/masayoshi-toku/nomikai_adjustment/statuses/9346d7c3d03d291838b47ca11d86eea95f4e3b35"}},"author_association":"OWNER"}}
{"actor":{"display_login":"masayoshi-toku"}}