{"action":"created","comment":{"url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls/comments/197020079","pull_request_review_id":130677314,"id":197020079,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzAyMDA3OQ==","diff_hunk":"@@ -64,27 +84,41 @@ final class BookListViewController: UIViewController {\n     \n // MARK: - ボタンタップアクション\n     @objc private func didAddButtonTapped(sender: UIButton) {\n-        let nav = UINavigationController(rootViewController: AddBookViewController())\n-        present(nav, animated: true, completion: nil)\n+        let addBookVC = AddBookViewController()\n+        addBookVC.reflectionHandler = { [unowned self] in\n+            self.books = []\n+            self.limit = Constants.firstLimit\n+            self.page = 1\n+            self.submitRequest()\n+        }\n+        let nav = UINavigationController(rootViewController: addBookVC)\n+        present(nav, animated: true)\n     }\n+    \n     @objc private func didMoreCellButtonTapped(sender: UIButton) {\n-        amountOfCells += 5\n-        if amountOfCells >= books.count {  //表示数の頭を入れる。今はデータ数\n-            amountOfCells = books.count\n+        if books.isEmpty {","path":"BookManager-iOS/ViewControllers/BookListViewController.swift","position":96,"original_position":96,"commit_id":"1401123333a54de007fcc1de3fb2da2ba3191089","original_commit_id":"1401123333a54de007fcc1de3fb2da2ba3191089","user":{"login":"nkakuta-cq","id":38637837,"node_id":"MDQ6VXNlcjM4NjM3ODM3","avatar_url":"https://avatars3.githubusercontent.com/u/38637837?v=4","gravatar_id":"","url":"https://api.github.com/users/nkakuta-cq","html_url":"https://github.com/nkakuta-cq","followers_url":"https://api.github.com/users/nkakuta-cq/followers","following_url":"https://api.github.com/users/nkakuta-cq/following{/other_user}","gists_url":"https://api.github.com/users/nkakuta-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/nkakuta-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkakuta-cq/subscriptions","organizations_url":"https://api.github.com/users/nkakuta-cq/orgs","repos_url":"https://api.github.com/users/nkakuta-cq/repos","events_url":"https://api.github.com/users/nkakuta-cq/events{/privacy}","received_events_url":"https://api.github.com/users/nkakuta-cq/received_events","type":"User","site_admin":false},"body":"もっと読み込むボタンを、データが無い時とtotalCountまで読み込まれてた時は働かない様にしてます。\r\n条件を並列させてguard文で書く様にします！","created_at":"2018-06-21T06:08:01Z","updated_at":"2018-06-21T06:08:01Z","html_url":"https://github.com/nkakuta-cq/BookManager-iOS/pull/3#discussion_r197020079","pull_request_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls/3","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls/comments/197020079"},"html":{"href":"https://github.com/nkakuta-cq/BookManager-iOS/pull/3#discussion_r197020079"},"pull_request":{"href":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls/3"}},"in_reply_to_id":197015710},"pull_request":{"url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls/3","id":195712092,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NzEyMDky","html_url":"https://github.com/nkakuta-cq/BookManager-iOS/pull/3","diff_url":"https://github.com/nkakuta-cq/BookManager-iOS/pull/3.diff","patch_url":"https://github.com/nkakuta-cq/BookManager-iOS/pull/3.patch","issue_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/issues/3","number":3,"state":"open","locked":false,"title":"API実装","user":{"login":"nkakuta-cq","id":38637837,"node_id":"MDQ6VXNlcjM4NjM3ODM3","avatar_url":"https://avatars3.githubusercontent.com/u/38637837?v=4","gravatar_id":"","url":"https://api.github.com/users/nkakuta-cq","html_url":"https://github.com/nkakuta-cq","followers_url":"https://api.github.com/users/nkakuta-cq/followers","following_url":"https://api.github.com/users/nkakuta-cq/following{/other_user}","gists_url":"https://api.github.com/users/nkakuta-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/nkakuta-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkakuta-cq/subscriptions","organizations_url":"https://api.github.com/users/nkakuta-cq/orgs","repos_url":"https://api.github.com/users/nkakuta-cq/repos","events_url":"https://api.github.com/users/nkakuta-cq/events{/privacy}","received_events_url":"https://api.github.com/users/nkakuta-cq/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-19T05:01:00Z","updated_at":"2018-06-21T06:08:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf52bc114e149c40b3bed3454bfce5fb3cead5eb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls/3/commits","review_comments_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls/3/comments","review_comment_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/issues/3/comments","statuses_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/statuses/1401123333a54de007fcc1de3fb2da2ba3191089","head":{"label":"nkakuta-cq:API","ref":"API","sha":"1401123333a54de007fcc1de3fb2da2ba3191089","user":{"login":"nkakuta-cq","id":38637837,"node_id":"MDQ6VXNlcjM4NjM3ODM3","avatar_url":"https://avatars3.githubusercontent.com/u/38637837?v=4","gravatar_id":"","url":"https://api.github.com/users/nkakuta-cq","html_url":"https://github.com/nkakuta-cq","followers_url":"https://api.github.com/users/nkakuta-cq/followers","following_url":"https://api.github.com/users/nkakuta-cq/following{/other_user}","gists_url":"https://api.github.com/users/nkakuta-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/nkakuta-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkakuta-cq/subscriptions","organizations_url":"https://api.github.com/users/nkakuta-cq/orgs","repos_url":"https://api.github.com/users/nkakuta-cq/repos","events_url":"https://api.github.com/users/nkakuta-cq/events{/privacy}","received_events_url":"https://api.github.com/users/nkakuta-cq/received_events","type":"User","site_admin":false},"repo":{"id":130792435,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA3OTI0MzU=","name":"BookManager-iOS","full_name":"nkakuta-cq/BookManager-iOS","owner":{"login":"nkakuta-cq","id":38637837,"node_id":"MDQ6VXNlcjM4NjM3ODM3","avatar_url":"https://avatars3.githubusercontent.com/u/38637837?v=4","gravatar_id":"","url":"https://api.github.com/users/nkakuta-cq","html_url":"https://github.com/nkakuta-cq","followers_url":"https://api.github.com/users/nkakuta-cq/followers","following_url":"https://api.github.com/users/nkakuta-cq/following{/other_user}","gists_url":"https://api.github.com/users/nkakuta-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/nkakuta-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkakuta-cq/subscriptions","organizations_url":"https://api.github.com/users/nkakuta-cq/orgs","repos_url":"https://api.github.com/users/nkakuta-cq/repos","events_url":"https://api.github.com/users/nkakuta-cq/events{/privacy}","received_events_url":"https://api.github.com/users/nkakuta-cq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nkakuta-cq/BookManager-iOS","description":null,"fork":false,"url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS","forks_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/forks","keys_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/teams","hooks_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/hooks","issue_events_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/events","assignees_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/tags","blobs_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/languages","stargazers_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/stargazers","contributors_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/contributors","subscribers_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/subscribers","subscription_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/subscription","commits_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/merges","archive_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/downloads","issues_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/labels{/name}","releases_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/deployments","created_at":"2018-04-24T03:42:25Z","updated_at":"2018-06-15T09:03:09Z","pushed_at":"2018-06-20T03:11:39Z","git_url":"git://github.com/nkakuta-cq/BookManager-iOS.git","ssh_url":"git@github.com:nkakuta-cq/BookManager-iOS.git","clone_url":"https://github.com/nkakuta-cq/BookManager-iOS.git","svn_url":"https://github.com/nkakuta-cq/BookManager-iOS","homepage":null,"size":2218,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"nkakuta-cq:master","ref":"master","sha":"eb4d00a4b21c5f460a6e97376c9552d6cd46a9f6","user":{"login":"nkakuta-cq","id":38637837,"node_id":"MDQ6VXNlcjM4NjM3ODM3","avatar_url":"https://avatars3.githubusercontent.com/u/38637837?v=4","gravatar_id":"","url":"https://api.github.com/users/nkakuta-cq","html_url":"https://github.com/nkakuta-cq","followers_url":"https://api.github.com/users/nkakuta-cq/followers","following_url":"https://api.github.com/users/nkakuta-cq/following{/other_user}","gists_url":"https://api.github.com/users/nkakuta-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/nkakuta-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkakuta-cq/subscriptions","organizations_url":"https://api.github.com/users/nkakuta-cq/orgs","repos_url":"https://api.github.com/users/nkakuta-cq/repos","events_url":"https://api.github.com/users/nkakuta-cq/events{/privacy}","received_events_url":"https://api.github.com/users/nkakuta-cq/received_events","type":"User","site_admin":false},"repo":{"id":130792435,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA3OTI0MzU=","name":"BookManager-iOS","full_name":"nkakuta-cq/BookManager-iOS","owner":{"login":"nkakuta-cq","id":38637837,"node_id":"MDQ6VXNlcjM4NjM3ODM3","avatar_url":"https://avatars3.githubusercontent.com/u/38637837?v=4","gravatar_id":"","url":"https://api.github.com/users/nkakuta-cq","html_url":"https://github.com/nkakuta-cq","followers_url":"https://api.github.com/users/nkakuta-cq/followers","following_url":"https://api.github.com/users/nkakuta-cq/following{/other_user}","gists_url":"https://api.github.com/users/nkakuta-cq/gists{/gist_id}","starred_url":"https://api.github.com/users/nkakuta-cq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkakuta-cq/subscriptions","organizations_url":"https://api.github.com/users/nkakuta-cq/orgs","repos_url":"https://api.github.com/users/nkakuta-cq/repos","events_url":"https://api.github.com/users/nkakuta-cq/events{/privacy}","received_events_url":"https://api.github.com/users/nkakuta-cq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nkakuta-cq/BookManager-iOS","description":null,"fork":false,"url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS","forks_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/forks","keys_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/teams","hooks_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/hooks","issue_events_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/events","assignees_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/tags","blobs_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/languages","stargazers_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/stargazers","contributors_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/contributors","subscribers_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/subscribers","subscription_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/subscription","commits_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/merges","archive_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/downloads","issues_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/labels{/name}","releases_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/deployments","created_at":"2018-04-24T03:42:25Z","updated_at":"2018-06-15T09:03:09Z","pushed_at":"2018-06-20T03:11:39Z","git_url":"git://github.com/nkakuta-cq/BookManager-iOS.git","ssh_url":"git@github.com:nkakuta-cq/BookManager-iOS.git","clone_url":"https://github.com/nkakuta-cq/BookManager-iOS.git","svn_url":"https://github.com/nkakuta-cq/BookManager-iOS","homepage":null,"size":2218,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls/3"},"html":{"href":"https://github.com/nkakuta-cq/BookManager-iOS/pull/3"},"issue":{"href":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/issues/3"},"comments":{"href":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/nkakuta-cq/BookManager-iOS/statuses/1401123333a54de007fcc1de3fb2da2ba3191089"}},"author_association":"OWNER"}}
{"actor":{"display_login":"nkakuta-cq"}}