{"action":"created","comment":{"url":"https://api.github.com/repos/okkur/reposeed-server/pulls/comments/175259210","pull_request_review_id":104766430,"id":175259210,"diff_hunk":"@@ -0,0 +1,26 @@\n+package main\n+\n+import (\n+\t\"log\"\n+\t\"os\"\n+\n+\t\"github.com/gin-gonic/gin\"\n+\t\"github.com/joho/godotenv\"\n+\t\"github.com/okkur/reposeed-server/generator\"\n+\t\"github.com/okkur/reposeed/cmd/reposeed/config\"\n+)\n+\n+func main() {\n+\terr := godotenv.Load()\n+\tif err != nil {\n+\t\tlog.Println(\"Couldn't find .env file. Reading environment variables from system\")\n+\t}\n+\tapp := gin.Default()\n+\tconfig := &config.Config{}\n+\tapp.POST(\"/generate\", func(ctx *gin.Context) {\n+\t\tctx.BindJSON(config)\n+\t\tfilename := generator.CreateFiles(*config, \"../templates\", config.Project.Name, os.Getenv(\"STORAGE\"))","path":"main.go","position":22,"original_position":22,"commit_id":"fab96953f4e622d54d85a2d4e93b3047277c381b","original_commit_id":"fab96953f4e622d54d85a2d4e93b3047277c381b","user":{"login":"alarsyo","id":15170378,"avatar_url":"https://avatars2.githubusercontent.com/u/15170378?v=4","gravatar_id":"","url":"https://api.github.com/users/alarsyo","html_url":"https://github.com/alarsyo","followers_url":"https://api.github.com/users/alarsyo/followers","following_url":"https://api.github.com/users/alarsyo/following{/other_user}","gists_url":"https://api.github.com/users/alarsyo/gists{/gist_id}","starred_url":"https://api.github.com/users/alarsyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alarsyo/subscriptions","organizations_url":"https://api.github.com/users/alarsyo/orgs","repos_url":"https://api.github.com/users/alarsyo/repos","events_url":"https://api.github.com/users/alarsyo/events{/privacy}","received_events_url":"https://api.github.com/users/alarsyo/received_events","type":"User","site_admin":false},"body":"I guess CreateFiles could also return an error so that we can print it to the user, if something is wrong with their json file ?","created_at":"2018-03-17T14:12:03Z","updated_at":"2018-03-17T14:15:29Z","html_url":"https://github.com/okkur/reposeed-server/pull/7#discussion_r175259210","pull_request_url":"https://api.github.com/repos/okkur/reposeed-server/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/okkur/reposeed-server/pulls/comments/175259210"},"html":{"href":"https://github.com/okkur/reposeed-server/pull/7#discussion_r175259210"},"pull_request":{"href":"https://api.github.com/repos/okkur/reposeed-server/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/okkur/reposeed-server/pulls/7","id":175243299,"html_url":"https://github.com/okkur/reposeed-server/pull/7","diff_url":"https://github.com/okkur/reposeed-server/pull/7.diff","patch_url":"https://github.com/okkur/reposeed-server/pull/7.patch","issue_url":"https://api.github.com/repos/okkur/reposeed-server/issues/7","number":7,"state":"open","locked":false,"title":"Initial PR","user":{"login":"erbesharat","id":7544732,"avatar_url":"https://avatars2.githubusercontent.com/u/7544732?v=4","gravatar_id":"","url":"https://api.github.com/users/erbesharat","html_url":"https://github.com/erbesharat","followers_url":"https://api.github.com/users/erbesharat/followers","following_url":"https://api.github.com/users/erbesharat/following{/other_user}","gists_url":"https://api.github.com/users/erbesharat/gists{/gist_id}","starred_url":"https://api.github.com/users/erbesharat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erbesharat/subscriptions","organizations_url":"https://api.github.com/users/erbesharat/orgs","repos_url":"https://api.github.com/users/erbesharat/repos","events_url":"https://api.github.com/users/erbesharat/events{/privacy}","received_events_url":"https://api.github.com/users/erbesharat/received_events","type":"User","site_admin":false},"body":"First PR,\r\nAll the issues reported got fixed and it's ready to use. Just needs a final review.","created_at":"2018-03-15T13:02:07Z","updated_at":"2018-03-17T14:15:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6d2fb07408c3a057dc82b34b80515158edbb981","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/okkur/reposeed-server/pulls/7/commits","review_comments_url":"https://api.github.com/repos/okkur/reposeed-server/pulls/7/comments","review_comment_url":"https://api.github.com/repos/okkur/reposeed-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/okkur/reposeed-server/issues/7/comments","statuses_url":"https://api.github.com/repos/okkur/reposeed-server/statuses/fab96953f4e622d54d85a2d4e93b3047277c381b","head":{"label":"okkur:erbesharat","ref":"erbesharat","sha":"fab96953f4e622d54d85a2d4e93b3047277c381b","user":{"login":"okkur","id":31181753,"avatar_url":"https://avatars1.githubusercontent.com/u/31181753?v=4","gravatar_id":"","url":"https://api.github.com/users/okkur","html_url":"https://github.com/okkur","followers_url":"https://api.github.com/users/okkur/followers","following_url":"https://api.github.com/users/okkur/following{/other_user}","gists_url":"https://api.github.com/users/okkur/gists{/gist_id}","starred_url":"https://api.github.com/users/okkur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okkur/subscriptions","organizations_url":"https://api.github.com/users/okkur/orgs","repos_url":"https://api.github.com/users/okkur/repos","events_url":"https://api.github.com/users/okkur/events{/privacy}","received_events_url":"https://api.github.com/users/okkur/received_events","type":"Organization","site_admin":false},"repo":{"id":122824829,"name":"reposeed-server","full_name":"okkur/reposeed-server","owner":{"login":"okkur","id":31181753,"avatar_url":"https://avatars1.githubusercontent.com/u/31181753?v=4","gravatar_id":"","url":"https://api.github.com/users/okkur","html_url":"https://github.com/okkur","followers_url":"https://api.github.com/users/okkur/followers","following_url":"https://api.github.com/users/okkur/following{/other_user}","gists_url":"https://api.github.com/users/okkur/gists{/gist_id}","starred_url":"https://api.github.com/users/okkur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okkur/subscriptions","organizations_url":"https://api.github.com/users/okkur/orgs","repos_url":"https://api.github.com/users/okkur/repos","events_url":"https://api.github.com/users/okkur/events{/privacy}","received_events_url":"https://api.github.com/users/okkur/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/okkur/reposeed-server","description":null,"fork":false,"url":"https://api.github.com/repos/okkur/reposeed-server","forks_url":"https://api.github.com/repos/okkur/reposeed-server/forks","keys_url":"https://api.github.com/repos/okkur/reposeed-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okkur/reposeed-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okkur/reposeed-server/teams","hooks_url":"https://api.github.com/repos/okkur/reposeed-server/hooks","issue_events_url":"https://api.github.com/repos/okkur/reposeed-server/issues/events{/number}","events_url":"https://api.github.com/repos/okkur/reposeed-server/events","assignees_url":"https://api.github.com/repos/okkur/reposeed-server/assignees{/user}","branches_url":"https://api.github.com/repos/okkur/reposeed-server/branches{/branch}","tags_url":"https://api.github.com/repos/okkur/reposeed-server/tags","blobs_url":"https://api.github.com/repos/okkur/reposeed-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okkur/reposeed-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okkur/reposeed-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/okkur/reposeed-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okkur/reposeed-server/statuses/{sha}","languages_url":"https://api.github.com/repos/okkur/reposeed-server/languages","stargazers_url":"https://api.github.com/repos/okkur/reposeed-server/stargazers","contributors_url":"https://api.github.com/repos/okkur/reposeed-server/contributors","subscribers_url":"https://api.github.com/repos/okkur/reposeed-server/subscribers","subscription_url":"https://api.github.com/repos/okkur/reposeed-server/subscription","commits_url":"https://api.github.com/repos/okkur/reposeed-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/okkur/reposeed-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/okkur/reposeed-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/okkur/reposeed-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/okkur/reposeed-server/contents/{+path}","compare_url":"https://api.github.com/repos/okkur/reposeed-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okkur/reposeed-server/merges","archive_url":"https://api.github.com/repos/okkur/reposeed-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okkur/reposeed-server/downloads","issues_url":"https://api.github.com/repos/okkur/reposeed-server/issues{/number}","pulls_url":"https://api.github.com/repos/okkur/reposeed-server/pulls{/number}","milestones_url":"https://api.github.com/repos/okkur/reposeed-server/milestones{/number}","notifications_url":"https://api.github.com/repos/okkur/reposeed-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okkur/reposeed-server/labels{/name}","releases_url":"https://api.github.com/repos/okkur/reposeed-server/releases{/id}","deployments_url":"https://api.github.com/repos/okkur/reposeed-server/deployments","created_at":"2018-02-25T10:11:56Z","updated_at":"2018-03-15T12:33:55Z","pushed_at":"2018-03-15T13:02:07Z","git_url":"git://github.com/okkur/reposeed-server.git","ssh_url":"git@github.com:okkur/reposeed-server.git","clone_url":"https://github.com/okkur/reposeed-server.git","svn_url":"https://github.com/okkur/reposeed-server","homepage":null,"size":2831,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"okkur:master","ref":"master","sha":"b14f196fecd76474c24d7280c4c7999c1e831d46","user":{"login":"okkur","id":31181753,"avatar_url":"https://avatars1.githubusercontent.com/u/31181753?v=4","gravatar_id":"","url":"https://api.github.com/users/okkur","html_url":"https://github.com/okkur","followers_url":"https://api.github.com/users/okkur/followers","following_url":"https://api.github.com/users/okkur/following{/other_user}","gists_url":"https://api.github.com/users/okkur/gists{/gist_id}","starred_url":"https://api.github.com/users/okkur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okkur/subscriptions","organizations_url":"https://api.github.com/users/okkur/orgs","repos_url":"https://api.github.com/users/okkur/repos","events_url":"https://api.github.com/users/okkur/events{/privacy}","received_events_url":"https://api.github.com/users/okkur/received_events","type":"Organization","site_admin":false},"repo":{"id":122824829,"name":"reposeed-server","full_name":"okkur/reposeed-server","owner":{"login":"okkur","id":31181753,"avatar_url":"https://avatars1.githubusercontent.com/u/31181753?v=4","gravatar_id":"","url":"https://api.github.com/users/okkur","html_url":"https://github.com/okkur","followers_url":"https://api.github.com/users/okkur/followers","following_url":"https://api.github.com/users/okkur/following{/other_user}","gists_url":"https://api.github.com/users/okkur/gists{/gist_id}","starred_url":"https://api.github.com/users/okkur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okkur/subscriptions","organizations_url":"https://api.github.com/users/okkur/orgs","repos_url":"https://api.github.com/users/okkur/repos","events_url":"https://api.github.com/users/okkur/events{/privacy}","received_events_url":"https://api.github.com/users/okkur/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/okkur/reposeed-server","description":null,"fork":false,"url":"https://api.github.com/repos/okkur/reposeed-server","forks_url":"https://api.github.com/repos/okkur/reposeed-server/forks","keys_url":"https://api.github.com/repos/okkur/reposeed-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okkur/reposeed-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okkur/reposeed-server/teams","hooks_url":"https://api.github.com/repos/okkur/reposeed-server/hooks","issue_events_url":"https://api.github.com/repos/okkur/reposeed-server/issues/events{/number}","events_url":"https://api.github.com/repos/okkur/reposeed-server/events","assignees_url":"https://api.github.com/repos/okkur/reposeed-server/assignees{/user}","branches_url":"https://api.github.com/repos/okkur/reposeed-server/branches{/branch}","tags_url":"https://api.github.com/repos/okkur/reposeed-server/tags","blobs_url":"https://api.github.com/repos/okkur/reposeed-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okkur/reposeed-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okkur/reposeed-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/okkur/reposeed-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okkur/reposeed-server/statuses/{sha}","languages_url":"https://api.github.com/repos/okkur/reposeed-server/languages","stargazers_url":"https://api.github.com/repos/okkur/reposeed-server/stargazers","contributors_url":"https://api.github.com/repos/okkur/reposeed-server/contributors","subscribers_url":"https://api.github.com/repos/okkur/reposeed-server/subscribers","subscription_url":"https://api.github.com/repos/okkur/reposeed-server/subscription","commits_url":"https://api.github.com/repos/okkur/reposeed-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/okkur/reposeed-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/okkur/reposeed-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/okkur/reposeed-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/okkur/reposeed-server/contents/{+path}","compare_url":"https://api.github.com/repos/okkur/reposeed-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okkur/reposeed-server/merges","archive_url":"https://api.github.com/repos/okkur/reposeed-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okkur/reposeed-server/downloads","issues_url":"https://api.github.com/repos/okkur/reposeed-server/issues{/number}","pulls_url":"https://api.github.com/repos/okkur/reposeed-server/pulls{/number}","milestones_url":"https://api.github.com/repos/okkur/reposeed-server/milestones{/number}","notifications_url":"https://api.github.com/repos/okkur/reposeed-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okkur/reposeed-server/labels{/name}","releases_url":"https://api.github.com/repos/okkur/reposeed-server/releases{/id}","deployments_url":"https://api.github.com/repos/okkur/reposeed-server/deployments","created_at":"2018-02-25T10:11:56Z","updated_at":"2018-03-15T12:33:55Z","pushed_at":"2018-03-15T13:02:07Z","git_url":"git://github.com/okkur/reposeed-server.git","ssh_url":"git@github.com:okkur/reposeed-server.git","clone_url":"https://github.com/okkur/reposeed-server.git","svn_url":"https://github.com/okkur/reposeed-server","homepage":null,"size":2831,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/okkur/reposeed-server/pulls/7"},"html":{"href":"https://github.com/okkur/reposeed-server/pull/7"},"issue":{"href":"https://api.github.com/repos/okkur/reposeed-server/issues/7"},"comments":{"href":"https://api.github.com/repos/okkur/reposeed-server/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/okkur/reposeed-server/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/okkur/reposeed-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/okkur/reposeed-server/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/okkur/reposeed-server/statuses/fab96953f4e622d54d85a2d4e93b3047277c381b"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"alarsyo"}}