{"action":"created","comment":{"url":"https://api.github.com/repos/jeffmay/coded/pulls/comments/72262744","id":72262744,"diff_hunk":"@@ -0,0 +1,95 @@\n+use std::error::Error;\n+use std::ffi::OsString;\n+use std::fs::{read_dir, DirEntry};\n+use std::io::prelude::*;\n+\n+pub type ProjectError = String;\n+pub type Proc<T> = Result<T, ProjectError>;\n+\n+pub fn discover(dir: &str) -> Proc<Vec<GitRepo>> {\n+    match read_dir(dir) {\n+        Err(error) => Err(error.description().to_string()),\n+        Ok(files) => {\n+            for file_result in files {\n+                match file_result {\n+                    Ok(file) => {\n+                        let x = try!(git_repo(file));\n+                        println!(\"Found path: {:?}\", x);\n+                    }\n+                    Err(err) => {\n+                        return Err(err.description().to_string());\n+                    }\n+                }\n+            }\n+            Err(\"Finished work\".to_string())\n+        },\n+    }\n+}\n+\n+// TODO: Better parameter type for representing files?\n+pub fn git_repo(root: DirEntry) -> Proc<GitRepo> {","path":"src/project.rs","position":30,"original_position":30,"commit_id":"c44d4496dd78d59c068b4bdb724d90e78aa588fe","original_commit_id":"c44d4496dd78d59c068b4bdb724d90e78aa588fe","user":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"body":"FAIL: The return type should be `Proc<Vec<GitRepo>>`","created_at":"2016-07-26T14:40:56Z","updated_at":"2016-07-26T14:40:56Z","html_url":"https://github.com/jeffmay/coded/pull/2#discussion_r72262744","pull_request_url":"https://api.github.com/repos/jeffmay/coded/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/jeffmay/coded/pulls/comments/72262744"},"html":{"href":"https://github.com/jeffmay/coded/pull/2#discussion_r72262744"},"pull_request":{"href":"https://api.github.com/repos/jeffmay/coded/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/jeffmay/coded/pulls/2","id":78862974,"html_url":"https://github.com/jeffmay/coded/pull/2","diff_url":"https://github.com/jeffmay/coded/pull/2.diff","patch_url":"https://github.com/jeffmay/coded/pull/2.patch","issue_url":"https://api.github.com/repos/jeffmay/coded/issues/2","number":2,"state":"open","locked":false,"title":"Added project.rs with some basic design and debug code.","user":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"body":"@anxiousmodernman \r\n\r\n- Put debug code in project.rs\r\n- Removed rustfmt since it was failing cargo build","created_at":"2016-07-26T14:35:32Z","updated_at":"2016-07-26T14:40:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3074f2bdc9754b90e894400989be6a69ca3f076d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jeffmay/coded/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jeffmay/coded/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jeffmay/coded/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jeffmay/coded/issues/2/comments","statuses_url":"https://api.github.com/repos/jeffmay/coded/statuses/c44d4496dd78d59c068b4bdb724d90e78aa588fe","head":{"label":"jeffmay:project","ref":"project","sha":"c44d4496dd78d59c068b4bdb724d90e78aa588fe","user":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"repo":{"id":62767196,"name":"coded","full_name":"jeffmay/coded","owner":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeffmay/coded","description":"Code activity monitor","fork":false,"url":"https://api.github.com/repos/jeffmay/coded","forks_url":"https://api.github.com/repos/jeffmay/coded/forks","keys_url":"https://api.github.com/repos/jeffmay/coded/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffmay/coded/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffmay/coded/teams","hooks_url":"https://api.github.com/repos/jeffmay/coded/hooks","issue_events_url":"https://api.github.com/repos/jeffmay/coded/issues/events{/number}","events_url":"https://api.github.com/repos/jeffmay/coded/events","assignees_url":"https://api.github.com/repos/jeffmay/coded/assignees{/user}","branches_url":"https://api.github.com/repos/jeffmay/coded/branches{/branch}","tags_url":"https://api.github.com/repos/jeffmay/coded/tags","blobs_url":"https://api.github.com/repos/jeffmay/coded/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffmay/coded/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffmay/coded/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffmay/coded/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffmay/coded/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffmay/coded/languages","stargazers_url":"https://api.github.com/repos/jeffmay/coded/stargazers","contributors_url":"https://api.github.com/repos/jeffmay/coded/contributors","subscribers_url":"https://api.github.com/repos/jeffmay/coded/subscribers","subscription_url":"https://api.github.com/repos/jeffmay/coded/subscription","commits_url":"https://api.github.com/repos/jeffmay/coded/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffmay/coded/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffmay/coded/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffmay/coded/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffmay/coded/contents/{+path}","compare_url":"https://api.github.com/repos/jeffmay/coded/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffmay/coded/merges","archive_url":"https://api.github.com/repos/jeffmay/coded/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffmay/coded/downloads","issues_url":"https://api.github.com/repos/jeffmay/coded/issues{/number}","pulls_url":"https://api.github.com/repos/jeffmay/coded/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffmay/coded/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffmay/coded/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffmay/coded/labels{/name}","releases_url":"https://api.github.com/repos/jeffmay/coded/releases{/id}","deployments_url":"https://api.github.com/repos/jeffmay/coded/deployments","created_at":"2016-07-07T02:09:02Z","updated_at":"2016-07-07T02:10:00Z","pushed_at":"2016-07-26T14:35:32Z","git_url":"git://github.com/jeffmay/coded.git","ssh_url":"git@github.com:jeffmay/coded.git","clone_url":"https://github.com/jeffmay/coded.git","svn_url":"https://github.com/jeffmay/coded","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jeffmay:master","ref":"master","sha":"23cfcdc164082d71b54fb22b4ea03a70a1bbf297","user":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"repo":{"id":62767196,"name":"coded","full_name":"jeffmay/coded","owner":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeffmay/coded","description":"Code activity monitor","fork":false,"url":"https://api.github.com/repos/jeffmay/coded","forks_url":"https://api.github.com/repos/jeffmay/coded/forks","keys_url":"https://api.github.com/repos/jeffmay/coded/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffmay/coded/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffmay/coded/teams","hooks_url":"https://api.github.com/repos/jeffmay/coded/hooks","issue_events_url":"https://api.github.com/repos/jeffmay/coded/issues/events{/number}","events_url":"https://api.github.com/repos/jeffmay/coded/events","assignees_url":"https://api.github.com/repos/jeffmay/coded/assignees{/user}","branches_url":"https://api.github.com/repos/jeffmay/coded/branches{/branch}","tags_url":"https://api.github.com/repos/jeffmay/coded/tags","blobs_url":"https://api.github.com/repos/jeffmay/coded/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffmay/coded/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffmay/coded/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffmay/coded/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffmay/coded/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffmay/coded/languages","stargazers_url":"https://api.github.com/repos/jeffmay/coded/stargazers","contributors_url":"https://api.github.com/repos/jeffmay/coded/contributors","subscribers_url":"https://api.github.com/repos/jeffmay/coded/subscribers","subscription_url":"https://api.github.com/repos/jeffmay/coded/subscription","commits_url":"https://api.github.com/repos/jeffmay/coded/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffmay/coded/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffmay/coded/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffmay/coded/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffmay/coded/contents/{+path}","compare_url":"https://api.github.com/repos/jeffmay/coded/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffmay/coded/merges","archive_url":"https://api.github.com/repos/jeffmay/coded/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffmay/coded/downloads","issues_url":"https://api.github.com/repos/jeffmay/coded/issues{/number}","pulls_url":"https://api.github.com/repos/jeffmay/coded/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffmay/coded/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffmay/coded/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffmay/coded/labels{/name}","releases_url":"https://api.github.com/repos/jeffmay/coded/releases{/id}","deployments_url":"https://api.github.com/repos/jeffmay/coded/deployments","created_at":"2016-07-07T02:09:02Z","updated_at":"2016-07-07T02:10:00Z","pushed_at":"2016-07-26T14:35:32Z","git_url":"git://github.com/jeffmay/coded.git","ssh_url":"git@github.com:jeffmay/coded.git","clone_url":"https://github.com/jeffmay/coded.git","svn_url":"https://github.com/jeffmay/coded","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jeffmay/coded/pulls/2"},"html":{"href":"https://github.com/jeffmay/coded/pull/2"},"issue":{"href":"https://api.github.com/repos/jeffmay/coded/issues/2"},"comments":{"href":"https://api.github.com/repos/jeffmay/coded/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jeffmay/coded/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jeffmay/coded/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jeffmay/coded/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jeffmay/coded/statuses/c44d4496dd78d59c068b4bdb724d90e78aa588fe"}}}}
{"actor":{"display_login":"jeffmay"}}