{"action":"created","comment":{"url":"https://api.github.com/repos/yu55/gog/pulls/comments/41958402","id":41958402,"diff_hunk":"@@ -0,0 +1,29 @@\n+package com.github.yu55.gog.core;\n+\n+import java.util.List;\n+\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.stereotype.Component;\n+\n+import com.github.yu55.gog.core.model.GrepRequest;\n+import com.github.yu55.gog.core.model.GrepResponse;\n+import com.github.yu55.gog.handler.git.GitGrepHandler;\n+\n+@Component\n+public class GrepService {\n+\n+    private final GitGrepHandler gitGrepHandler;","path":"src/main/java/com/github/yu55/gog/core/GrepService.java","position":15,"original_position":15,"commit_id":"4990d4650aa40a6cf5232fcfc1aa57e9aa26644a","original_commit_id":"4990d4650aa40a6cf5232fcfc1aa57e9aa26644a","user":{"login":"yu55","id":1789867,"avatar_url":"https://avatars.githubusercontent.com/u/1789867?v=3","gravatar_id":"","url":"https://api.github.com/users/yu55","html_url":"https://github.com/yu55","followers_url":"https://api.github.com/users/yu55/followers","following_url":"https://api.github.com/users/yu55/following{/other_user}","gists_url":"https://api.github.com/users/yu55/gists{/gist_id}","starred_url":"https://api.github.com/users/yu55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yu55/subscriptions","organizations_url":"https://api.github.com/users/yu55/orgs","repos_url":"https://api.github.com/users/yu55/repos","events_url":"https://api.github.com/users/yu55/events{/privacy}","received_events_url":"https://api.github.com/users/yu55/received_events","type":"User","site_admin":false},"body":"So, for now GrepService will have hardcoded \"git grepping\"?","created_at":"2015-10-14T06:22:08Z","updated_at":"2015-10-14T06:22:08Z","html_url":"https://github.com/yu55/gog/pull/2#discussion_r41958402","pull_request_url":"https://api.github.com/repos/yu55/gog/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/yu55/gog/pulls/comments/41958402"},"html":{"href":"https://github.com/yu55/gog/pull/2#discussion_r41958402"},"pull_request":{"href":"https://api.github.com/repos/yu55/gog/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/yu55/gog/pulls/2","id":47594954,"html_url":"https://github.com/yu55/gog/pull/2","diff_url":"https://github.com/yu55/gog/pull/2.diff","patch_url":"https://github.com/yu55/gog/pull/2.patch","issue_url":"https://api.github.com/repos/yu55/gog/issues/2","number":2,"state":"open","locked":false,"title":"Refactored a bit for further development","user":{"login":"sawickil","id":7403841,"avatar_url":"https://avatars.githubusercontent.com/u/7403841?v=3","gravatar_id":"","url":"https://api.github.com/users/sawickil","html_url":"https://github.com/sawickil","followers_url":"https://api.github.com/users/sawickil/followers","following_url":"https://api.github.com/users/sawickil/following{/other_user}","gists_url":"https://api.github.com/users/sawickil/gists{/gist_id}","starred_url":"https://api.github.com/users/sawickil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sawickil/subscriptions","organizations_url":"https://api.github.com/users/sawickil/orgs","repos_url":"https://api.github.com/users/sawickil/repos","events_url":"https://api.github.com/users/sawickil/events{/privacy}","received_events_url":"https://api.github.com/users/sawickil/received_events","type":"User","site_admin":false},"body":"I know it looks like a huge disaster, but let's try to make this code more structured. However, I believe there are a few things left;)","created_at":"2015-10-13T22:05:15Z","updated_at":"2015-10-14T06:22:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf69194ba94e3dd95b7c7f4582dee21ef9d084d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yu55/gog/pulls/2/commits","review_comments_url":"https://api.github.com/repos/yu55/gog/pulls/2/comments","review_comment_url":"https://api.github.com/repos/yu55/gog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yu55/gog/issues/2/comments","statuses_url":"https://api.github.com/repos/yu55/gog/statuses/4990d4650aa40a6cf5232fcfc1aa57e9aa26644a","head":{"label":"sawickil:master","ref":"master","sha":"4990d4650aa40a6cf5232fcfc1aa57e9aa26644a","user":{"login":"sawickil","id":7403841,"avatar_url":"https://avatars.githubusercontent.com/u/7403841?v=3","gravatar_id":"","url":"https://api.github.com/users/sawickil","html_url":"https://github.com/sawickil","followers_url":"https://api.github.com/users/sawickil/followers","following_url":"https://api.github.com/users/sawickil/following{/other_user}","gists_url":"https://api.github.com/users/sawickil/gists{/gist_id}","starred_url":"https://api.github.com/users/sawickil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sawickil/subscriptions","organizations_url":"https://api.github.com/users/sawickil/orgs","repos_url":"https://api.github.com/users/sawickil/repos","events_url":"https://api.github.com/users/sawickil/events{/privacy}","received_events_url":"https://api.github.com/users/sawickil/received_events","type":"User","site_admin":false},"repo":{"id":44171395,"name":"gog","full_name":"sawickil/gog","owner":{"login":"sawickil","id":7403841,"avatar_url":"https://avatars.githubusercontent.com/u/7403841?v=3","gravatar_id":"","url":"https://api.github.com/users/sawickil","html_url":"https://github.com/sawickil","followers_url":"https://api.github.com/users/sawickil/followers","following_url":"https://api.github.com/users/sawickil/following{/other_user}","gists_url":"https://api.github.com/users/sawickil/gists{/gist_id}","starred_url":"https://api.github.com/users/sawickil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sawickil/subscriptions","organizations_url":"https://api.github.com/users/sawickil/orgs","repos_url":"https://api.github.com/users/sawickil/repos","events_url":"https://api.github.com/users/sawickil/events{/privacy}","received_events_url":"https://api.github.com/users/sawickil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sawickil/gog","description":"Git Online Grep - simple web application that allows you to git grep over many repositories via web interface.","fork":true,"url":"https://api.github.com/repos/sawickil/gog","forks_url":"https://api.github.com/repos/sawickil/gog/forks","keys_url":"https://api.github.com/repos/sawickil/gog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sawickil/gog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sawickil/gog/teams","hooks_url":"https://api.github.com/repos/sawickil/gog/hooks","issue_events_url":"https://api.github.com/repos/sawickil/gog/issues/events{/number}","events_url":"https://api.github.com/repos/sawickil/gog/events","assignees_url":"https://api.github.com/repos/sawickil/gog/assignees{/user}","branches_url":"https://api.github.com/repos/sawickil/gog/branches{/branch}","tags_url":"https://api.github.com/repos/sawickil/gog/tags","blobs_url":"https://api.github.com/repos/sawickil/gog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sawickil/gog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sawickil/gog/git/refs{/sha}","trees_url":"https://api.github.com/repos/sawickil/gog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sawickil/gog/statuses/{sha}","languages_url":"https://api.github.com/repos/sawickil/gog/languages","stargazers_url":"https://api.github.com/repos/sawickil/gog/stargazers","contributors_url":"https://api.github.com/repos/sawickil/gog/contributors","subscribers_url":"https://api.github.com/repos/sawickil/gog/subscribers","subscription_url":"https://api.github.com/repos/sawickil/gog/subscription","commits_url":"https://api.github.com/repos/sawickil/gog/commits{/sha}","git_commits_url":"https://api.github.com/repos/sawickil/gog/git/commits{/sha}","comments_url":"https://api.github.com/repos/sawickil/gog/comments{/number}","issue_comment_url":"https://api.github.com/repos/sawickil/gog/issues/comments{/number}","contents_url":"https://api.github.com/repos/sawickil/gog/contents/{+path}","compare_url":"https://api.github.com/repos/sawickil/gog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sawickil/gog/merges","archive_url":"https://api.github.com/repos/sawickil/gog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sawickil/gog/downloads","issues_url":"https://api.github.com/repos/sawickil/gog/issues{/number}","pulls_url":"https://api.github.com/repos/sawickil/gog/pulls{/number}","milestones_url":"https://api.github.com/repos/sawickil/gog/milestones{/number}","notifications_url":"https://api.github.com/repos/sawickil/gog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sawickil/gog/labels{/name}","releases_url":"https://api.github.com/repos/sawickil/gog/releases{/id}","created_at":"2015-10-13T11:23:12Z","updated_at":"2015-10-13T11:23:13Z","pushed_at":"2015-10-13T22:02:12Z","git_url":"git://github.com/sawickil/gog.git","ssh_url":"git@github.com:sawickil/gog.git","clone_url":"https://github.com/sawickil/gog.git","svn_url":"https://github.com/sawickil/gog","homepage":"https://github.com/yu55/gog","size":276,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"yu55:master","ref":"master","sha":"a4d018c32d9e161eb8146f3e4cae3e80f398f323","user":{"login":"yu55","id":1789867,"avatar_url":"https://avatars.githubusercontent.com/u/1789867?v=3","gravatar_id":"","url":"https://api.github.com/users/yu55","html_url":"https://github.com/yu55","followers_url":"https://api.github.com/users/yu55/followers","following_url":"https://api.github.com/users/yu55/following{/other_user}","gists_url":"https://api.github.com/users/yu55/gists{/gist_id}","starred_url":"https://api.github.com/users/yu55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yu55/subscriptions","organizations_url":"https://api.github.com/users/yu55/orgs","repos_url":"https://api.github.com/users/yu55/repos","events_url":"https://api.github.com/users/yu55/events{/privacy}","received_events_url":"https://api.github.com/users/yu55/received_events","type":"User","site_admin":false},"repo":{"id":42675041,"name":"gog","full_name":"yu55/gog","owner":{"login":"yu55","id":1789867,"avatar_url":"https://avatars.githubusercontent.com/u/1789867?v=3","gravatar_id":"","url":"https://api.github.com/users/yu55","html_url":"https://github.com/yu55","followers_url":"https://api.github.com/users/yu55/followers","following_url":"https://api.github.com/users/yu55/following{/other_user}","gists_url":"https://api.github.com/users/yu55/gists{/gist_id}","starred_url":"https://api.github.com/users/yu55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yu55/subscriptions","organizations_url":"https://api.github.com/users/yu55/orgs","repos_url":"https://api.github.com/users/yu55/repos","events_url":"https://api.github.com/users/yu55/events{/privacy}","received_events_url":"https://api.github.com/users/yu55/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yu55/gog","description":"Git Online Grep - simple web application that allows you to git grep over many repositories via web interface.","fork":false,"url":"https://api.github.com/repos/yu55/gog","forks_url":"https://api.github.com/repos/yu55/gog/forks","keys_url":"https://api.github.com/repos/yu55/gog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yu55/gog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yu55/gog/teams","hooks_url":"https://api.github.com/repos/yu55/gog/hooks","issue_events_url":"https://api.github.com/repos/yu55/gog/issues/events{/number}","events_url":"https://api.github.com/repos/yu55/gog/events","assignees_url":"https://api.github.com/repos/yu55/gog/assignees{/user}","branches_url":"https://api.github.com/repos/yu55/gog/branches{/branch}","tags_url":"https://api.github.com/repos/yu55/gog/tags","blobs_url":"https://api.github.com/repos/yu55/gog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yu55/gog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yu55/gog/git/refs{/sha}","trees_url":"https://api.github.com/repos/yu55/gog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yu55/gog/statuses/{sha}","languages_url":"https://api.github.com/repos/yu55/gog/languages","stargazers_url":"https://api.github.com/repos/yu55/gog/stargazers","contributors_url":"https://api.github.com/repos/yu55/gog/contributors","subscribers_url":"https://api.github.com/repos/yu55/gog/subscribers","subscription_url":"https://api.github.com/repos/yu55/gog/subscription","commits_url":"https://api.github.com/repos/yu55/gog/commits{/sha}","git_commits_url":"https://api.github.com/repos/yu55/gog/git/commits{/sha}","comments_url":"https://api.github.com/repos/yu55/gog/comments{/number}","issue_comment_url":"https://api.github.com/repos/yu55/gog/issues/comments{/number}","contents_url":"https://api.github.com/repos/yu55/gog/contents/{+path}","compare_url":"https://api.github.com/repos/yu55/gog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yu55/gog/merges","archive_url":"https://api.github.com/repos/yu55/gog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yu55/gog/downloads","issues_url":"https://api.github.com/repos/yu55/gog/issues{/number}","pulls_url":"https://api.github.com/repos/yu55/gog/pulls{/number}","milestones_url":"https://api.github.com/repos/yu55/gog/milestones{/number}","notifications_url":"https://api.github.com/repos/yu55/gog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yu55/gog/labels{/name}","releases_url":"https://api.github.com/repos/yu55/gog/releases{/id}","created_at":"2015-09-17T18:46:42Z","updated_at":"2015-10-06T19:43:30Z","pushed_at":"2015-10-13T22:05:15Z","git_url":"git://github.com/yu55/gog.git","ssh_url":"git@github.com:yu55/gog.git","clone_url":"https://github.com/yu55/gog.git","svn_url":"https://github.com/yu55/gog","homepage":"https://github.com/yu55/gog","size":276,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yu55/gog/pulls/2"},"html":{"href":"https://github.com/yu55/gog/pull/2"},"issue":{"href":"https://api.github.com/repos/yu55/gog/issues/2"},"comments":{"href":"https://api.github.com/repos/yu55/gog/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/yu55/gog/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/yu55/gog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yu55/gog/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/yu55/gog/statuses/4990d4650aa40a6cf5232fcfc1aa57e9aa26644a"}}}}