{"action":"created","comment":{"url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls/comments/149271946","pull_request_review_id":74639294,"id":149271946,"diff_hunk":"@@ -1,19 +1,36 @@\n require 'spec_helper'\n \n describe ArticleRepository do\n+  def assert_update_articles_number(test_numbers)\n+    meeting_id = articles.first.meeting_id\n+    meeting_with_articles = meeting_repo.find_with_articles(meeting_id)\n+    max = meeting_with_articles.articles.count\n+    numbers = test_numbers.shuffle\n+    articles_number = meeting_with_articles.articles.map.with_index do |article, index|","path":"spec/kumanodocs_hanami/repositories/article_repository_spec.rb","position":9,"original_position":9,"commit_id":"335b05982e8a307485f034db7b53e300fb019b56","original_commit_id":"335b05982e8a307485f034db7b53e300fb019b56","user":{"login":"genya0407","id":3054386,"avatar_url":"https://avatars3.githubusercontent.com/u/3054386?v=4","gravatar_id":"","url":"https://api.github.com/users/genya0407","html_url":"https://github.com/genya0407","followers_url":"https://api.github.com/users/genya0407/followers","following_url":"https://api.github.com/users/genya0407/following{/other_user}","gists_url":"https://api.github.com/users/genya0407/gists{/gist_id}","starred_url":"https://api.github.com/users/genya0407/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genya0407/subscriptions","organizations_url":"https://api.github.com/users/genya0407/orgs","repos_url":"https://api.github.com/users/genya0407/repos","events_url":"https://api.github.com/users/genya0407/events{/privacy}","received_events_url":"https://api.github.com/users/genya0407/received_events","type":"User","site_admin":false},"body":"```ruby\r\nmeeting.articles.zip(numbers).map do |article, number|\r\n  { 'article_id' => article.id, 'number' => number }\r\nend\r\n```\r\n\r\nのように書けます。","created_at":"2017-11-07T04:51:30Z","updated_at":"2017-11-07T05:04:05Z","html_url":"https://github.com/kumano-dormitory/kumanodocs-hanami/pull/19#discussion_r149271946","pull_request_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls/19","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls/comments/149271946"},"html":{"href":"https://github.com/kumano-dormitory/kumanodocs-hanami/pull/19#discussion_r149271946"},"pull_request":{"href":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls/19","id":147671826,"html_url":"https://github.com/kumano-dormitory/kumanodocs-hanami/pull/19","diff_url":"https://github.com/kumano-dormitory/kumanodocs-hanami/pull/19.diff","patch_url":"https://github.com/kumano-dormitory/kumanodocs-hanami/pull/19.patch","issue_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/issues/19","number":19,"state":"open","locked":false,"title":"article_numberのアクションを新規作成する準備のリファクタリング","user":{"login":"bo40","id":21006107,"avatar_url":"https://avatars0.githubusercontent.com/u/21006107?v=4","gravatar_id":"","url":"https://api.github.com/users/bo40","html_url":"https://github.com/bo40","followers_url":"https://api.github.com/users/bo40/followers","following_url":"https://api.github.com/users/bo40/following{/other_user}","gists_url":"https://api.github.com/users/bo40/gists{/gist_id}","starred_url":"https://api.github.com/users/bo40/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bo40/subscriptions","organizations_url":"https://api.github.com/users/bo40/orgs","repos_url":"https://api.github.com/users/bo40/repos","events_url":"https://api.github.com/users/bo40/events{/privacy}","received_events_url":"https://api.github.com/users/bo40/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-19T21:36:01Z","updated_at":"2017-11-07T05:04:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5763570adbb6876d933110b97e6658869f32980","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls/19/commits","review_comments_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls/19/comments","review_comment_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/issues/19/comments","statuses_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/statuses/335b05982e8a307485f034db7b53e300fb019b56","head":{"label":"kumano-dormitory:refact-for-article-number","ref":"refact-for-article-number","sha":"335b05982e8a307485f034db7b53e300fb019b56","user":{"login":"kumano-dormitory","id":22855383,"avatar_url":"https://avatars1.githubusercontent.com/u/22855383?v=4","gravatar_id":"","url":"https://api.github.com/users/kumano-dormitory","html_url":"https://github.com/kumano-dormitory","followers_url":"https://api.github.com/users/kumano-dormitory/followers","following_url":"https://api.github.com/users/kumano-dormitory/following{/other_user}","gists_url":"https://api.github.com/users/kumano-dormitory/gists{/gist_id}","starred_url":"https://api.github.com/users/kumano-dormitory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumano-dormitory/subscriptions","organizations_url":"https://api.github.com/users/kumano-dormitory/orgs","repos_url":"https://api.github.com/users/kumano-dormitory/repos","events_url":"https://api.github.com/users/kumano-dormitory/events{/privacy}","received_events_url":"https://api.github.com/users/kumano-dormitory/received_events","type":"Organization","site_admin":false},"repo":{"id":96598928,"name":"kumanodocs-hanami","full_name":"kumano-dormitory/kumanodocs-hanami","owner":{"login":"kumano-dormitory","id":22855383,"avatar_url":"https://avatars1.githubusercontent.com/u/22855383?v=4","gravatar_id":"","url":"https://api.github.com/users/kumano-dormitory","html_url":"https://github.com/kumano-dormitory","followers_url":"https://api.github.com/users/kumano-dormitory/followers","following_url":"https://api.github.com/users/kumano-dormitory/following{/other_user}","gists_url":"https://api.github.com/users/kumano-dormitory/gists{/gist_id}","starred_url":"https://api.github.com/users/kumano-dormitory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumano-dormitory/subscriptions","organizations_url":"https://api.github.com/users/kumano-dormitory/orgs","repos_url":"https://api.github.com/users/kumano-dormitory/repos","events_url":"https://api.github.com/users/kumano-dormitory/events{/privacy}","received_events_url":"https://api.github.com/users/kumano-dormitory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kumano-dormitory/kumanodocs-hanami","description":null,"fork":false,"url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami","forks_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/forks","keys_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/teams","hooks_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/hooks","issue_events_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/issues/events{/number}","events_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/events","assignees_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/assignees{/user}","branches_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/branches{/branch}","tags_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/tags","blobs_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/git/refs{/sha}","trees_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/statuses/{sha}","languages_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/languages","stargazers_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/stargazers","contributors_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/contributors","subscribers_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/subscribers","subscription_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/subscription","commits_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/commits{/sha}","git_commits_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/git/commits{/sha}","comments_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/comments{/number}","issue_comment_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/issues/comments{/number}","contents_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/contents/{+path}","compare_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/merges","archive_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/downloads","issues_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/issues{/number}","pulls_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls{/number}","milestones_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/milestones{/number}","notifications_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/labels{/name}","releases_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/releases{/id}","deployments_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/deployments","created_at":"2017-07-08T05:48:43Z","updated_at":"2017-07-08T05:56:02Z","pushed_at":"2017-11-07T04:42:04Z","git_url":"git://github.com/kumano-dormitory/kumanodocs-hanami.git","ssh_url":"git@github.com:kumano-dormitory/kumanodocs-hanami.git","clone_url":"https://github.com/kumano-dormitory/kumanodocs-hanami.git","svn_url":"https://github.com/kumano-dormitory/kumanodocs-hanami","homepage":null,"size":242,"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,"archived":false,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"kumano-dormitory:master","ref":"master","sha":"fa88939ca199c7034b0660923ebecab963620f3d","user":{"login":"kumano-dormitory","id":22855383,"avatar_url":"https://avatars1.githubusercontent.com/u/22855383?v=4","gravatar_id":"","url":"https://api.github.com/users/kumano-dormitory","html_url":"https://github.com/kumano-dormitory","followers_url":"https://api.github.com/users/kumano-dormitory/followers","following_url":"https://api.github.com/users/kumano-dormitory/following{/other_user}","gists_url":"https://api.github.com/users/kumano-dormitory/gists{/gist_id}","starred_url":"https://api.github.com/users/kumano-dormitory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumano-dormitory/subscriptions","organizations_url":"https://api.github.com/users/kumano-dormitory/orgs","repos_url":"https://api.github.com/users/kumano-dormitory/repos","events_url":"https://api.github.com/users/kumano-dormitory/events{/privacy}","received_events_url":"https://api.github.com/users/kumano-dormitory/received_events","type":"Organization","site_admin":false},"repo":{"id":96598928,"name":"kumanodocs-hanami","full_name":"kumano-dormitory/kumanodocs-hanami","owner":{"login":"kumano-dormitory","id":22855383,"avatar_url":"https://avatars1.githubusercontent.com/u/22855383?v=4","gravatar_id":"","url":"https://api.github.com/users/kumano-dormitory","html_url":"https://github.com/kumano-dormitory","followers_url":"https://api.github.com/users/kumano-dormitory/followers","following_url":"https://api.github.com/users/kumano-dormitory/following{/other_user}","gists_url":"https://api.github.com/users/kumano-dormitory/gists{/gist_id}","starred_url":"https://api.github.com/users/kumano-dormitory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumano-dormitory/subscriptions","organizations_url":"https://api.github.com/users/kumano-dormitory/orgs","repos_url":"https://api.github.com/users/kumano-dormitory/repos","events_url":"https://api.github.com/users/kumano-dormitory/events{/privacy}","received_events_url":"https://api.github.com/users/kumano-dormitory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kumano-dormitory/kumanodocs-hanami","description":null,"fork":false,"url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami","forks_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/forks","keys_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/teams","hooks_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/hooks","issue_events_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/issues/events{/number}","events_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/events","assignees_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/assignees{/user}","branches_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/branches{/branch}","tags_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/tags","blobs_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/git/refs{/sha}","trees_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/statuses/{sha}","languages_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/languages","stargazers_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/stargazers","contributors_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/contributors","subscribers_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/subscribers","subscription_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/subscription","commits_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/commits{/sha}","git_commits_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/git/commits{/sha}","comments_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/comments{/number}","issue_comment_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/issues/comments{/number}","contents_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/contents/{+path}","compare_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/merges","archive_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/downloads","issues_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/issues{/number}","pulls_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls{/number}","milestones_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/milestones{/number}","notifications_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/labels{/name}","releases_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/releases{/id}","deployments_url":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/deployments","created_at":"2017-07-08T05:48:43Z","updated_at":"2017-07-08T05:56:02Z","pushed_at":"2017-11-07T04:42:04Z","git_url":"git://github.com/kumano-dormitory/kumanodocs-hanami.git","ssh_url":"git@github.com:kumano-dormitory/kumanodocs-hanami.git","clone_url":"https://github.com/kumano-dormitory/kumanodocs-hanami.git","svn_url":"https://github.com/kumano-dormitory/kumanodocs-hanami","homepage":null,"size":242,"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,"archived":false,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls/19"},"html":{"href":"https://github.com/kumano-dormitory/kumanodocs-hanami/pull/19"},"issue":{"href":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/issues/19"},"comments":{"href":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/kumano-dormitory/kumanodocs-hanami/statuses/335b05982e8a307485f034db7b53e300fb019b56"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"genya0407"}}