{"action":"created","comment":{"url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls/comments/54873872","id":54873872,"diff_hunk":"@@ -12,18 +12,28 @@ class CategoryViewController: UIViewController {\n     var pageMenu : CAPSPageMenu?\n     var controllerArray : [UIViewController] = []\n     var categoryStocks = CategoryStocks.sharedInstance\n+    var currenUser = CurrentUser.sharedCurrentUser\n \n     override func viewDidLoad() {\n         super.viewDidLoad()\n-            \n-        categoryStocks.fetchCategories { () -> Void in\n-            self.collectViewController()\n-            let pageMenu = CAPSPageMenu.makeCustomPageMenu(self, controllerArray: self.controllerArray)\n-            self.addChildViewController(pageMenu)\n-            self.view.addSubview(pageMenu.view)\n-            pageMenu.didMoveToParentViewController(self)\n-        }\n+    }\n+    \n+    override func viewDidAppear(animated: Bool) {\n+        super.viewDidAppear(animated)\n         \n+        if currenUser.hasOauthToken() {\n+            //　持っている\n+            categoryStocks.fetchCategories { () -> Void in","path":"Zaikon_iOS/CategoryViewController.swift","position":23,"original_position":23,"commit_id":"d79fb959268a7543541fceab9c7a1feba2105d6b","original_commit_id":"d79fb959268a7543541fceab9c7a1feba2105d6b","user":{"login":"tatsuki-m","id":11342275,"avatar_url":"https://avatars.githubusercontent.com/u/11342275?v=3","gravatar_id":"","url":"https://api.github.com/users/tatsuki-m","html_url":"https://github.com/tatsuki-m","followers_url":"https://api.github.com/users/tatsuki-m/followers","following_url":"https://api.github.com/users/tatsuki-m/following{/other_user}","gists_url":"https://api.github.com/users/tatsuki-m/gists{/gist_id}","starred_url":"https://api.github.com/users/tatsuki-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatsuki-m/subscriptions","organizations_url":"https://api.github.com/users/tatsuki-m/orgs","repos_url":"https://api.github.com/users/tatsuki-m/repos","events_url":"https://api.github.com/users/tatsuki-m/events{/privacy}","received_events_url":"https://api.github.com/users/tatsuki-m/received_events","type":"User","site_admin":false},"body":"だめだ！","created_at":"2016-03-03T12:38:56Z","updated_at":"2016-03-03T12:38:56Z","html_url":"https://github.com/Zaikon/Zaikon_iOS/pull/16#discussion_r54873872","pull_request_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls/comments/54873872"},"html":{"href":"https://github.com/Zaikon/Zaikon_iOS/pull/16#discussion_r54873872"},"pull_request":{"href":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls/16","id":54201314,"html_url":"https://github.com/Zaikon/Zaikon_iOS/pull/16","diff_url":"https://github.com/Zaikon/Zaikon_iOS/pull/16.diff","patch_url":"https://github.com/Zaikon/Zaikon_iOS/pull/16.patch","issue_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/issues/16","number":16,"state":"closed","locked":false,"title":"user機能の追加","user":{"login":"tatsuki-m","id":11342275,"avatar_url":"https://avatars.githubusercontent.com/u/11342275?v=3","gravatar_id":"","url":"https://api.github.com/users/tatsuki-m","html_url":"https://github.com/tatsuki-m","followers_url":"https://api.github.com/users/tatsuki-m/followers","following_url":"https://api.github.com/users/tatsuki-m/following{/other_user}","gists_url":"https://api.github.com/users/tatsuki-m/gists{/gist_id}","starred_url":"https://api.github.com/users/tatsuki-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatsuki-m/subscriptions","organizations_url":"https://api.github.com/users/tatsuki-m/orgs","repos_url":"https://api.github.com/users/tatsuki-m/repos","events_url":"https://api.github.com/users/tatsuki-m/events{/privacy}","received_events_url":"https://api.github.com/users/tatsuki-m/received_events","type":"User","site_admin":false},"body":"# WHY \r\n- railsとの連携ができておらず、user管理ができていないため","created_at":"2015-12-20T15:15:51Z","updated_at":"2016-03-03T12:38:56Z","closed_at":"2015-12-24T17:35:41Z","merged_at":"2015-12-24T17:35:41Z","merge_commit_sha":"6d439e90419ca35aa3069e004fea33d84a1a1074","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls/16/commits","review_comments_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls/16/comments","review_comment_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/issues/16/comments","statuses_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/statuses/d79fb959268a7543541fceab9c7a1feba2105d6b","head":{"label":"Zaikon:add_user_function","ref":"add_user_function","sha":"d79fb959268a7543541fceab9c7a1feba2105d6b","user":{"login":"Zaikon","id":15799976,"avatar_url":"https://avatars.githubusercontent.com/u/15799976?v=3","gravatar_id":"","url":"https://api.github.com/users/Zaikon","html_url":"https://github.com/Zaikon","followers_url":"https://api.github.com/users/Zaikon/followers","following_url":"https://api.github.com/users/Zaikon/following{/other_user}","gists_url":"https://api.github.com/users/Zaikon/gists{/gist_id}","starred_url":"https://api.github.com/users/Zaikon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zaikon/subscriptions","organizations_url":"https://api.github.com/users/Zaikon/orgs","repos_url":"https://api.github.com/users/Zaikon/repos","events_url":"https://api.github.com/users/Zaikon/events{/privacy}","received_events_url":"https://api.github.com/users/Zaikon/received_events","type":"Organization","site_admin":false},"repo":{"id":47348221,"name":"Zaikon_iOS","full_name":"Zaikon/Zaikon_iOS","owner":{"login":"Zaikon","id":15799976,"avatar_url":"https://avatars.githubusercontent.com/u/15799976?v=3","gravatar_id":"","url":"https://api.github.com/users/Zaikon","html_url":"https://github.com/Zaikon","followers_url":"https://api.github.com/users/Zaikon/followers","following_url":"https://api.github.com/users/Zaikon/following{/other_user}","gists_url":"https://api.github.com/users/Zaikon/gists{/gist_id}","starred_url":"https://api.github.com/users/Zaikon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zaikon/subscriptions","organizations_url":"https://api.github.com/users/Zaikon/orgs","repos_url":"https://api.github.com/users/Zaikon/repos","events_url":"https://api.github.com/users/Zaikon/events{/privacy}","received_events_url":"https://api.github.com/users/Zaikon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Zaikon/Zaikon_iOS","description":"","fork":false,"url":"https://api.github.com/repos/Zaikon/Zaikon_iOS","forks_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/forks","keys_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/teams","hooks_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/hooks","issue_events_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/issues/events{/number}","events_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/events","assignees_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/assignees{/user}","branches_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/branches{/branch}","tags_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/tags","blobs_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/languages","stargazers_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/stargazers","contributors_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/contributors","subscribers_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/subscribers","subscription_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/subscription","commits_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/contents/{+path}","compare_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/merges","archive_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/downloads","issues_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/issues{/number}","pulls_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/labels{/name}","releases_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/releases{/id}","deployments_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/deployments","created_at":"2015-12-03T17:27:10Z","updated_at":"2015-12-03T17:29:18Z","pushed_at":"2015-12-25T08:46:59Z","git_url":"git://github.com/Zaikon/Zaikon_iOS.git","ssh_url":"git@github.com:Zaikon/Zaikon_iOS.git","clone_url":"https://github.com/Zaikon/Zaikon_iOS.git","svn_url":"https://github.com/Zaikon/Zaikon_iOS","homepage":null,"size":1327,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Zaikon:master","ref":"master","sha":"75a9eb725fa037c0c8dd7bd9f953e80365e69e81","user":{"login":"Zaikon","id":15799976,"avatar_url":"https://avatars.githubusercontent.com/u/15799976?v=3","gravatar_id":"","url":"https://api.github.com/users/Zaikon","html_url":"https://github.com/Zaikon","followers_url":"https://api.github.com/users/Zaikon/followers","following_url":"https://api.github.com/users/Zaikon/following{/other_user}","gists_url":"https://api.github.com/users/Zaikon/gists{/gist_id}","starred_url":"https://api.github.com/users/Zaikon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zaikon/subscriptions","organizations_url":"https://api.github.com/users/Zaikon/orgs","repos_url":"https://api.github.com/users/Zaikon/repos","events_url":"https://api.github.com/users/Zaikon/events{/privacy}","received_events_url":"https://api.github.com/users/Zaikon/received_events","type":"Organization","site_admin":false},"repo":{"id":47348221,"name":"Zaikon_iOS","full_name":"Zaikon/Zaikon_iOS","owner":{"login":"Zaikon","id":15799976,"avatar_url":"https://avatars.githubusercontent.com/u/15799976?v=3","gravatar_id":"","url":"https://api.github.com/users/Zaikon","html_url":"https://github.com/Zaikon","followers_url":"https://api.github.com/users/Zaikon/followers","following_url":"https://api.github.com/users/Zaikon/following{/other_user}","gists_url":"https://api.github.com/users/Zaikon/gists{/gist_id}","starred_url":"https://api.github.com/users/Zaikon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zaikon/subscriptions","organizations_url":"https://api.github.com/users/Zaikon/orgs","repos_url":"https://api.github.com/users/Zaikon/repos","events_url":"https://api.github.com/users/Zaikon/events{/privacy}","received_events_url":"https://api.github.com/users/Zaikon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Zaikon/Zaikon_iOS","description":"","fork":false,"url":"https://api.github.com/repos/Zaikon/Zaikon_iOS","forks_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/forks","keys_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/teams","hooks_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/hooks","issue_events_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/issues/events{/number}","events_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/events","assignees_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/assignees{/user}","branches_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/branches{/branch}","tags_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/tags","blobs_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/languages","stargazers_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/stargazers","contributors_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/contributors","subscribers_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/subscribers","subscription_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/subscription","commits_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/contents/{+path}","compare_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/merges","archive_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/downloads","issues_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/issues{/number}","pulls_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/labels{/name}","releases_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/releases{/id}","deployments_url":"https://api.github.com/repos/Zaikon/Zaikon_iOS/deployments","created_at":"2015-12-03T17:27:10Z","updated_at":"2015-12-03T17:29:18Z","pushed_at":"2015-12-25T08:46:59Z","git_url":"git://github.com/Zaikon/Zaikon_iOS.git","ssh_url":"git@github.com:Zaikon/Zaikon_iOS.git","clone_url":"https://github.com/Zaikon/Zaikon_iOS.git","svn_url":"https://github.com/Zaikon/Zaikon_iOS","homepage":null,"size":1327,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls/16"},"html":{"href":"https://github.com/Zaikon/Zaikon_iOS/pull/16"},"issue":{"href":"https://api.github.com/repos/Zaikon/Zaikon_iOS/issues/16"},"comments":{"href":"https://api.github.com/repos/Zaikon/Zaikon_iOS/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Zaikon/Zaikon_iOS/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/Zaikon/Zaikon_iOS/statuses/d79fb959268a7543541fceab9c7a1feba2105d6b"}}}}