{"action":"created","comment":{"url":"https://api.github.com/repos/aoki77/TaskManager/pulls/comments/77459336","id":77459336,"diff_hunk":"@@ -0,0 +1,95 @@\n+//\n+//  TimeLineLayout.swift\n+//  TaskManager\n+//\n+//  Created by 青木孝乃輔 on 2016/08/15.\n+//  Copyright © 2016年 青木孝乃輔. All rights reserved.\n+//\n+\n+import UIKit\n+\n+final class TimeLineLayout: UICollectionViewLayout {\n+    \n+    // MARK: - 変数プロパティ\n+    \n+    /// レイアウト配列\n+    private var layoutData = [UICollectionViewLayoutAttributes]()\n+    \n+    /// スクリーンの幅、高さを取得\n+    private var viewSize :CGSize?\n+    private var cellHeight: CGFloat?\n+    \n+    \n+    \n+    // MARK: - ライフサイクル関数\n+    \n+    /// レイアウトを準備するメソッド\n+    override func prepareLayout() {\n+        rowSetup()\n+\n+    }\n+    \n+    /// レイアウトを返す\n+    override func layoutAttributesForElementsInRect(rect: CGRect) -> [UICollectionViewLayoutAttributes]? {\n+        return layoutData\n+    }\n+    \n+    /// 全体サイズを返す\n+    override func collectionViewContentSize() -> CGSize {\n+        /// 全体の幅\n+        let allWidth = CGRectGetWidth(collectionView!.bounds) - collectionView!.contentInset.left - collectionView!.contentInset.right\n+        guard let guardCellHeight = cellHeight else { return CGSize(width:0, height: 0) }\n+        /// 全体の高さ\n+        let allHeight = 24 * guardCellHeight","path":"TaskManager/TimeLineLayout.swift","position":43,"original_position":43,"commit_id":"31e3ee5c397b68693da97492c2126c9c6183f730","original_commit_id":"31e3ee5c397b68693da97492c2126c9c6183f730","user":{"login":"t-ota","id":7590043,"avatar_url":"https://avatars.githubusercontent.com/u/7590043?v=3","gravatar_id":"","url":"https://api.github.com/users/t-ota","html_url":"https://github.com/t-ota","followers_url":"https://api.github.com/users/t-ota/followers","following_url":"https://api.github.com/users/t-ota/following{/other_user}","gists_url":"https://api.github.com/users/t-ota/gists{/gist_id}","starred_url":"https://api.github.com/users/t-ota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-ota/subscriptions","organizations_url":"https://api.github.com/users/t-ota/orgs","repos_url":"https://api.github.com/users/t-ota/repos","events_url":"https://api.github.com/users/t-ota/events{/privacy}","received_events_url":"https://api.github.com/users/t-ota/received_events","type":"User","site_admin":false},"body":"24がマジックナンバーになってしまっているので、\r\nどこかから貰うか定数化させたい。","created_at":"2016-09-04T21:54:26Z","updated_at":"2016-09-04T21:54:26Z","html_url":"https://github.com/aoki77/TaskManager/pull/2#discussion_r77459336","pull_request_url":"https://api.github.com/repos/aoki77/TaskManager/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/aoki77/TaskManager/pulls/comments/77459336"},"html":{"href":"https://github.com/aoki77/TaskManager/pull/2#discussion_r77459336"},"pull_request":{"href":"https://api.github.com/repos/aoki77/TaskManager/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/aoki77/TaskManager/pulls/2","id":82624285,"html_url":"https://github.com/aoki77/TaskManager/pull/2","diff_url":"https://github.com/aoki77/TaskManager/pull/2.diff","patch_url":"https://github.com/aoki77/TaskManager/pull/2.patch","issue_url":"https://api.github.com/repos/aoki77/TaskManager/issues/2","number":2,"state":"open","locked":false,"title":"【InReview】タイムスケジュール画面 (iPhone版)","user":{"login":"t-ota","id":7590043,"avatar_url":"https://avatars.githubusercontent.com/u/7590043?v=3","gravatar_id":"","url":"https://api.github.com/users/t-ota","html_url":"https://github.com/t-ota","followers_url":"https://api.github.com/users/t-ota/followers","following_url":"https://api.github.com/users/t-ota/following{/other_user}","gists_url":"https://api.github.com/users/t-ota/gists{/gist_id}","starred_url":"https://api.github.com/users/t-ota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-ota/subscriptions","organizations_url":"https://api.github.com/users/t-ota/orgs","repos_url":"https://api.github.com/users/t-ota/repos","events_url":"https://api.github.com/users/t-ota/events{/privacy}","received_events_url":"https://api.github.com/users/t-ota/received_events","type":"User","site_admin":false},"body":"# 概要\r\n\r\nhttps://github.com/aoki77/TaskManager/issues/1\r\nタイムスケジュール画面のiPhone版を作成する。\r\n\r\n# 特記\r\n\r\n- iPadで見ても特にレイアウト崩れがない為、本PRでの対応とする\r\n- スクロールがカクツク\r\n- popoverが見切れる場合がある","created_at":"2016-08-24T21:54:08Z","updated_at":"2016-09-04T21:54:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c6e3ab1fc2e71dd87b70ee6f364c3fb0e6612ad","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aoki77/TaskManager/pulls/2/commits","review_comments_url":"https://api.github.com/repos/aoki77/TaskManager/pulls/2/comments","review_comment_url":"https://api.github.com/repos/aoki77/TaskManager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aoki77/TaskManager/issues/2/comments","statuses_url":"https://api.github.com/repos/aoki77/TaskManager/statuses/31e3ee5c397b68693da97492c2126c9c6183f730","head":{"label":"aoki77:TimeScheduleIPhone","ref":"TimeScheduleIPhone","sha":"31e3ee5c397b68693da97492c2126c9c6183f730","user":{"login":"aoki77","id":13234696,"avatar_url":"https://avatars.githubusercontent.com/u/13234696?v=3","gravatar_id":"","url":"https://api.github.com/users/aoki77","html_url":"https://github.com/aoki77","followers_url":"https://api.github.com/users/aoki77/followers","following_url":"https://api.github.com/users/aoki77/following{/other_user}","gists_url":"https://api.github.com/users/aoki77/gists{/gist_id}","starred_url":"https://api.github.com/users/aoki77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aoki77/subscriptions","organizations_url":"https://api.github.com/users/aoki77/orgs","repos_url":"https://api.github.com/users/aoki77/repos","events_url":"https://api.github.com/users/aoki77/events{/privacy}","received_events_url":"https://api.github.com/users/aoki77/received_events","type":"User","site_admin":false},"repo":{"id":65512508,"name":"TaskManager","full_name":"aoki77/TaskManager","owner":{"login":"aoki77","id":13234696,"avatar_url":"https://avatars.githubusercontent.com/u/13234696?v=3","gravatar_id":"","url":"https://api.github.com/users/aoki77","html_url":"https://github.com/aoki77","followers_url":"https://api.github.com/users/aoki77/followers","following_url":"https://api.github.com/users/aoki77/following{/other_user}","gists_url":"https://api.github.com/users/aoki77/gists{/gist_id}","starred_url":"https://api.github.com/users/aoki77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aoki77/subscriptions","organizations_url":"https://api.github.com/users/aoki77/orgs","repos_url":"https://api.github.com/users/aoki77/repos","events_url":"https://api.github.com/users/aoki77/events{/privacy}","received_events_url":"https://api.github.com/users/aoki77/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aoki77/TaskManager","description":null,"fork":false,"url":"https://api.github.com/repos/aoki77/TaskManager","forks_url":"https://api.github.com/repos/aoki77/TaskManager/forks","keys_url":"https://api.github.com/repos/aoki77/TaskManager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aoki77/TaskManager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aoki77/TaskManager/teams","hooks_url":"https://api.github.com/repos/aoki77/TaskManager/hooks","issue_events_url":"https://api.github.com/repos/aoki77/TaskManager/issues/events{/number}","events_url":"https://api.github.com/repos/aoki77/TaskManager/events","assignees_url":"https://api.github.com/repos/aoki77/TaskManager/assignees{/user}","branches_url":"https://api.github.com/repos/aoki77/TaskManager/branches{/branch}","tags_url":"https://api.github.com/repos/aoki77/TaskManager/tags","blobs_url":"https://api.github.com/repos/aoki77/TaskManager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aoki77/TaskManager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aoki77/TaskManager/git/refs{/sha}","trees_url":"https://api.github.com/repos/aoki77/TaskManager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aoki77/TaskManager/statuses/{sha}","languages_url":"https://api.github.com/repos/aoki77/TaskManager/languages","stargazers_url":"https://api.github.com/repos/aoki77/TaskManager/stargazers","contributors_url":"https://api.github.com/repos/aoki77/TaskManager/contributors","subscribers_url":"https://api.github.com/repos/aoki77/TaskManager/subscribers","subscription_url":"https://api.github.com/repos/aoki77/TaskManager/subscription","commits_url":"https://api.github.com/repos/aoki77/TaskManager/commits{/sha}","git_commits_url":"https://api.github.com/repos/aoki77/TaskManager/git/commits{/sha}","comments_url":"https://api.github.com/repos/aoki77/TaskManager/comments{/number}","issue_comment_url":"https://api.github.com/repos/aoki77/TaskManager/issues/comments{/number}","contents_url":"https://api.github.com/repos/aoki77/TaskManager/contents/{+path}","compare_url":"https://api.github.com/repos/aoki77/TaskManager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aoki77/TaskManager/merges","archive_url":"https://api.github.com/repos/aoki77/TaskManager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aoki77/TaskManager/downloads","issues_url":"https://api.github.com/repos/aoki77/TaskManager/issues{/number}","pulls_url":"https://api.github.com/repos/aoki77/TaskManager/pulls{/number}","milestones_url":"https://api.github.com/repos/aoki77/TaskManager/milestones{/number}","notifications_url":"https://api.github.com/repos/aoki77/TaskManager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aoki77/TaskManager/labels{/name}","releases_url":"https://api.github.com/repos/aoki77/TaskManager/releases{/id}","deployments_url":"https://api.github.com/repos/aoki77/TaskManager/deployments","created_at":"2016-08-12T01:13:04Z","updated_at":"2016-08-12T01:26:32Z","pushed_at":"2016-09-02T10:04:00Z","git_url":"git://github.com/aoki77/TaskManager.git","ssh_url":"git@github.com:aoki77/TaskManager.git","clone_url":"https://github.com/aoki77/TaskManager.git","svn_url":"https://github.com/aoki77/TaskManager","homepage":null,"size":19774,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"aoki77:TimeSchedule","ref":"TimeSchedule","sha":"d9073fa21c34a380ef13d6da1ef222893df19961","user":{"login":"aoki77","id":13234696,"avatar_url":"https://avatars.githubusercontent.com/u/13234696?v=3","gravatar_id":"","url":"https://api.github.com/users/aoki77","html_url":"https://github.com/aoki77","followers_url":"https://api.github.com/users/aoki77/followers","following_url":"https://api.github.com/users/aoki77/following{/other_user}","gists_url":"https://api.github.com/users/aoki77/gists{/gist_id}","starred_url":"https://api.github.com/users/aoki77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aoki77/subscriptions","organizations_url":"https://api.github.com/users/aoki77/orgs","repos_url":"https://api.github.com/users/aoki77/repos","events_url":"https://api.github.com/users/aoki77/events{/privacy}","received_events_url":"https://api.github.com/users/aoki77/received_events","type":"User","site_admin":false},"repo":{"id":65512508,"name":"TaskManager","full_name":"aoki77/TaskManager","owner":{"login":"aoki77","id":13234696,"avatar_url":"https://avatars.githubusercontent.com/u/13234696?v=3","gravatar_id":"","url":"https://api.github.com/users/aoki77","html_url":"https://github.com/aoki77","followers_url":"https://api.github.com/users/aoki77/followers","following_url":"https://api.github.com/users/aoki77/following{/other_user}","gists_url":"https://api.github.com/users/aoki77/gists{/gist_id}","starred_url":"https://api.github.com/users/aoki77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aoki77/subscriptions","organizations_url":"https://api.github.com/users/aoki77/orgs","repos_url":"https://api.github.com/users/aoki77/repos","events_url":"https://api.github.com/users/aoki77/events{/privacy}","received_events_url":"https://api.github.com/users/aoki77/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aoki77/TaskManager","description":null,"fork":false,"url":"https://api.github.com/repos/aoki77/TaskManager","forks_url":"https://api.github.com/repos/aoki77/TaskManager/forks","keys_url":"https://api.github.com/repos/aoki77/TaskManager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aoki77/TaskManager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aoki77/TaskManager/teams","hooks_url":"https://api.github.com/repos/aoki77/TaskManager/hooks","issue_events_url":"https://api.github.com/repos/aoki77/TaskManager/issues/events{/number}","events_url":"https://api.github.com/repos/aoki77/TaskManager/events","assignees_url":"https://api.github.com/repos/aoki77/TaskManager/assignees{/user}","branches_url":"https://api.github.com/repos/aoki77/TaskManager/branches{/branch}","tags_url":"https://api.github.com/repos/aoki77/TaskManager/tags","blobs_url":"https://api.github.com/repos/aoki77/TaskManager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aoki77/TaskManager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aoki77/TaskManager/git/refs{/sha}","trees_url":"https://api.github.com/repos/aoki77/TaskManager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aoki77/TaskManager/statuses/{sha}","languages_url":"https://api.github.com/repos/aoki77/TaskManager/languages","stargazers_url":"https://api.github.com/repos/aoki77/TaskManager/stargazers","contributors_url":"https://api.github.com/repos/aoki77/TaskManager/contributors","subscribers_url":"https://api.github.com/repos/aoki77/TaskManager/subscribers","subscription_url":"https://api.github.com/repos/aoki77/TaskManager/subscription","commits_url":"https://api.github.com/repos/aoki77/TaskManager/commits{/sha}","git_commits_url":"https://api.github.com/repos/aoki77/TaskManager/git/commits{/sha}","comments_url":"https://api.github.com/repos/aoki77/TaskManager/comments{/number}","issue_comment_url":"https://api.github.com/repos/aoki77/TaskManager/issues/comments{/number}","contents_url":"https://api.github.com/repos/aoki77/TaskManager/contents/{+path}","compare_url":"https://api.github.com/repos/aoki77/TaskManager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aoki77/TaskManager/merges","archive_url":"https://api.github.com/repos/aoki77/TaskManager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aoki77/TaskManager/downloads","issues_url":"https://api.github.com/repos/aoki77/TaskManager/issues{/number}","pulls_url":"https://api.github.com/repos/aoki77/TaskManager/pulls{/number}","milestones_url":"https://api.github.com/repos/aoki77/TaskManager/milestones{/number}","notifications_url":"https://api.github.com/repos/aoki77/TaskManager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aoki77/TaskManager/labels{/name}","releases_url":"https://api.github.com/repos/aoki77/TaskManager/releases{/id}","deployments_url":"https://api.github.com/repos/aoki77/TaskManager/deployments","created_at":"2016-08-12T01:13:04Z","updated_at":"2016-08-12T01:26:32Z","pushed_at":"2016-09-02T10:04:00Z","git_url":"git://github.com/aoki77/TaskManager.git","ssh_url":"git@github.com:aoki77/TaskManager.git","clone_url":"https://github.com/aoki77/TaskManager.git","svn_url":"https://github.com/aoki77/TaskManager","homepage":null,"size":19774,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aoki77/TaskManager/pulls/2"},"html":{"href":"https://github.com/aoki77/TaskManager/pull/2"},"issue":{"href":"https://api.github.com/repos/aoki77/TaskManager/issues/2"},"comments":{"href":"https://api.github.com/repos/aoki77/TaskManager/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/aoki77/TaskManager/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/aoki77/TaskManager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aoki77/TaskManager/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/aoki77/TaskManager/statuses/31e3ee5c397b68693da97492c2126c9c6183f730"}}}}
{"actor":{"display_login":"t-ota"}}