{"action":"created","comment":{"url":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls/comments/130240379","pull_request_review_id":53095013,"id":130240379,"diff_hunk":"@@ -0,0 +1,23 @@\n+h3\n+  | アンケート作成\n+= render partial: \"partial/errors\", locals: {instance: @survey}\n+-if @questions\n+  - @questions.each do |question|\n+    = render partial: \"partial/errors\", locals: {instance: question}\n+-if @choises\n+  - @choises.each do |choise|\n+    = render partial: \"partial/errors\", locals: {instance: choise}\n+\n+.survey_form\n+  = form_for @survey do |f|\n+    = f.text_field :title, value: '無題のアンケート'\n+    = f.text_area :description, placeholder: 'アンケートの説明'\n+    .questions\n+      p 問題\n+      .question_form\n+        = text_field :question, :description, value: '無題の質問', name:'questions[][description]'\n+        = select :question, :question_type, Question.question_types.keys.to_a, {} ,class: 'form-control', data: {\"question-id\" =>@question_id}, id:\"question#{@question_id}_question_type\", name:'questions[][question_type]'\n+        .question_field id=\"question#{@question_id}\"\n+          = text_field :answer, :description, placeholder: '自由記述（短文回答）'\n+    .add_question onclick='addQuestion' 質問追加","path":"app/views/surveys/new.html.slim","position":22,"original_position":22,"commit_id":"dfdd56ae6aec54d79daa69cb186aee5956268f1f","original_commit_id":"dfdd56ae6aec54d79daa69cb186aee5956268f1f","user":{"login":"MasanoriOyabu","id":11284152,"avatar_url":"https://avatars3.githubusercontent.com/u/11284152?v=4","gravatar_id":"","url":"https://api.github.com/users/MasanoriOyabu","html_url":"https://github.com/MasanoriOyabu","followers_url":"https://api.github.com/users/MasanoriOyabu/followers","following_url":"https://api.github.com/users/MasanoriOyabu/following{/other_user}","gists_url":"https://api.github.com/users/MasanoriOyabu/gists{/gist_id}","starred_url":"https://api.github.com/users/MasanoriOyabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasanoriOyabu/subscriptions","organizations_url":"https://api.github.com/users/MasanoriOyabu/orgs","repos_url":"https://api.github.com/users/MasanoriOyabu/repos","events_url":"https://api.github.com/users/MasanoriOyabu/events{/privacy}","received_events_url":"https://api.github.com/users/MasanoriOyabu/received_events","type":"User","site_admin":false},"body":"呼び出し元は\r\n`onClick = \"addQuestion()\"`で","created_at":"2017-07-30T11:50:38Z","updated_at":"2017-07-30T11:50:42Z","html_url":"https://github.com/naaaaya/Quesionnaire/pull/10#discussion_r130240379","pull_request_url":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls/comments/130240379"},"html":{"href":"https://github.com/naaaaya/Quesionnaire/pull/10#discussion_r130240379"},"pull_request":{"href":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls/10","id":132416242,"html_url":"https://github.com/naaaaya/Quesionnaire/pull/10","diff_url":"https://github.com/naaaaya/Quesionnaire/pull/10.diff","patch_url":"https://github.com/naaaaya/Quesionnaire/pull/10.patch","issue_url":"https://api.github.com/repos/naaaaya/Quesionnaire/issues/10","number":10,"state":"open","locked":false,"title":"[WIP]Add survey create","user":{"login":"naaaaya","id":24985690,"avatar_url":"https://avatars1.githubusercontent.com/u/24985690?v=4","gravatar_id":"","url":"https://api.github.com/users/naaaaya","html_url":"https://github.com/naaaaya","followers_url":"https://api.github.com/users/naaaaya/followers","following_url":"https://api.github.com/users/naaaaya/following{/other_user}","gists_url":"https://api.github.com/users/naaaaya/gists{/gist_id}","starred_url":"https://api.github.com/users/naaaaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naaaaya/subscriptions","organizations_url":"https://api.github.com/users/naaaaya/orgs","repos_url":"https://api.github.com/users/naaaaya/repos","events_url":"https://api.github.com/users/naaaaya/events{/privacy}","received_events_url":"https://api.github.com/users/naaaaya/received_events","type":"User","site_admin":false},"body":"# Ticket/Issue url\r\n(PRの概要を書く.jira/githubがあれば貼る)\r\nアンケート作成機能の実装\r\n### screen shot\r\n(GUIに変更がある場合はかならず記載する)\r\n\r\nhttps://gyazo.com/31b191c870cc9ed41ed98fc4f2e6758a\r\n質問の追加・問題タイプの選択\r\nhttps://gyazo.com/2663d785b87488c8f8a314b76ea8a406\r\nエラーメッセージの表示\r\n\r\n# Review Point\r\n(Reviewが必要ポイントを明確に書く)\r\n・jsの使い方は適切か\r\n・データの保存方法は適切か\r\n# Estimated Impact Area\r\n(影響範囲に関して自分が知っていることを共有する)\r\nなし\r\n### Existing Function\r\n(既存機能の変更、リファクタリングを行ったなど、既存機能に影響がある場合、その影響を詳細に記載)\r\nなし\r\n\r\n## Security\r\n  (個人情報：メールアドレスや住所情報等、個人情報にあたるものがあれば、列挙と対処を記述)\r\n(権限：ページのアクセス制限があればそれを記述)\r\n権限：adminのみアクセス可能\r\n\r\n# QA List\r\n(検証項目表を添付 or C1カバレッジで網羅的にQAするべき項目を記載する)\r\n- [x] アンケート、質問、選択肢が適切に保存される\r\n- [x] トランザクションが有効か\r\n- [x] エラーメッセージが表示される\r\n- [x] adminのみアクセス可能か\r\n\r\n# Checklist\r\n\r\n- [x] PR formatに沿ってすべて記載したか\r\n- [ ] テストを書いたか（C1カバレッジ）\r\n- [x] 他のRepositoryとの依存関係がないか。あれば明記したか\r\n- [x] batchの実行など前提条件はないか。あれば明記したか\r\n","created_at":"2017-07-26T02:07:23Z","updated_at":"2017-07-30T11:50:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"271b1dd6952d6a0bc9c4f177a7c6dca2d888a16e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls/10/commits","review_comments_url":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls/10/comments","review_comment_url":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/naaaaya/Quesionnaire/issues/10/comments","statuses_url":"https://api.github.com/repos/naaaaya/Quesionnaire/statuses/dfdd56ae6aec54d79daa69cb186aee5956268f1f","head":{"label":"naaaaya:add_survey_create","ref":"add_survey_create","sha":"dfdd56ae6aec54d79daa69cb186aee5956268f1f","user":{"login":"naaaaya","id":24985690,"avatar_url":"https://avatars1.githubusercontent.com/u/24985690?v=4","gravatar_id":"","url":"https://api.github.com/users/naaaaya","html_url":"https://github.com/naaaaya","followers_url":"https://api.github.com/users/naaaaya/followers","following_url":"https://api.github.com/users/naaaaya/following{/other_user}","gists_url":"https://api.github.com/users/naaaaya/gists{/gist_id}","starred_url":"https://api.github.com/users/naaaaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naaaaya/subscriptions","organizations_url":"https://api.github.com/users/naaaaya/orgs","repos_url":"https://api.github.com/users/naaaaya/repos","events_url":"https://api.github.com/users/naaaaya/events{/privacy}","received_events_url":"https://api.github.com/users/naaaaya/received_events","type":"User","site_admin":false},"repo":{"id":97682508,"name":"Quesionnaire","full_name":"naaaaya/Quesionnaire","owner":{"login":"naaaaya","id":24985690,"avatar_url":"https://avatars1.githubusercontent.com/u/24985690?v=4","gravatar_id":"","url":"https://api.github.com/users/naaaaya","html_url":"https://github.com/naaaaya","followers_url":"https://api.github.com/users/naaaaya/followers","following_url":"https://api.github.com/users/naaaaya/following{/other_user}","gists_url":"https://api.github.com/users/naaaaya/gists{/gist_id}","starred_url":"https://api.github.com/users/naaaaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naaaaya/subscriptions","organizations_url":"https://api.github.com/users/naaaaya/orgs","repos_url":"https://api.github.com/users/naaaaya/repos","events_url":"https://api.github.com/users/naaaaya/events{/privacy}","received_events_url":"https://api.github.com/users/naaaaya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/naaaaya/Quesionnaire","description":null,"fork":false,"url":"https://api.github.com/repos/naaaaya/Quesionnaire","forks_url":"https://api.github.com/repos/naaaaya/Quesionnaire/forks","keys_url":"https://api.github.com/repos/naaaaya/Quesionnaire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/naaaaya/Quesionnaire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/naaaaya/Quesionnaire/teams","hooks_url":"https://api.github.com/repos/naaaaya/Quesionnaire/hooks","issue_events_url":"https://api.github.com/repos/naaaaya/Quesionnaire/issues/events{/number}","events_url":"https://api.github.com/repos/naaaaya/Quesionnaire/events","assignees_url":"https://api.github.com/repos/naaaaya/Quesionnaire/assignees{/user}","branches_url":"https://api.github.com/repos/naaaaya/Quesionnaire/branches{/branch}","tags_url":"https://api.github.com/repos/naaaaya/Quesionnaire/tags","blobs_url":"https://api.github.com/repos/naaaaya/Quesionnaire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/naaaaya/Quesionnaire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/naaaaya/Quesionnaire/git/refs{/sha}","trees_url":"https://api.github.com/repos/naaaaya/Quesionnaire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/naaaaya/Quesionnaire/statuses/{sha}","languages_url":"https://api.github.com/repos/naaaaya/Quesionnaire/languages","stargazers_url":"https://api.github.com/repos/naaaaya/Quesionnaire/stargazers","contributors_url":"https://api.github.com/repos/naaaaya/Quesionnaire/contributors","subscribers_url":"https://api.github.com/repos/naaaaya/Quesionnaire/subscribers","subscription_url":"https://api.github.com/repos/naaaaya/Quesionnaire/subscription","commits_url":"https://api.github.com/repos/naaaaya/Quesionnaire/commits{/sha}","git_commits_url":"https://api.github.com/repos/naaaaya/Quesionnaire/git/commits{/sha}","comments_url":"https://api.github.com/repos/naaaaya/Quesionnaire/comments{/number}","issue_comment_url":"https://api.github.com/repos/naaaaya/Quesionnaire/issues/comments{/number}","contents_url":"https://api.github.com/repos/naaaaya/Quesionnaire/contents/{+path}","compare_url":"https://api.github.com/repos/naaaaya/Quesionnaire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/naaaaya/Quesionnaire/merges","archive_url":"https://api.github.com/repos/naaaaya/Quesionnaire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/naaaaya/Quesionnaire/downloads","issues_url":"https://api.github.com/repos/naaaaya/Quesionnaire/issues{/number}","pulls_url":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls{/number}","milestones_url":"https://api.github.com/repos/naaaaya/Quesionnaire/milestones{/number}","notifications_url":"https://api.github.com/repos/naaaaya/Quesionnaire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/naaaaya/Quesionnaire/labels{/name}","releases_url":"https://api.github.com/repos/naaaaya/Quesionnaire/releases{/id}","deployments_url":"https://api.github.com/repos/naaaaya/Quesionnaire/deployments","created_at":"2017-07-19T06:48:11Z","updated_at":"2017-07-19T06:50:38Z","pushed_at":"2017-07-29T08:47:40Z","git_url":"git://github.com/naaaaya/Quesionnaire.git","ssh_url":"git@github.com:naaaaya/Quesionnaire.git","clone_url":"https://github.com/naaaaya/Quesionnaire.git","svn_url":"https://github.com/naaaaya/Quesionnaire","homepage":null,"size":164,"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":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"naaaaya:master","ref":"master","sha":"b903343dcf1cac2b4aa1f1fee468113a28dd16c1","user":{"login":"naaaaya","id":24985690,"avatar_url":"https://avatars1.githubusercontent.com/u/24985690?v=4","gravatar_id":"","url":"https://api.github.com/users/naaaaya","html_url":"https://github.com/naaaaya","followers_url":"https://api.github.com/users/naaaaya/followers","following_url":"https://api.github.com/users/naaaaya/following{/other_user}","gists_url":"https://api.github.com/users/naaaaya/gists{/gist_id}","starred_url":"https://api.github.com/users/naaaaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naaaaya/subscriptions","organizations_url":"https://api.github.com/users/naaaaya/orgs","repos_url":"https://api.github.com/users/naaaaya/repos","events_url":"https://api.github.com/users/naaaaya/events{/privacy}","received_events_url":"https://api.github.com/users/naaaaya/received_events","type":"User","site_admin":false},"repo":{"id":97682508,"name":"Quesionnaire","full_name":"naaaaya/Quesionnaire","owner":{"login":"naaaaya","id":24985690,"avatar_url":"https://avatars1.githubusercontent.com/u/24985690?v=4","gravatar_id":"","url":"https://api.github.com/users/naaaaya","html_url":"https://github.com/naaaaya","followers_url":"https://api.github.com/users/naaaaya/followers","following_url":"https://api.github.com/users/naaaaya/following{/other_user}","gists_url":"https://api.github.com/users/naaaaya/gists{/gist_id}","starred_url":"https://api.github.com/users/naaaaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naaaaya/subscriptions","organizations_url":"https://api.github.com/users/naaaaya/orgs","repos_url":"https://api.github.com/users/naaaaya/repos","events_url":"https://api.github.com/users/naaaaya/events{/privacy}","received_events_url":"https://api.github.com/users/naaaaya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/naaaaya/Quesionnaire","description":null,"fork":false,"url":"https://api.github.com/repos/naaaaya/Quesionnaire","forks_url":"https://api.github.com/repos/naaaaya/Quesionnaire/forks","keys_url":"https://api.github.com/repos/naaaaya/Quesionnaire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/naaaaya/Quesionnaire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/naaaaya/Quesionnaire/teams","hooks_url":"https://api.github.com/repos/naaaaya/Quesionnaire/hooks","issue_events_url":"https://api.github.com/repos/naaaaya/Quesionnaire/issues/events{/number}","events_url":"https://api.github.com/repos/naaaaya/Quesionnaire/events","assignees_url":"https://api.github.com/repos/naaaaya/Quesionnaire/assignees{/user}","branches_url":"https://api.github.com/repos/naaaaya/Quesionnaire/branches{/branch}","tags_url":"https://api.github.com/repos/naaaaya/Quesionnaire/tags","blobs_url":"https://api.github.com/repos/naaaaya/Quesionnaire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/naaaaya/Quesionnaire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/naaaaya/Quesionnaire/git/refs{/sha}","trees_url":"https://api.github.com/repos/naaaaya/Quesionnaire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/naaaaya/Quesionnaire/statuses/{sha}","languages_url":"https://api.github.com/repos/naaaaya/Quesionnaire/languages","stargazers_url":"https://api.github.com/repos/naaaaya/Quesionnaire/stargazers","contributors_url":"https://api.github.com/repos/naaaaya/Quesionnaire/contributors","subscribers_url":"https://api.github.com/repos/naaaaya/Quesionnaire/subscribers","subscription_url":"https://api.github.com/repos/naaaaya/Quesionnaire/subscription","commits_url":"https://api.github.com/repos/naaaaya/Quesionnaire/commits{/sha}","git_commits_url":"https://api.github.com/repos/naaaaya/Quesionnaire/git/commits{/sha}","comments_url":"https://api.github.com/repos/naaaaya/Quesionnaire/comments{/number}","issue_comment_url":"https://api.github.com/repos/naaaaya/Quesionnaire/issues/comments{/number}","contents_url":"https://api.github.com/repos/naaaaya/Quesionnaire/contents/{+path}","compare_url":"https://api.github.com/repos/naaaaya/Quesionnaire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/naaaaya/Quesionnaire/merges","archive_url":"https://api.github.com/repos/naaaaya/Quesionnaire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/naaaaya/Quesionnaire/downloads","issues_url":"https://api.github.com/repos/naaaaya/Quesionnaire/issues{/number}","pulls_url":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls{/number}","milestones_url":"https://api.github.com/repos/naaaaya/Quesionnaire/milestones{/number}","notifications_url":"https://api.github.com/repos/naaaaya/Quesionnaire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/naaaaya/Quesionnaire/labels{/name}","releases_url":"https://api.github.com/repos/naaaaya/Quesionnaire/releases{/id}","deployments_url":"https://api.github.com/repos/naaaaya/Quesionnaire/deployments","created_at":"2017-07-19T06:48:11Z","updated_at":"2017-07-19T06:50:38Z","pushed_at":"2017-07-29T08:47:40Z","git_url":"git://github.com/naaaaya/Quesionnaire.git","ssh_url":"git@github.com:naaaaya/Quesionnaire.git","clone_url":"https://github.com/naaaaya/Quesionnaire.git","svn_url":"https://github.com/naaaaya/Quesionnaire","homepage":null,"size":164,"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":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls/10"},"html":{"href":"https://github.com/naaaaya/Quesionnaire/pull/10"},"issue":{"href":"https://api.github.com/repos/naaaaya/Quesionnaire/issues/10"},"comments":{"href":"https://api.github.com/repos/naaaaya/Quesionnaire/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/naaaaya/Quesionnaire/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/naaaaya/Quesionnaire/statuses/dfdd56ae6aec54d79daa69cb186aee5956268f1f"}}}}
{"actor":{"display_login":"MasanoriOyabu"}}