{"action":"created","comment":{"url":"https://api.github.com/repos/apertium/apertium-stats-service/pulls/comments/234784649","pull_request_review_id":176501388,"id":234784649,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDc4NDY0OQ==","diff_hunk":"@@ -151,13 +152,20 @@ fn list_files(logger: &Logger, name: &str, recursive: bool) -> Result<Vec<File>,\n                                         \"Parsed file\";\n                                         \"name\" => name.clone(), \"size\" => size, \"revision\" => revision, \"author\" => author.clone(), \"date\" => date.to_string(),\n                                     );\n-                                    files.push(File {\n-                                        path: name,\n-                                        size,\n-                                        revision,\n-                                        last_author: author,\n-                                        last_changed: date,\n-                                    });\n+                                    let sha_output =\n+                                        Command::new(\"git svn find-rev\").arg(format!(\"{}\", revision)).output();\n+                                    if !sha_output.unwrap().status.success() {\n+                                        break;","path":"src/worker.rs","position":22,"original_position":22,"commit_id":"5964c5022fbd4abe2bad8371472b4898d697d0b8","original_commit_id":"5964c5022fbd4abe2bad8371472b4898d697d0b8","user":{"login":"sushain97","id":4211838,"node_id":"MDQ6VXNlcjQyMTE4Mzg=","avatar_url":"https://avatars1.githubusercontent.com/u/4211838?v=4","gravatar_id":"","url":"https://api.github.com/users/sushain97","html_url":"https://github.com/sushain97","followers_url":"https://api.github.com/users/sushain97/followers","following_url":"https://api.github.com/users/sushain97/following{/other_user}","gists_url":"https://api.github.com/users/sushain97/gists{/gist_id}","starred_url":"https://api.github.com/users/sushain97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushain97/subscriptions","organizations_url":"https://api.github.com/users/sushain97/orgs","repos_url":"https://api.github.com/users/sushain97/repos","events_url":"https://api.github.com/users/sushain97/events{/privacy}","received_events_url":"https://api.github.com/users/sushain97/received_events","type":"User","site_admin":false},"body":"Instead, use an if let. Also, there should be logging if this isn't successful.","created_at":"2018-11-19T21:17:38Z","updated_at":"2018-11-19T21:18:34Z","html_url":"https://github.com/apertium/apertium-stats-service/pull/45#discussion_r234784649","pull_request_url":"https://api.github.com/repos/apertium/apertium-stats-service/pulls/45","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/apertium/apertium-stats-service/pulls/comments/234784649"},"html":{"href":"https://github.com/apertium/apertium-stats-service/pull/45#discussion_r234784649"},"pull_request":{"href":"https://api.github.com/repos/apertium/apertium-stats-service/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/apertium/apertium-stats-service/pulls/45","id":230595164,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNTk1MTY0","html_url":"https://github.com/apertium/apertium-stats-service/pull/45","diff_url":"https://github.com/apertium/apertium-stats-service/pull/45.diff","patch_url":"https://github.com/apertium/apertium-stats-service/pull/45.patch","issue_url":"https://api.github.com/repos/apertium/apertium-stats-service/issues/45","number":45,"state":"open","locked":false,"title":"Git SHA","user":{"login":"nu11us","id":15113149,"node_id":"MDQ6VXNlcjE1MTEzMTQ5","avatar_url":"https://avatars0.githubusercontent.com/u/15113149?v=4","gravatar_id":"","url":"https://api.github.com/users/nu11us","html_url":"https://github.com/nu11us","followers_url":"https://api.github.com/users/nu11us/followers","following_url":"https://api.github.com/users/nu11us/following{/other_user}","gists_url":"https://api.github.com/users/nu11us/gists{/gist_id}","starred_url":"https://api.github.com/users/nu11us/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nu11us/subscriptions","organizations_url":"https://api.github.com/users/nu11us/orgs","repos_url":"https://api.github.com/users/nu11us/repos","events_url":"https://api.github.com/users/nu11us/events{/privacy}","received_events_url":"https://api.github.com/users/nu11us/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-13T19:21:18Z","updated_at":"2018-11-19T21:18:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"95ef5fce1294761fe3500ee961887de85720210d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apertium/apertium-stats-service/pulls/45/commits","review_comments_url":"https://api.github.com/repos/apertium/apertium-stats-service/pulls/45/comments","review_comment_url":"https://api.github.com/repos/apertium/apertium-stats-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apertium/apertium-stats-service/issues/45/comments","statuses_url":"https://api.github.com/repos/apertium/apertium-stats-service/statuses/5964c5022fbd4abe2bad8371472b4898d697d0b8","head":{"label":"nu11us:master","ref":"master","sha":"5964c5022fbd4abe2bad8371472b4898d697d0b8","user":{"login":"nu11us","id":15113149,"node_id":"MDQ6VXNlcjE1MTEzMTQ5","avatar_url":"https://avatars0.githubusercontent.com/u/15113149?v=4","gravatar_id":"","url":"https://api.github.com/users/nu11us","html_url":"https://github.com/nu11us","followers_url":"https://api.github.com/users/nu11us/followers","following_url":"https://api.github.com/users/nu11us/following{/other_user}","gists_url":"https://api.github.com/users/nu11us/gists{/gist_id}","starred_url":"https://api.github.com/users/nu11us/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nu11us/subscriptions","organizations_url":"https://api.github.com/users/nu11us/orgs","repos_url":"https://api.github.com/users/nu11us/repos","events_url":"https://api.github.com/users/nu11us/events{/privacy}","received_events_url":"https://api.github.com/users/nu11us/received_events","type":"User","site_admin":false},"repo":{"id":157433424,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc0MzM0MjQ=","name":"apertium-stats-service","full_name":"nu11us/apertium-stats-service","private":false,"owner":{"login":"nu11us","id":15113149,"node_id":"MDQ6VXNlcjE1MTEzMTQ5","avatar_url":"https://avatars0.githubusercontent.com/u/15113149?v=4","gravatar_id":"","url":"https://api.github.com/users/nu11us","html_url":"https://github.com/nu11us","followers_url":"https://api.github.com/users/nu11us/followers","following_url":"https://api.github.com/users/nu11us/following{/other_user}","gists_url":"https://api.github.com/users/nu11us/gists{/gist_id}","starred_url":"https://api.github.com/users/nu11us/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nu11us/subscriptions","organizations_url":"https://api.github.com/users/nu11us/orgs","repos_url":"https://api.github.com/users/nu11us/repos","events_url":"https://api.github.com/users/nu11us/events{/privacy}","received_events_url":"https://api.github.com/users/nu11us/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nu11us/apertium-stats-service","description":"Stateful Rust web service that enables the efficient concurrent compilation and distribution of statistics regarding Apertium packages via a RESTful API.","fork":true,"url":"https://api.github.com/repos/nu11us/apertium-stats-service","forks_url":"https://api.github.com/repos/nu11us/apertium-stats-service/forks","keys_url":"https://api.github.com/repos/nu11us/apertium-stats-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nu11us/apertium-stats-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nu11us/apertium-stats-service/teams","hooks_url":"https://api.github.com/repos/nu11us/apertium-stats-service/hooks","issue_events_url":"https://api.github.com/repos/nu11us/apertium-stats-service/issues/events{/number}","events_url":"https://api.github.com/repos/nu11us/apertium-stats-service/events","assignees_url":"https://api.github.com/repos/nu11us/apertium-stats-service/assignees{/user}","branches_url":"https://api.github.com/repos/nu11us/apertium-stats-service/branches{/branch}","tags_url":"https://api.github.com/repos/nu11us/apertium-stats-service/tags","blobs_url":"https://api.github.com/repos/nu11us/apertium-stats-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nu11us/apertium-stats-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nu11us/apertium-stats-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/nu11us/apertium-stats-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nu11us/apertium-stats-service/statuses/{sha}","languages_url":"https://api.github.com/repos/nu11us/apertium-stats-service/languages","stargazers_url":"https://api.github.com/repos/nu11us/apertium-stats-service/stargazers","contributors_url":"https://api.github.com/repos/nu11us/apertium-stats-service/contributors","subscribers_url":"https://api.github.com/repos/nu11us/apertium-stats-service/subscribers","subscription_url":"https://api.github.com/repos/nu11us/apertium-stats-service/subscription","commits_url":"https://api.github.com/repos/nu11us/apertium-stats-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/nu11us/apertium-stats-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/nu11us/apertium-stats-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/nu11us/apertium-stats-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/nu11us/apertium-stats-service/contents/{+path}","compare_url":"https://api.github.com/repos/nu11us/apertium-stats-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nu11us/apertium-stats-service/merges","archive_url":"https://api.github.com/repos/nu11us/apertium-stats-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nu11us/apertium-stats-service/downloads","issues_url":"https://api.github.com/repos/nu11us/apertium-stats-service/issues{/number}","pulls_url":"https://api.github.com/repos/nu11us/apertium-stats-service/pulls{/number}","milestones_url":"https://api.github.com/repos/nu11us/apertium-stats-service/milestones{/number}","notifications_url":"https://api.github.com/repos/nu11us/apertium-stats-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nu11us/apertium-stats-service/labels{/name}","releases_url":"https://api.github.com/repos/nu11us/apertium-stats-service/releases{/id}","deployments_url":"https://api.github.com/repos/nu11us/apertium-stats-service/deployments","created_at":"2018-11-13T19:20:01Z","updated_at":"2018-11-19T20:59:48Z","pushed_at":"2018-11-19T20:59:47Z","git_url":"git://github.com/nu11us/apertium-stats-service.git","ssh_url":"git@github.com:nu11us/apertium-stats-service.git","clone_url":"https://github.com/nu11us/apertium-stats-service.git","svn_url":"https://github.com/nu11us/apertium-stats-service","homepage":"","size":200,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apertium:master","ref":"master","sha":"1a5bc9793f31d64bd42238edb81aa7bb1f199a3a","user":{"login":"apertium","id":4594256,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1OTQyNTY=","avatar_url":"https://avatars2.githubusercontent.com/u/4594256?v=4","gravatar_id":"","url":"https://api.github.com/users/apertium","html_url":"https://github.com/apertium","followers_url":"https://api.github.com/users/apertium/followers","following_url":"https://api.github.com/users/apertium/following{/other_user}","gists_url":"https://api.github.com/users/apertium/gists{/gist_id}","starred_url":"https://api.github.com/users/apertium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apertium/subscriptions","organizations_url":"https://api.github.com/users/apertium/orgs","repos_url":"https://api.github.com/users/apertium/repos","events_url":"https://api.github.com/users/apertium/events{/privacy}","received_events_url":"https://api.github.com/users/apertium/received_events","type":"Organization","site_admin":false},"repo":{"id":124732295,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ3MzIyOTU=","name":"apertium-stats-service","full_name":"apertium/apertium-stats-service","private":false,"owner":{"login":"apertium","id":4594256,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1OTQyNTY=","avatar_url":"https://avatars2.githubusercontent.com/u/4594256?v=4","gravatar_id":"","url":"https://api.github.com/users/apertium","html_url":"https://github.com/apertium","followers_url":"https://api.github.com/users/apertium/followers","following_url":"https://api.github.com/users/apertium/following{/other_user}","gists_url":"https://api.github.com/users/apertium/gists{/gist_id}","starred_url":"https://api.github.com/users/apertium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apertium/subscriptions","organizations_url":"https://api.github.com/users/apertium/orgs","repos_url":"https://api.github.com/users/apertium/repos","events_url":"https://api.github.com/users/apertium/events{/privacy}","received_events_url":"https://api.github.com/users/apertium/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/apertium/apertium-stats-service","description":"Stateful Rust web service that enables the efficient concurrent compilation and distribution of statistics regarding Apertium packages via a RESTful API.","fork":false,"url":"https://api.github.com/repos/apertium/apertium-stats-service","forks_url":"https://api.github.com/repos/apertium/apertium-stats-service/forks","keys_url":"https://api.github.com/repos/apertium/apertium-stats-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apertium/apertium-stats-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apertium/apertium-stats-service/teams","hooks_url":"https://api.github.com/repos/apertium/apertium-stats-service/hooks","issue_events_url":"https://api.github.com/repos/apertium/apertium-stats-service/issues/events{/number}","events_url":"https://api.github.com/repos/apertium/apertium-stats-service/events","assignees_url":"https://api.github.com/repos/apertium/apertium-stats-service/assignees{/user}","branches_url":"https://api.github.com/repos/apertium/apertium-stats-service/branches{/branch}","tags_url":"https://api.github.com/repos/apertium/apertium-stats-service/tags","blobs_url":"https://api.github.com/repos/apertium/apertium-stats-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apertium/apertium-stats-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apertium/apertium-stats-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/apertium/apertium-stats-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apertium/apertium-stats-service/statuses/{sha}","languages_url":"https://api.github.com/repos/apertium/apertium-stats-service/languages","stargazers_url":"https://api.github.com/repos/apertium/apertium-stats-service/stargazers","contributors_url":"https://api.github.com/repos/apertium/apertium-stats-service/contributors","subscribers_url":"https://api.github.com/repos/apertium/apertium-stats-service/subscribers","subscription_url":"https://api.github.com/repos/apertium/apertium-stats-service/subscription","commits_url":"https://api.github.com/repos/apertium/apertium-stats-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/apertium/apertium-stats-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/apertium/apertium-stats-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/apertium/apertium-stats-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/apertium/apertium-stats-service/contents/{+path}","compare_url":"https://api.github.com/repos/apertium/apertium-stats-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apertium/apertium-stats-service/merges","archive_url":"https://api.github.com/repos/apertium/apertium-stats-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apertium/apertium-stats-service/downloads","issues_url":"https://api.github.com/repos/apertium/apertium-stats-service/issues{/number}","pulls_url":"https://api.github.com/repos/apertium/apertium-stats-service/pulls{/number}","milestones_url":"https://api.github.com/repos/apertium/apertium-stats-service/milestones{/number}","notifications_url":"https://api.github.com/repos/apertium/apertium-stats-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apertium/apertium-stats-service/labels{/name}","releases_url":"https://api.github.com/repos/apertium/apertium-stats-service/releases{/id}","deployments_url":"https://api.github.com/repos/apertium/apertium-stats-service/deployments","created_at":"2018-03-11T07:08:11Z","updated_at":"2018-11-14T23:47:56Z","pushed_at":"2018-11-19T20:59:47Z","git_url":"git://github.com/apertium/apertium-stats-service.git","ssh_url":"git@github.com:apertium/apertium-stats-service.git","clone_url":"https://github.com/apertium/apertium-stats-service.git","svn_url":"https://github.com/apertium/apertium-stats-service","homepage":"","size":206,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":1,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apertium/apertium-stats-service/pulls/45"},"html":{"href":"https://github.com/apertium/apertium-stats-service/pull/45"},"issue":{"href":"https://api.github.com/repos/apertium/apertium-stats-service/issues/45"},"comments":{"href":"https://api.github.com/repos/apertium/apertium-stats-service/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/apertium/apertium-stats-service/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/apertium/apertium-stats-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apertium/apertium-stats-service/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/apertium/apertium-stats-service/statuses/5964c5022fbd4abe2bad8371472b4898d697d0b8"}},"author_association":"NONE"}}
{"actor":{"display_login":"sushain97"}}