{"action":"created","comment":{"url":"https://api.github.com/repos/rnystrom/Freetime/pulls/comments/131720645","pull_request_review_id":54727326,"id":131720645,"diff_hunk":"@@ -0,0 +1,74 @@\n+//\n+//  IssueSummaryType.swift\n+//  Freetime\n+//\n+//  Created by Sherlock, James on 29/07/2017.\n+//  Copyright © 2017 Ryan Nystrom. All rights reserved.\n+//\n+\n+import IGListKit\n+\n+protocol IssueSummaryType {\n+    \n+    var id: String { get }\n+    var attributedTitle: NSAttributedStringSizing { get }\n+    var number: Int { get }\n+    var createdAtDate: Date? { get }\n+    var rawState: String { get }\n+    var authorName: String? { get }\n+    var isIssue: Bool { get }\n+    \n+}\n+\n+extension IssueSummaryType {\n+    var stateIcon: UIImage? {\n+        var name: String?\n+        \n+        switch rawState {\n+        case IssueState.open.rawValue where isIssue: name = \"issue-opened\"\n+        case IssueState.closed.rawValue where isIssue: name = \"issue-closed\"\n+        case PullRequestState.open.rawValue where !isIssue: name = \"git-pull-request\"\n+        case PullRequestState.closed.rawValue where !isIssue: name = \"git-pull-request\"\n+        case PullRequestState.merged.rawValue where !isIssue: name = \"git-merge\"\n+        default: return nil\n+        }\n+        \n+        return UIImage(named: name ?? \"\")?.withRenderingMode(.alwaysTemplate)\n+    }\n+    \n+    var stateColor: UIColor? {\n+        var hex: String?","path":"Classes/Repository/IssueSummaryType.swift","position":40,"original_position":40,"commit_id":"5f424e09c7f2920c24ee7b066d66aeb43781eb81","original_commit_id":"5f424e09c7f2920c24ee7b066d66aeb43781eb81","user":{"login":"BasThomas","id":4190298,"avatar_url":"https://avatars0.githubusercontent.com/u/4190298?v=4","gravatar_id":"","url":"https://api.github.com/users/BasThomas","html_url":"https://github.com/BasThomas","followers_url":"https://api.github.com/users/BasThomas/followers","following_url":"https://api.github.com/users/BasThomas/following{/other_user}","gists_url":"https://api.github.com/users/BasThomas/gists{/gist_id}","starred_url":"https://api.github.com/users/BasThomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BasThomas/subscriptions","organizations_url":"https://api.github.com/users/BasThomas/orgs","repos_url":"https://api.github.com/users/BasThomas/repos","events_url":"https://api.github.com/users/BasThomas/events{/privacy}","received_events_url":"https://api.github.com/users/BasThomas/received_events","type":"User","site_admin":false},"body":"Will the compiler complain when you make this a `let` and a `String` instead of a `String?` because of the `return nil`?","created_at":"2017-08-07T17:51:36Z","updated_at":"2017-08-07T18:02:23Z","html_url":"https://github.com/rnystrom/Freetime/pull/200#discussion_r131720645","pull_request_url":"https://api.github.com/repos/rnystrom/Freetime/pulls/200","_links":{"self":{"href":"https://api.github.com/repos/rnystrom/Freetime/pulls/comments/131720645"},"html":{"href":"https://github.com/rnystrom/Freetime/pull/200#discussion_r131720645"},"pull_request":{"href":"https://api.github.com/repos/rnystrom/Freetime/pulls/200"}}},"pull_request":{"url":"https://api.github.com/repos/rnystrom/Freetime/pulls/200","id":133093725,"html_url":"https://github.com/rnystrom/Freetime/pull/200","diff_url":"https://github.com/rnystrom/Freetime/pull/200.diff","patch_url":"https://github.com/rnystrom/Freetime/pull/200.patch","issue_url":"https://api.github.com/repos/rnystrom/Freetime/issues/200","number":200,"state":"open","locked":false,"title":"Search for repositories","user":{"login":"Sherlouk","id":15193942,"avatar_url":"https://avatars2.githubusercontent.com/u/15193942?v=4","gravatar_id":"","url":"https://api.github.com/users/Sherlouk","html_url":"https://github.com/Sherlouk","followers_url":"https://api.github.com/users/Sherlouk/followers","following_url":"https://api.github.com/users/Sherlouk/following{/other_user}","gists_url":"https://api.github.com/users/Sherlouk/gists{/gist_id}","starred_url":"https://api.github.com/users/Sherlouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sherlouk/subscriptions","organizations_url":"https://api.github.com/users/Sherlouk/orgs","repos_url":"https://api.github.com/users/Sherlouk/repos","events_url":"https://api.github.com/users/Sherlouk/events{/privacy}","received_events_url":"https://api.github.com/users/Sherlouk/received_events","type":"User","site_admin":false},"body":"Awaiting Initial Review\r\n\r\nThis branch is aiming to create the ability to search for repositories by name, and then view the issues and pull requests of the selected repo.\r\n\r\n[Search Page Screenshot](https://user-images.githubusercontent.com/15193942/28745356-c63a5038-746e-11e7-9633-12127aa25699.png)\r\n\r\nSpin up issues:\r\n- Filtering/Ordering search results and repo issues/prs\r\n- Further accessibility improvements","created_at":"2017-07-29T14:06:03Z","updated_at":"2017-08-07T18:02:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"88dc8f51f64d6be69f3c73326f848ba3eefee1d8","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rnystrom","id":739696,"avatar_url":"https://avatars2.githubusercontent.com/u/739696?v=4","gravatar_id":"","url":"https://api.github.com/users/rnystrom","html_url":"https://github.com/rnystrom","followers_url":"https://api.github.com/users/rnystrom/followers","following_url":"https://api.github.com/users/rnystrom/following{/other_user}","gists_url":"https://api.github.com/users/rnystrom/gists{/gist_id}","starred_url":"https://api.github.com/users/rnystrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnystrom/subscriptions","organizations_url":"https://api.github.com/users/rnystrom/orgs","repos_url":"https://api.github.com/users/rnystrom/repos","events_url":"https://api.github.com/users/rnystrom/events{/privacy}","received_events_url":"https://api.github.com/users/rnystrom/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rnystrom/Freetime/pulls/200/commits","review_comments_url":"https://api.github.com/repos/rnystrom/Freetime/pulls/200/comments","review_comment_url":"https://api.github.com/repos/rnystrom/Freetime/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rnystrom/Freetime/issues/200/comments","statuses_url":"https://api.github.com/repos/rnystrom/Freetime/statuses/5f424e09c7f2920c24ee7b066d66aeb43781eb81","head":{"label":"rnystrom:searchRepos","ref":"searchRepos","sha":"5f424e09c7f2920c24ee7b066d66aeb43781eb81","user":{"login":"rnystrom","id":739696,"avatar_url":"https://avatars2.githubusercontent.com/u/739696?v=4","gravatar_id":"","url":"https://api.github.com/users/rnystrom","html_url":"https://github.com/rnystrom","followers_url":"https://api.github.com/users/rnystrom/followers","following_url":"https://api.github.com/users/rnystrom/following{/other_user}","gists_url":"https://api.github.com/users/rnystrom/gists{/gist_id}","starred_url":"https://api.github.com/users/rnystrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnystrom/subscriptions","organizations_url":"https://api.github.com/users/rnystrom/orgs","repos_url":"https://api.github.com/users/rnystrom/repos","events_url":"https://api.github.com/users/rnystrom/events{/privacy}","received_events_url":"https://api.github.com/users/rnystrom/received_events","type":"User","site_admin":false},"repo":{"id":89921801,"name":"Freetime","full_name":"rnystrom/Freetime","owner":{"login":"rnystrom","id":739696,"avatar_url":"https://avatars2.githubusercontent.com/u/739696?v=4","gravatar_id":"","url":"https://api.github.com/users/rnystrom","html_url":"https://github.com/rnystrom","followers_url":"https://api.github.com/users/rnystrom/followers","following_url":"https://api.github.com/users/rnystrom/following{/other_user}","gists_url":"https://api.github.com/users/rnystrom/gists{/gist_id}","starred_url":"https://api.github.com/users/rnystrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnystrom/subscriptions","organizations_url":"https://api.github.com/users/rnystrom/orgs","repos_url":"https://api.github.com/users/rnystrom/repos","events_url":"https://api.github.com/users/rnystrom/events{/privacy}","received_events_url":"https://api.github.com/users/rnystrom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rnystrom/Freetime","description":"A GitHub project manager app for iOS.","fork":false,"url":"https://api.github.com/repos/rnystrom/Freetime","forks_url":"https://api.github.com/repos/rnystrom/Freetime/forks","keys_url":"https://api.github.com/repos/rnystrom/Freetime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rnystrom/Freetime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rnystrom/Freetime/teams","hooks_url":"https://api.github.com/repos/rnystrom/Freetime/hooks","issue_events_url":"https://api.github.com/repos/rnystrom/Freetime/issues/events{/number}","events_url":"https://api.github.com/repos/rnystrom/Freetime/events","assignees_url":"https://api.github.com/repos/rnystrom/Freetime/assignees{/user}","branches_url":"https://api.github.com/repos/rnystrom/Freetime/branches{/branch}","tags_url":"https://api.github.com/repos/rnystrom/Freetime/tags","blobs_url":"https://api.github.com/repos/rnystrom/Freetime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rnystrom/Freetime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rnystrom/Freetime/git/refs{/sha}","trees_url":"https://api.github.com/repos/rnystrom/Freetime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rnystrom/Freetime/statuses/{sha}","languages_url":"https://api.github.com/repos/rnystrom/Freetime/languages","stargazers_url":"https://api.github.com/repos/rnystrom/Freetime/stargazers","contributors_url":"https://api.github.com/repos/rnystrom/Freetime/contributors","subscribers_url":"https://api.github.com/repos/rnystrom/Freetime/subscribers","subscription_url":"https://api.github.com/repos/rnystrom/Freetime/subscription","commits_url":"https://api.github.com/repos/rnystrom/Freetime/commits{/sha}","git_commits_url":"https://api.github.com/repos/rnystrom/Freetime/git/commits{/sha}","comments_url":"https://api.github.com/repos/rnystrom/Freetime/comments{/number}","issue_comment_url":"https://api.github.com/repos/rnystrom/Freetime/issues/comments{/number}","contents_url":"https://api.github.com/repos/rnystrom/Freetime/contents/{+path}","compare_url":"https://api.github.com/repos/rnystrom/Freetime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rnystrom/Freetime/merges","archive_url":"https://api.github.com/repos/rnystrom/Freetime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rnystrom/Freetime/downloads","issues_url":"https://api.github.com/repos/rnystrom/Freetime/issues{/number}","pulls_url":"https://api.github.com/repos/rnystrom/Freetime/pulls{/number}","milestones_url":"https://api.github.com/repos/rnystrom/Freetime/milestones{/number}","notifications_url":"https://api.github.com/repos/rnystrom/Freetime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rnystrom/Freetime/labels{/name}","releases_url":"https://api.github.com/repos/rnystrom/Freetime/releases{/id}","deployments_url":"https://api.github.com/repos/rnystrom/Freetime/deployments","created_at":"2017-05-01T12:21:48Z","updated_at":"2017-08-07T16:51:55Z","pushed_at":"2017-08-06T22:00:47Z","git_url":"git://github.com/rnystrom/Freetime.git","ssh_url":"git@github.com:rnystrom/Freetime.git","clone_url":"https://github.com/rnystrom/Freetime.git","svn_url":"https://github.com/rnystrom/Freetime","homepage":"","size":60550,"stargazers_count":206,"watchers_count":206,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":86,"forks":21,"open_issues":86,"watchers":206,"default_branch":"master"}},"base":{"label":"rnystrom:master","ref":"master","sha":"aba2c885059052c98e3fb5c22fbcbc8d19e77956","user":{"login":"rnystrom","id":739696,"avatar_url":"https://avatars2.githubusercontent.com/u/739696?v=4","gravatar_id":"","url":"https://api.github.com/users/rnystrom","html_url":"https://github.com/rnystrom","followers_url":"https://api.github.com/users/rnystrom/followers","following_url":"https://api.github.com/users/rnystrom/following{/other_user}","gists_url":"https://api.github.com/users/rnystrom/gists{/gist_id}","starred_url":"https://api.github.com/users/rnystrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnystrom/subscriptions","organizations_url":"https://api.github.com/users/rnystrom/orgs","repos_url":"https://api.github.com/users/rnystrom/repos","events_url":"https://api.github.com/users/rnystrom/events{/privacy}","received_events_url":"https://api.github.com/users/rnystrom/received_events","type":"User","site_admin":false},"repo":{"id":89921801,"name":"Freetime","full_name":"rnystrom/Freetime","owner":{"login":"rnystrom","id":739696,"avatar_url":"https://avatars2.githubusercontent.com/u/739696?v=4","gravatar_id":"","url":"https://api.github.com/users/rnystrom","html_url":"https://github.com/rnystrom","followers_url":"https://api.github.com/users/rnystrom/followers","following_url":"https://api.github.com/users/rnystrom/following{/other_user}","gists_url":"https://api.github.com/users/rnystrom/gists{/gist_id}","starred_url":"https://api.github.com/users/rnystrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnystrom/subscriptions","organizations_url":"https://api.github.com/users/rnystrom/orgs","repos_url":"https://api.github.com/users/rnystrom/repos","events_url":"https://api.github.com/users/rnystrom/events{/privacy}","received_events_url":"https://api.github.com/users/rnystrom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rnystrom/Freetime","description":"A GitHub project manager app for iOS.","fork":false,"url":"https://api.github.com/repos/rnystrom/Freetime","forks_url":"https://api.github.com/repos/rnystrom/Freetime/forks","keys_url":"https://api.github.com/repos/rnystrom/Freetime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rnystrom/Freetime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rnystrom/Freetime/teams","hooks_url":"https://api.github.com/repos/rnystrom/Freetime/hooks","issue_events_url":"https://api.github.com/repos/rnystrom/Freetime/issues/events{/number}","events_url":"https://api.github.com/repos/rnystrom/Freetime/events","assignees_url":"https://api.github.com/repos/rnystrom/Freetime/assignees{/user}","branches_url":"https://api.github.com/repos/rnystrom/Freetime/branches{/branch}","tags_url":"https://api.github.com/repos/rnystrom/Freetime/tags","blobs_url":"https://api.github.com/repos/rnystrom/Freetime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rnystrom/Freetime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rnystrom/Freetime/git/refs{/sha}","trees_url":"https://api.github.com/repos/rnystrom/Freetime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rnystrom/Freetime/statuses/{sha}","languages_url":"https://api.github.com/repos/rnystrom/Freetime/languages","stargazers_url":"https://api.github.com/repos/rnystrom/Freetime/stargazers","contributors_url":"https://api.github.com/repos/rnystrom/Freetime/contributors","subscribers_url":"https://api.github.com/repos/rnystrom/Freetime/subscribers","subscription_url":"https://api.github.com/repos/rnystrom/Freetime/subscription","commits_url":"https://api.github.com/repos/rnystrom/Freetime/commits{/sha}","git_commits_url":"https://api.github.com/repos/rnystrom/Freetime/git/commits{/sha}","comments_url":"https://api.github.com/repos/rnystrom/Freetime/comments{/number}","issue_comment_url":"https://api.github.com/repos/rnystrom/Freetime/issues/comments{/number}","contents_url":"https://api.github.com/repos/rnystrom/Freetime/contents/{+path}","compare_url":"https://api.github.com/repos/rnystrom/Freetime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rnystrom/Freetime/merges","archive_url":"https://api.github.com/repos/rnystrom/Freetime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rnystrom/Freetime/downloads","issues_url":"https://api.github.com/repos/rnystrom/Freetime/issues{/number}","pulls_url":"https://api.github.com/repos/rnystrom/Freetime/pulls{/number}","milestones_url":"https://api.github.com/repos/rnystrom/Freetime/milestones{/number}","notifications_url":"https://api.github.com/repos/rnystrom/Freetime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rnystrom/Freetime/labels{/name}","releases_url":"https://api.github.com/repos/rnystrom/Freetime/releases{/id}","deployments_url":"https://api.github.com/repos/rnystrom/Freetime/deployments","created_at":"2017-05-01T12:21:48Z","updated_at":"2017-08-07T16:51:55Z","pushed_at":"2017-08-06T22:00:47Z","git_url":"git://github.com/rnystrom/Freetime.git","ssh_url":"git@github.com:rnystrom/Freetime.git","clone_url":"https://github.com/rnystrom/Freetime.git","svn_url":"https://github.com/rnystrom/Freetime","homepage":"","size":60550,"stargazers_count":206,"watchers_count":206,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":86,"forks":21,"open_issues":86,"watchers":206,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rnystrom/Freetime/pulls/200"},"html":{"href":"https://github.com/rnystrom/Freetime/pull/200"},"issue":{"href":"https://api.github.com/repos/rnystrom/Freetime/issues/200"},"comments":{"href":"https://api.github.com/repos/rnystrom/Freetime/issues/200/comments"},"review_comments":{"href":"https://api.github.com/repos/rnystrom/Freetime/pulls/200/comments"},"review_comment":{"href":"https://api.github.com/repos/rnystrom/Freetime/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rnystrom/Freetime/pulls/200/commits"},"statuses":{"href":"https://api.github.com/repos/rnystrom/Freetime/statuses/5f424e09c7f2920c24ee7b066d66aeb43781eb81"}}}}
{"actor":{"display_login":"BasThomas"}}