{"action":"created","comment":{"url":"https://api.github.com/repos/SmartCourse/app/pulls/comments/234424664","pull_request_review_id":176070991,"id":234424664,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDQyNDY2NA==","diff_hunk":"@@ -0,0 +1,12 @@\n+#!/bin/bash -e\n+# Script that controls db init\n+\n+PWD=`pwd`;\n+echo \"executing in $PWD\";\n+\n+if [ -f \"$PWD/test.db\" ]; then","path":"backend/src/models/db/init.sh","position":7,"original_position":7,"commit_id":"463211bd3d14275fc289152ea65c946a07f534c7","original_commit_id":"463211bd3d14275fc289152ea65c946a07f534c7","user":{"login":"PapaPwn","id":26681270,"node_id":"MDQ6VXNlcjI2NjgxMjcw","avatar_url":"https://avatars0.githubusercontent.com/u/26681270?v=4","gravatar_id":"","url":"https://api.github.com/users/PapaPwn","html_url":"https://github.com/PapaPwn","followers_url":"https://api.github.com/users/PapaPwn/followers","following_url":"https://api.github.com/users/PapaPwn/following{/other_user}","gists_url":"https://api.github.com/users/PapaPwn/gists{/gist_id}","starred_url":"https://api.github.com/users/PapaPwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PapaPwn/subscriptions","organizations_url":"https://api.github.com/users/PapaPwn/orgs","repos_url":"https://api.github.com/users/PapaPwn/repos","events_url":"https://api.github.com/users/PapaPwn/events{/privacy}","received_events_url":"https://api.github.com/users/PapaPwn/received_events","type":"User","site_admin":false},"body":"`rm -f \"$PWD/test.db\"`  ?","created_at":"2018-11-17T23:22:11Z","updated_at":"2018-11-17T23:22:12Z","html_url":"https://github.com/SmartCourse/app/pull/276#discussion_r234424664","pull_request_url":"https://api.github.com/repos/SmartCourse/app/pulls/276","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/SmartCourse/app/pulls/comments/234424664"},"html":{"href":"https://github.com/SmartCourse/app/pull/276#discussion_r234424664"},"pull_request":{"href":"https://api.github.com/repos/SmartCourse/app/pulls/276"}}},"pull_request":{"url":"https://api.github.com/repos/SmartCourse/app/pulls/276","id":227512093,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3NTEyMDkz","html_url":"https://github.com/SmartCourse/app/pull/276","diff_url":"https://github.com/SmartCourse/app/pull/276.diff","patch_url":"https://github.com/SmartCourse/app/pull/276.patch","issue_url":"https://api.github.com/repos/SmartCourse/app/issues/276","number":276,"state":"open","locked":false,"title":"Move DB init over to SQL","user":{"login":"DarkPurple141","id":13936670,"node_id":"MDQ6VXNlcjEzOTM2Njcw","avatar_url":"https://avatars0.githubusercontent.com/u/13936670?v=4","gravatar_id":"","url":"https://api.github.com/users/DarkPurple141","html_url":"https://github.com/DarkPurple141","followers_url":"https://api.github.com/users/DarkPurple141/followers","following_url":"https://api.github.com/users/DarkPurple141/following{/other_user}","gists_url":"https://api.github.com/users/DarkPurple141/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkPurple141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkPurple141/subscriptions","organizations_url":"https://api.github.com/users/DarkPurple141/orgs","repos_url":"https://api.github.com/users/DarkPurple141/repos","events_url":"https://api.github.com/users/DarkPurple141/events{/privacy}","received_events_url":"https://api.github.com/users/DarkPurple141/received_events","type":"User","site_admin":false},"body":"1. Made it faster","created_at":"2018-11-01T04:44:33Z","updated_at":"2018-11-17T23:22:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68b3746edffda895c49d2bc908657aa59cecf0f9","assignee":{"login":"DarkPurple141","id":13936670,"node_id":"MDQ6VXNlcjEzOTM2Njcw","avatar_url":"https://avatars0.githubusercontent.com/u/13936670?v=4","gravatar_id":"","url":"https://api.github.com/users/DarkPurple141","html_url":"https://github.com/DarkPurple141","followers_url":"https://api.github.com/users/DarkPurple141/followers","following_url":"https://api.github.com/users/DarkPurple141/following{/other_user}","gists_url":"https://api.github.com/users/DarkPurple141/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkPurple141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkPurple141/subscriptions","organizations_url":"https://api.github.com/users/DarkPurple141/orgs","repos_url":"https://api.github.com/users/DarkPurple141/repos","events_url":"https://api.github.com/users/DarkPurple141/events{/privacy}","received_events_url":"https://api.github.com/users/DarkPurple141/received_events","type":"User","site_admin":false},"assignees":[{"login":"DarkPurple141","id":13936670,"node_id":"MDQ6VXNlcjEzOTM2Njcw","avatar_url":"https://avatars0.githubusercontent.com/u/13936670?v=4","gravatar_id":"","url":"https://api.github.com/users/DarkPurple141","html_url":"https://github.com/DarkPurple141","followers_url":"https://api.github.com/users/DarkPurple141/followers","following_url":"https://api.github.com/users/DarkPurple141/following{/other_user}","gists_url":"https://api.github.com/users/DarkPurple141/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkPurple141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkPurple141/subscriptions","organizations_url":"https://api.github.com/users/DarkPurple141/orgs","repos_url":"https://api.github.com/users/DarkPurple141/repos","events_url":"https://api.github.com/users/DarkPurple141/events{/privacy}","received_events_url":"https://api.github.com/users/DarkPurple141/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"NunoDasNeves","id":4468620,"node_id":"MDQ6VXNlcjQ0Njg2MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/4468620?v=4","gravatar_id":"","url":"https://api.github.com/users/NunoDasNeves","html_url":"https://github.com/NunoDasNeves","followers_url":"https://api.github.com/users/NunoDasNeves/followers","following_url":"https://api.github.com/users/NunoDasNeves/following{/other_user}","gists_url":"https://api.github.com/users/NunoDasNeves/gists{/gist_id}","starred_url":"https://api.github.com/users/NunoDasNeves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NunoDasNeves/subscriptions","organizations_url":"https://api.github.com/users/NunoDasNeves/orgs","repos_url":"https://api.github.com/users/NunoDasNeves/repos","events_url":"https://api.github.com/users/NunoDasNeves/events{/privacy}","received_events_url":"https://api.github.com/users/NunoDasNeves/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SmartCourse/app/pulls/276/commits","review_comments_url":"https://api.github.com/repos/SmartCourse/app/pulls/276/comments","review_comment_url":"https://api.github.com/repos/SmartCourse/app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SmartCourse/app/issues/276/comments","statuses_url":"https://api.github.com/repos/SmartCourse/app/statuses/463211bd3d14275fc289152ea65c946a07f534c7","head":{"label":"SmartCourse:s10-sqlerise-db-init","ref":"s10-sqlerise-db-init","sha":"463211bd3d14275fc289152ea65c946a07f534c7","user":{"login":"SmartCourse","id":42050730,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMDUwNzMw","avatar_url":"https://avatars1.githubusercontent.com/u/42050730?v=4","gravatar_id":"","url":"https://api.github.com/users/SmartCourse","html_url":"https://github.com/SmartCourse","followers_url":"https://api.github.com/users/SmartCourse/followers","following_url":"https://api.github.com/users/SmartCourse/following{/other_user}","gists_url":"https://api.github.com/users/SmartCourse/gists{/gist_id}","starred_url":"https://api.github.com/users/SmartCourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmartCourse/subscriptions","organizations_url":"https://api.github.com/users/SmartCourse/orgs","repos_url":"https://api.github.com/users/SmartCourse/repos","events_url":"https://api.github.com/users/SmartCourse/events{/privacy}","received_events_url":"https://api.github.com/users/SmartCourse/received_events","type":"Organization","site_admin":false},"repo":{"id":143969680,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5Njk2ODA=","name":"app","full_name":"SmartCourse/app","private":false,"owner":{"login":"SmartCourse","id":42050730,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMDUwNzMw","avatar_url":"https://avatars1.githubusercontent.com/u/42050730?v=4","gravatar_id":"","url":"https://api.github.com/users/SmartCourse","html_url":"https://github.com/SmartCourse","followers_url":"https://api.github.com/users/SmartCourse/followers","following_url":"https://api.github.com/users/SmartCourse/following{/other_user}","gists_url":"https://api.github.com/users/SmartCourse/gists{/gist_id}","starred_url":"https://api.github.com/users/SmartCourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmartCourse/subscriptions","organizations_url":"https://api.github.com/users/SmartCourse/orgs","repos_url":"https://api.github.com/users/SmartCourse/repos","events_url":"https://api.github.com/users/SmartCourse/events{/privacy}","received_events_url":"https://api.github.com/users/SmartCourse/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SmartCourse/app","description":"Making the most of your degree.","fork":false,"url":"https://api.github.com/repos/SmartCourse/app","forks_url":"https://api.github.com/repos/SmartCourse/app/forks","keys_url":"https://api.github.com/repos/SmartCourse/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SmartCourse/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SmartCourse/app/teams","hooks_url":"https://api.github.com/repos/SmartCourse/app/hooks","issue_events_url":"https://api.github.com/repos/SmartCourse/app/issues/events{/number}","events_url":"https://api.github.com/repos/SmartCourse/app/events","assignees_url":"https://api.github.com/repos/SmartCourse/app/assignees{/user}","branches_url":"https://api.github.com/repos/SmartCourse/app/branches{/branch}","tags_url":"https://api.github.com/repos/SmartCourse/app/tags","blobs_url":"https://api.github.com/repos/SmartCourse/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SmartCourse/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SmartCourse/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/SmartCourse/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SmartCourse/app/statuses/{sha}","languages_url":"https://api.github.com/repos/SmartCourse/app/languages","stargazers_url":"https://api.github.com/repos/SmartCourse/app/stargazers","contributors_url":"https://api.github.com/repos/SmartCourse/app/contributors","subscribers_url":"https://api.github.com/repos/SmartCourse/app/subscribers","subscription_url":"https://api.github.com/repos/SmartCourse/app/subscription","commits_url":"https://api.github.com/repos/SmartCourse/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/SmartCourse/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/SmartCourse/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/SmartCourse/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/SmartCourse/app/contents/{+path}","compare_url":"https://api.github.com/repos/SmartCourse/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SmartCourse/app/merges","archive_url":"https://api.github.com/repos/SmartCourse/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SmartCourse/app/downloads","issues_url":"https://api.github.com/repos/SmartCourse/app/issues{/number}","pulls_url":"https://api.github.com/repos/SmartCourse/app/pulls{/number}","milestones_url":"https://api.github.com/repos/SmartCourse/app/milestones{/number}","notifications_url":"https://api.github.com/repos/SmartCourse/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SmartCourse/app/labels{/name}","releases_url":"https://api.github.com/repos/SmartCourse/app/releases{/id}","deployments_url":"https://api.github.com/repos/SmartCourse/app/deployments","created_at":"2018-08-08T06:22:23Z","updated_at":"2018-11-17T02:29:33Z","pushed_at":"2018-11-17T08:48:17Z","git_url":"git://github.com/SmartCourse/app.git","ssh_url":"git@github.com:SmartCourse/app.git","clone_url":"https://github.com/SmartCourse/app.git","svn_url":"https://github.com/SmartCourse/app","homepage":"https://www.smartcourse.me","size":4544,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":38,"license":null,"forks":0,"open_issues":38,"watchers":2,"default_branch":"dev"}},"base":{"label":"SmartCourse:dev","ref":"dev","sha":"25ef8c79ffd5396b12e056b1bed3e048ba463fb2","user":{"login":"SmartCourse","id":42050730,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMDUwNzMw","avatar_url":"https://avatars1.githubusercontent.com/u/42050730?v=4","gravatar_id":"","url":"https://api.github.com/users/SmartCourse","html_url":"https://github.com/SmartCourse","followers_url":"https://api.github.com/users/SmartCourse/followers","following_url":"https://api.github.com/users/SmartCourse/following{/other_user}","gists_url":"https://api.github.com/users/SmartCourse/gists{/gist_id}","starred_url":"https://api.github.com/users/SmartCourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmartCourse/subscriptions","organizations_url":"https://api.github.com/users/SmartCourse/orgs","repos_url":"https://api.github.com/users/SmartCourse/repos","events_url":"https://api.github.com/users/SmartCourse/events{/privacy}","received_events_url":"https://api.github.com/users/SmartCourse/received_events","type":"Organization","site_admin":false},"repo":{"id":143969680,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5Njk2ODA=","name":"app","full_name":"SmartCourse/app","private":false,"owner":{"login":"SmartCourse","id":42050730,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMDUwNzMw","avatar_url":"https://avatars1.githubusercontent.com/u/42050730?v=4","gravatar_id":"","url":"https://api.github.com/users/SmartCourse","html_url":"https://github.com/SmartCourse","followers_url":"https://api.github.com/users/SmartCourse/followers","following_url":"https://api.github.com/users/SmartCourse/following{/other_user}","gists_url":"https://api.github.com/users/SmartCourse/gists{/gist_id}","starred_url":"https://api.github.com/users/SmartCourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmartCourse/subscriptions","organizations_url":"https://api.github.com/users/SmartCourse/orgs","repos_url":"https://api.github.com/users/SmartCourse/repos","events_url":"https://api.github.com/users/SmartCourse/events{/privacy}","received_events_url":"https://api.github.com/users/SmartCourse/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SmartCourse/app","description":"Making the most of your degree.","fork":false,"url":"https://api.github.com/repos/SmartCourse/app","forks_url":"https://api.github.com/repos/SmartCourse/app/forks","keys_url":"https://api.github.com/repos/SmartCourse/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SmartCourse/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SmartCourse/app/teams","hooks_url":"https://api.github.com/repos/SmartCourse/app/hooks","issue_events_url":"https://api.github.com/repos/SmartCourse/app/issues/events{/number}","events_url":"https://api.github.com/repos/SmartCourse/app/events","assignees_url":"https://api.github.com/repos/SmartCourse/app/assignees{/user}","branches_url":"https://api.github.com/repos/SmartCourse/app/branches{/branch}","tags_url":"https://api.github.com/repos/SmartCourse/app/tags","blobs_url":"https://api.github.com/repos/SmartCourse/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SmartCourse/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SmartCourse/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/SmartCourse/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SmartCourse/app/statuses/{sha}","languages_url":"https://api.github.com/repos/SmartCourse/app/languages","stargazers_url":"https://api.github.com/repos/SmartCourse/app/stargazers","contributors_url":"https://api.github.com/repos/SmartCourse/app/contributors","subscribers_url":"https://api.github.com/repos/SmartCourse/app/subscribers","subscription_url":"https://api.github.com/repos/SmartCourse/app/subscription","commits_url":"https://api.github.com/repos/SmartCourse/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/SmartCourse/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/SmartCourse/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/SmartCourse/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/SmartCourse/app/contents/{+path}","compare_url":"https://api.github.com/repos/SmartCourse/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SmartCourse/app/merges","archive_url":"https://api.github.com/repos/SmartCourse/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SmartCourse/app/downloads","issues_url":"https://api.github.com/repos/SmartCourse/app/issues{/number}","pulls_url":"https://api.github.com/repos/SmartCourse/app/pulls{/number}","milestones_url":"https://api.github.com/repos/SmartCourse/app/milestones{/number}","notifications_url":"https://api.github.com/repos/SmartCourse/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SmartCourse/app/labels{/name}","releases_url":"https://api.github.com/repos/SmartCourse/app/releases{/id}","deployments_url":"https://api.github.com/repos/SmartCourse/app/deployments","created_at":"2018-08-08T06:22:23Z","updated_at":"2018-11-17T02:29:33Z","pushed_at":"2018-11-17T08:48:17Z","git_url":"git://github.com/SmartCourse/app.git","ssh_url":"git@github.com:SmartCourse/app.git","clone_url":"https://github.com/SmartCourse/app.git","svn_url":"https://github.com/SmartCourse/app","homepage":"https://www.smartcourse.me","size":4544,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":38,"license":null,"forks":0,"open_issues":38,"watchers":2,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/SmartCourse/app/pulls/276"},"html":{"href":"https://github.com/SmartCourse/app/pull/276"},"issue":{"href":"https://api.github.com/repos/SmartCourse/app/issues/276"},"comments":{"href":"https://api.github.com/repos/SmartCourse/app/issues/276/comments"},"review_comments":{"href":"https://api.github.com/repos/SmartCourse/app/pulls/276/comments"},"review_comment":{"href":"https://api.github.com/repos/SmartCourse/app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SmartCourse/app/pulls/276/commits"},"statuses":{"href":"https://api.github.com/repos/SmartCourse/app/statuses/463211bd3d14275fc289152ea65c946a07f534c7"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"PapaPwn"}}