{"action":"opened","number":15,"pull_request":{"url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/pulls/15","id":54896932,"html_url":"https://github.com/krzysztofzablocki/KZLinkedConsole/pull/15","diff_url":"https://github.com/krzysztofzablocki/KZLinkedConsole/pull/15.diff","patch_url":"https://github.com/krzysztofzablocki/KZLinkedConsole/pull/15.patch","issue_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/issues/15","number":15,"state":"open","locked":false,"title":"Add a cache of looked-up filenames.","user":{"login":"ewanmellor","id":894011,"avatar_url":"https://avatars.githubusercontent.com/u/894011?v=3","gravatar_id":"","url":"https://api.github.com/users/ewanmellor","html_url":"https://github.com/ewanmellor","followers_url":"https://api.github.com/users/ewanmellor/followers","following_url":"https://api.github.com/users/ewanmellor/following{/other_user}","gists_url":"https://api.github.com/users/ewanmellor/gists{/gist_id}","starred_url":"https://api.github.com/users/ewanmellor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewanmellor/subscriptions","organizations_url":"https://api.github.com/users/ewanmellor/orgs","repos_url":"https://api.github.com/users/ewanmellor/repos","events_url":"https://api.github.com/users/ewanmellor/events{/privacy}","received_events_url":"https://api.github.com/users/ewanmellor/received_events","type":"User","site_admin":false},"body":"This avoids performing the find every time.  This cache doesn't get cleared since there's not an easy hook for doing that.  To avoid permanently-bad cache entries, we at least check that the file still exists before returning that as a result.\r\n\r\nThis PR is dependent upon PR #14.","created_at":"2016-01-01T21:48:53Z","updated_at":"2016-01-01T21:48:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/pulls/15/commits","review_comments_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/pulls/15/comments","review_comment_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/pulls/comments{/number}","comments_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/issues/15/comments","statuses_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/statuses/18d94bd69f6f8a1e80b24ba18776793defb45c11","head":{"label":"ewanmellor:add-cache","ref":"add-cache","sha":"18d94bd69f6f8a1e80b24ba18776793defb45c11","user":{"login":"ewanmellor","id":894011,"avatar_url":"https://avatars.githubusercontent.com/u/894011?v=3","gravatar_id":"","url":"https://api.github.com/users/ewanmellor","html_url":"https://github.com/ewanmellor","followers_url":"https://api.github.com/users/ewanmellor/followers","following_url":"https://api.github.com/users/ewanmellor/following{/other_user}","gists_url":"https://api.github.com/users/ewanmellor/gists{/gist_id}","starred_url":"https://api.github.com/users/ewanmellor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewanmellor/subscriptions","organizations_url":"https://api.github.com/users/ewanmellor/orgs","repos_url":"https://api.github.com/users/ewanmellor/repos","events_url":"https://api.github.com/users/ewanmellor/events{/privacy}","received_events_url":"https://api.github.com/users/ewanmellor/received_events","type":"User","site_admin":false},"repo":{"id":48888897,"name":"KZLinkedConsole","full_name":"ewanmellor/KZLinkedConsole","owner":{"login":"ewanmellor","id":894011,"avatar_url":"https://avatars.githubusercontent.com/u/894011?v=3","gravatar_id":"","url":"https://api.github.com/users/ewanmellor","html_url":"https://github.com/ewanmellor","followers_url":"https://api.github.com/users/ewanmellor/followers","following_url":"https://api.github.com/users/ewanmellor/following{/other_user}","gists_url":"https://api.github.com/users/ewanmellor/gists{/gist_id}","starred_url":"https://api.github.com/users/ewanmellor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewanmellor/subscriptions","organizations_url":"https://api.github.com/users/ewanmellor/orgs","repos_url":"https://api.github.com/users/ewanmellor/repos","events_url":"https://api.github.com/users/ewanmellor/events{/privacy}","received_events_url":"https://api.github.com/users/ewanmellor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ewanmellor/KZLinkedConsole","description":"Clickable links in your Xcode console, so you never wonder which class logged the message.","fork":true,"url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole","forks_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/forks","keys_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/teams","hooks_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/hooks","issue_events_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/issues/events{/number}","events_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/events","assignees_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/assignees{/user}","branches_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/branches{/branch}","tags_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/tags","blobs_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/git/refs{/sha}","trees_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/statuses/{sha}","languages_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/languages","stargazers_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/stargazers","contributors_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/contributors","subscribers_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/subscribers","subscription_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/subscription","commits_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/commits{/sha}","git_commits_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/git/commits{/sha}","comments_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/comments{/number}","issue_comment_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/issues/comments{/number}","contents_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/contents/{+path}","compare_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/merges","archive_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/downloads","issues_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/issues{/number}","pulls_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/pulls{/number}","milestones_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/milestones{/number}","notifications_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/labels{/name}","releases_url":"https://api.github.com/repos/ewanmellor/KZLinkedConsole/releases{/id}","created_at":"2016-01-01T20:39:58Z","updated_at":"2016-01-01T20:39:58Z","pushed_at":"2016-01-01T21:44:29Z","git_url":"git://github.com/ewanmellor/KZLinkedConsole.git","ssh_url":"git@github.com:ewanmellor/KZLinkedConsole.git","clone_url":"https://github.com/ewanmellor/KZLinkedConsole.git","svn_url":"https://github.com/ewanmellor/KZLinkedConsole","homepage":"http://merowing.info","size":524,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"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":"krzysztofzablocki:master","ref":"master","sha":"b8b83a6ead6f910106f9e7638e9f0000c81539aa","user":{"login":"krzysztofzablocki","id":1468993,"avatar_url":"https://avatars.githubusercontent.com/u/1468993?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztofzablocki","html_url":"https://github.com/krzysztofzablocki","followers_url":"https://api.github.com/users/krzysztofzablocki/followers","following_url":"https://api.github.com/users/krzysztofzablocki/following{/other_user}","gists_url":"https://api.github.com/users/krzysztofzablocki/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztofzablocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztofzablocki/subscriptions","organizations_url":"https://api.github.com/users/krzysztofzablocki/orgs","repos_url":"https://api.github.com/users/krzysztofzablocki/repos","events_url":"https://api.github.com/users/krzysztofzablocki/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztofzablocki/received_events","type":"User","site_admin":false},"repo":{"id":47616398,"name":"KZLinkedConsole","full_name":"krzysztofzablocki/KZLinkedConsole","owner":{"login":"krzysztofzablocki","id":1468993,"avatar_url":"https://avatars.githubusercontent.com/u/1468993?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztofzablocki","html_url":"https://github.com/krzysztofzablocki","followers_url":"https://api.github.com/users/krzysztofzablocki/followers","following_url":"https://api.github.com/users/krzysztofzablocki/following{/other_user}","gists_url":"https://api.github.com/users/krzysztofzablocki/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztofzablocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztofzablocki/subscriptions","organizations_url":"https://api.github.com/users/krzysztofzablocki/orgs","repos_url":"https://api.github.com/users/krzysztofzablocki/repos","events_url":"https://api.github.com/users/krzysztofzablocki/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztofzablocki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krzysztofzablocki/KZLinkedConsole","description":"Clickable links in your Xcode console, so you never wonder which class logged the message.","fork":false,"url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole","forks_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/forks","keys_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/teams","hooks_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/hooks","issue_events_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/issues/events{/number}","events_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/events","assignees_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/assignees{/user}","branches_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/branches{/branch}","tags_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/tags","blobs_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/git/refs{/sha}","trees_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/statuses/{sha}","languages_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/languages","stargazers_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/stargazers","contributors_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/contributors","subscribers_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/subscribers","subscription_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/subscription","commits_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/commits{/sha}","git_commits_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/git/commits{/sha}","comments_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/comments{/number}","issue_comment_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/issues/comments{/number}","contents_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/contents/{+path}","compare_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/merges","archive_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/downloads","issues_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/issues{/number}","pulls_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/pulls{/number}","milestones_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/milestones{/number}","notifications_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/labels{/name}","releases_url":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/releases{/id}","created_at":"2015-12-08T10:53:34Z","updated_at":"2016-01-01T19:52:57Z","pushed_at":"2016-01-01T21:47:36Z","git_url":"git://github.com/krzysztofzablocki/KZLinkedConsole.git","ssh_url":"git@github.com:krzysztofzablocki/KZLinkedConsole.git","clone_url":"https://github.com/krzysztofzablocki/KZLinkedConsole.git","svn_url":"https://github.com/krzysztofzablocki/KZLinkedConsole","homepage":"http://merowing.info","size":519,"stargazers_count":491,"watchers_count":491,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":3,"forks":21,"open_issues":3,"watchers":491,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/pulls/15"},"html":{"href":"https://github.com/krzysztofzablocki/KZLinkedConsole/pull/15"},"issue":{"href":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/issues/15"},"comments":{"href":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/krzysztofzablocki/KZLinkedConsole/statuses/18d94bd69f6f8a1e80b24ba18776793defb45c11"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":70,"deletions":5,"changed_files":2}}