{"action":"created","comment":{"url":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls/comments/43580871","id":43580871,"diff_hunk":"@@ -0,0 +1,66 @@\n+//\n+//  PostViewController.swift\n+//  InstagramApp\n+//\n+//  Created by Seo Kyohei on 2015/10/24.\n+//  Copyright © 2015年 Kyohei Seo. All rights reserved.\n+//\n+\n+import UIKit\n+\n+class PostViewController: UIViewController {\n+    \n+    var image: UIImage!\n+    var postView: PostView!\n+    \n+    override func loadView() {\n+        let nib = UINib(nibName: \"PostView\", bundle: nil)\n+        view = nib.instantiateWithOwner(nil, options: nil).first as! UIView\n+    }\n+    \n+    override func viewDidLoad() {\n+        super.viewDidLoad()\n+        postView = view as! PostView\n+        \n+        postView.postButton.addTarget(self, action: \"tapPostButton\", forControlEvents: .TouchUpInside)\n+        \n+        //ジェスチャーを追加\n+        let tapGesture = UITapGestureRecognizer(target: self, action: \"tapGesture:\")\n+        view.addGestureRecognizer(tapGesture)\n+        \n+    }\n+    \n+    override func didReceiveMemoryWarning() {\n+        super.didReceiveMemoryWarning()\n+    }\n+    \n+    func tapGesture(sender: UITapGestureRecognizer) {\n+        postView.textView.resignFirstResponder()\n+    }\n+\n+    override func viewWillAppear(animated: Bool) {\n+        super.viewWillAppear(animated)\n+        postView.imageView.image = image\n+        navigationItem.leftBarButtonItem = UIBarButtonItem(title: \"戻る\", style: .Plain, target: self, action: \"back\")\n+    }\n+\n+    func back() {\n+        dismissViewControllerAnimated(true, completion: nil)\n+    }\n+    \n+    func getDate() -> String {","path":"InstagramApp/PostViewController.swift","position":51,"original_position":51,"commit_id":"954f02f7926a95c77a424c295332c989aa766dac","original_commit_id":"954f02f7926a95c77a424c295332c989aa766dac","user":{"login":"yuta-t","id":10217967,"avatar_url":"https://avatars.githubusercontent.com/u/10217967?v=3","gravatar_id":"","url":"https://api.github.com/users/yuta-t","html_url":"https://github.com/yuta-t","followers_url":"https://api.github.com/users/yuta-t/followers","following_url":"https://api.github.com/users/yuta-t/following{/other_user}","gists_url":"https://api.github.com/users/yuta-t/gists{/gist_id}","starred_url":"https://api.github.com/users/yuta-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuta-t/subscriptions","organizations_url":"https://api.github.com/users/yuta-t/orgs","repos_url":"https://api.github.com/users/yuta-t/repos","events_url":"https://api.github.com/users/yuta-t/events{/privacy}","received_events_url":"https://api.github.com/users/yuta-t/received_events","type":"User","site_admin":false},"body":"このメソッド他のところでも使いそうというか、\r\n使わないとしてもこのVCが持つものではないと思うので、\r\nNSDateクラスとかに定義してあげると良いと思います。","created_at":"2015-11-01T09:57:28Z","updated_at":"2015-11-01T09:57:28Z","html_url":"https://github.com/kyohei0423/InstagramApp/pull/1#discussion_r43580871","pull_request_url":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls/comments/43580871"},"html":{"href":"https://github.com/kyohei0423/InstagramApp/pull/1#discussion_r43580871"},"pull_request":{"href":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls/1","id":48010592,"html_url":"https://github.com/kyohei0423/InstagramApp/pull/1","diff_url":"https://github.com/kyohei0423/InstagramApp/pull/1.diff","patch_url":"https://github.com/kyohei0423/InstagramApp/pull/1.patch","issue_url":"https://api.github.com/repos/kyohei0423/InstagramApp/issues/1","number":1,"state":"open","locked":false,"title":"Make post view controller","user":{"login":"kyohei0423","id":7753180,"avatar_url":"https://avatars.githubusercontent.com/u/7753180?v=3","gravatar_id":"","url":"https://api.github.com/users/kyohei0423","html_url":"https://github.com/kyohei0423","followers_url":"https://api.github.com/users/kyohei0423/followers","following_url":"https://api.github.com/users/kyohei0423/following{/other_user}","gists_url":"https://api.github.com/users/kyohei0423/gists{/gist_id}","starred_url":"https://api.github.com/users/kyohei0423/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyohei0423/subscriptions","organizations_url":"https://api.github.com/users/kyohei0423/orgs","repos_url":"https://api.github.com/users/kyohei0423/repos","events_url":"https://api.github.com/users/kyohei0423/events{/privacy}","received_events_url":"https://api.github.com/users/kyohei0423/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nカメラロールの画像をCollectionViewに表示するようにした","created_at":"2015-10-18T15:25:40Z","updated_at":"2015-11-01T09:57:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"213ae040f8430cc6e8a796e29e2ceb0b49f694bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls/1/commits","review_comments_url":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls/1/comments","review_comment_url":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kyohei0423/InstagramApp/issues/1/comments","statuses_url":"https://api.github.com/repos/kyohei0423/InstagramApp/statuses/954f02f7926a95c77a424c295332c989aa766dac","head":{"label":"kyohei0423:make_postViewController","ref":"make_postViewController","sha":"954f02f7926a95c77a424c295332c989aa766dac","user":{"login":"kyohei0423","id":7753180,"avatar_url":"https://avatars.githubusercontent.com/u/7753180?v=3","gravatar_id":"","url":"https://api.github.com/users/kyohei0423","html_url":"https://github.com/kyohei0423","followers_url":"https://api.github.com/users/kyohei0423/followers","following_url":"https://api.github.com/users/kyohei0423/following{/other_user}","gists_url":"https://api.github.com/users/kyohei0423/gists{/gist_id}","starred_url":"https://api.github.com/users/kyohei0423/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyohei0423/subscriptions","organizations_url":"https://api.github.com/users/kyohei0423/orgs","repos_url":"https://api.github.com/users/kyohei0423/repos","events_url":"https://api.github.com/users/kyohei0423/events{/privacy}","received_events_url":"https://api.github.com/users/kyohei0423/received_events","type":"User","site_admin":false},"repo":{"id":44169888,"name":"InstagramApp","full_name":"kyohei0423/InstagramApp","owner":{"login":"kyohei0423","id":7753180,"avatar_url":"https://avatars.githubusercontent.com/u/7753180?v=3","gravatar_id":"","url":"https://api.github.com/users/kyohei0423","html_url":"https://github.com/kyohei0423","followers_url":"https://api.github.com/users/kyohei0423/followers","following_url":"https://api.github.com/users/kyohei0423/following{/other_user}","gists_url":"https://api.github.com/users/kyohei0423/gists{/gist_id}","starred_url":"https://api.github.com/users/kyohei0423/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyohei0423/subscriptions","organizations_url":"https://api.github.com/users/kyohei0423/orgs","repos_url":"https://api.github.com/users/kyohei0423/repos","events_url":"https://api.github.com/users/kyohei0423/events{/privacy}","received_events_url":"https://api.github.com/users/kyohei0423/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyohei0423/InstagramApp","description":"","fork":false,"url":"https://api.github.com/repos/kyohei0423/InstagramApp","forks_url":"https://api.github.com/repos/kyohei0423/InstagramApp/forks","keys_url":"https://api.github.com/repos/kyohei0423/InstagramApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyohei0423/InstagramApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyohei0423/InstagramApp/teams","hooks_url":"https://api.github.com/repos/kyohei0423/InstagramApp/hooks","issue_events_url":"https://api.github.com/repos/kyohei0423/InstagramApp/issues/events{/number}","events_url":"https://api.github.com/repos/kyohei0423/InstagramApp/events","assignees_url":"https://api.github.com/repos/kyohei0423/InstagramApp/assignees{/user}","branches_url":"https://api.github.com/repos/kyohei0423/InstagramApp/branches{/branch}","tags_url":"https://api.github.com/repos/kyohei0423/InstagramApp/tags","blobs_url":"https://api.github.com/repos/kyohei0423/InstagramApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyohei0423/InstagramApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyohei0423/InstagramApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyohei0423/InstagramApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyohei0423/InstagramApp/statuses/{sha}","languages_url":"https://api.github.com/repos/kyohei0423/InstagramApp/languages","stargazers_url":"https://api.github.com/repos/kyohei0423/InstagramApp/stargazers","contributors_url":"https://api.github.com/repos/kyohei0423/InstagramApp/contributors","subscribers_url":"https://api.github.com/repos/kyohei0423/InstagramApp/subscribers","subscription_url":"https://api.github.com/repos/kyohei0423/InstagramApp/subscription","commits_url":"https://api.github.com/repos/kyohei0423/InstagramApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyohei0423/InstagramApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyohei0423/InstagramApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyohei0423/InstagramApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyohei0423/InstagramApp/contents/{+path}","compare_url":"https://api.github.com/repos/kyohei0423/InstagramApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyohei0423/InstagramApp/merges","archive_url":"https://api.github.com/repos/kyohei0423/InstagramApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyohei0423/InstagramApp/downloads","issues_url":"https://api.github.com/repos/kyohei0423/InstagramApp/issues{/number}","pulls_url":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls{/number}","milestones_url":"https://api.github.com/repos/kyohei0423/InstagramApp/milestones{/number}","notifications_url":"https://api.github.com/repos/kyohei0423/InstagramApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyohei0423/InstagramApp/labels{/name}","releases_url":"https://api.github.com/repos/kyohei0423/InstagramApp/releases{/id}","created_at":"2015-10-13T10:50:29Z","updated_at":"2015-10-13T10:53:23Z","pushed_at":"2015-10-31T12:19:58Z","git_url":"git://github.com/kyohei0423/InstagramApp.git","ssh_url":"git@github.com:kyohei0423/InstagramApp.git","clone_url":"https://github.com/kyohei0423/InstagramApp.git","svn_url":"https://github.com/kyohei0423/InstagramApp","homepage":"","size":44660,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"kyohei0423:master","ref":"master","sha":"a9acc0587c02e4abcb7f52a0ee5c15ef83530982","user":{"login":"kyohei0423","id":7753180,"avatar_url":"https://avatars.githubusercontent.com/u/7753180?v=3","gravatar_id":"","url":"https://api.github.com/users/kyohei0423","html_url":"https://github.com/kyohei0423","followers_url":"https://api.github.com/users/kyohei0423/followers","following_url":"https://api.github.com/users/kyohei0423/following{/other_user}","gists_url":"https://api.github.com/users/kyohei0423/gists{/gist_id}","starred_url":"https://api.github.com/users/kyohei0423/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyohei0423/subscriptions","organizations_url":"https://api.github.com/users/kyohei0423/orgs","repos_url":"https://api.github.com/users/kyohei0423/repos","events_url":"https://api.github.com/users/kyohei0423/events{/privacy}","received_events_url":"https://api.github.com/users/kyohei0423/received_events","type":"User","site_admin":false},"repo":{"id":44169888,"name":"InstagramApp","full_name":"kyohei0423/InstagramApp","owner":{"login":"kyohei0423","id":7753180,"avatar_url":"https://avatars.githubusercontent.com/u/7753180?v=3","gravatar_id":"","url":"https://api.github.com/users/kyohei0423","html_url":"https://github.com/kyohei0423","followers_url":"https://api.github.com/users/kyohei0423/followers","following_url":"https://api.github.com/users/kyohei0423/following{/other_user}","gists_url":"https://api.github.com/users/kyohei0423/gists{/gist_id}","starred_url":"https://api.github.com/users/kyohei0423/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyohei0423/subscriptions","organizations_url":"https://api.github.com/users/kyohei0423/orgs","repos_url":"https://api.github.com/users/kyohei0423/repos","events_url":"https://api.github.com/users/kyohei0423/events{/privacy}","received_events_url":"https://api.github.com/users/kyohei0423/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyohei0423/InstagramApp","description":"","fork":false,"url":"https://api.github.com/repos/kyohei0423/InstagramApp","forks_url":"https://api.github.com/repos/kyohei0423/InstagramApp/forks","keys_url":"https://api.github.com/repos/kyohei0423/InstagramApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyohei0423/InstagramApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyohei0423/InstagramApp/teams","hooks_url":"https://api.github.com/repos/kyohei0423/InstagramApp/hooks","issue_events_url":"https://api.github.com/repos/kyohei0423/InstagramApp/issues/events{/number}","events_url":"https://api.github.com/repos/kyohei0423/InstagramApp/events","assignees_url":"https://api.github.com/repos/kyohei0423/InstagramApp/assignees{/user}","branches_url":"https://api.github.com/repos/kyohei0423/InstagramApp/branches{/branch}","tags_url":"https://api.github.com/repos/kyohei0423/InstagramApp/tags","blobs_url":"https://api.github.com/repos/kyohei0423/InstagramApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyohei0423/InstagramApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyohei0423/InstagramApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyohei0423/InstagramApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyohei0423/InstagramApp/statuses/{sha}","languages_url":"https://api.github.com/repos/kyohei0423/InstagramApp/languages","stargazers_url":"https://api.github.com/repos/kyohei0423/InstagramApp/stargazers","contributors_url":"https://api.github.com/repos/kyohei0423/InstagramApp/contributors","subscribers_url":"https://api.github.com/repos/kyohei0423/InstagramApp/subscribers","subscription_url":"https://api.github.com/repos/kyohei0423/InstagramApp/subscription","commits_url":"https://api.github.com/repos/kyohei0423/InstagramApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyohei0423/InstagramApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyohei0423/InstagramApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyohei0423/InstagramApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyohei0423/InstagramApp/contents/{+path}","compare_url":"https://api.github.com/repos/kyohei0423/InstagramApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyohei0423/InstagramApp/merges","archive_url":"https://api.github.com/repos/kyohei0423/InstagramApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyohei0423/InstagramApp/downloads","issues_url":"https://api.github.com/repos/kyohei0423/InstagramApp/issues{/number}","pulls_url":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls{/number}","milestones_url":"https://api.github.com/repos/kyohei0423/InstagramApp/milestones{/number}","notifications_url":"https://api.github.com/repos/kyohei0423/InstagramApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyohei0423/InstagramApp/labels{/name}","releases_url":"https://api.github.com/repos/kyohei0423/InstagramApp/releases{/id}","created_at":"2015-10-13T10:50:29Z","updated_at":"2015-10-13T10:53:23Z","pushed_at":"2015-10-31T12:19:58Z","git_url":"git://github.com/kyohei0423/InstagramApp.git","ssh_url":"git@github.com:kyohei0423/InstagramApp.git","clone_url":"https://github.com/kyohei0423/InstagramApp.git","svn_url":"https://github.com/kyohei0423/InstagramApp","homepage":"","size":44660,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls/1"},"html":{"href":"https://github.com/kyohei0423/InstagramApp/pull/1"},"issue":{"href":"https://api.github.com/repos/kyohei0423/InstagramApp/issues/1"},"comments":{"href":"https://api.github.com/repos/kyohei0423/InstagramApp/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kyohei0423/InstagramApp/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/kyohei0423/InstagramApp/statuses/954f02f7926a95c77a424c295332c989aa766dac"}}}}