{"action":"created","comment":{"url":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls/comments/67571438","id":67571438,"diff_hunk":"@@ -409,7 +409,8 @@\n             var prj = project_path.split(\"server/../\");\n             var file_path = home_dir(current_user(req)) + project_name + \"/\" +\n                             file_name;\n-            execOnServer('mkdir ' + home_dir(current_user(req)) + project_name,\n+            execOnServer('rm -rf ' + home_dir(current_user(req)) + project_name +","path":"server/routes.js","position":5,"original_position":5,"commit_id":"50f7db815d2f669fbc252b2a525ee1b791645ae7","original_commit_id":"50f7db815d2f669fbc252b2a525ee1b791645ae7","user":{"login":"brunobottazzini","id":4460234,"avatar_url":"https://avatars.githubusercontent.com/u/4460234?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobottazzini","html_url":"https://github.com/brunobottazzini","followers_url":"https://api.github.com/users/brunobottazzini/followers","following_url":"https://api.github.com/users/brunobottazzini/following{/other_user}","gists_url":"https://api.github.com/users/brunobottazzini/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobottazzini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobottazzini/subscriptions","organizations_url":"https://api.github.com/users/brunobottazzini/orgs","repos_url":"https://api.github.com/users/brunobottazzini/repos","events_url":"https://api.github.com/users/brunobottazzini/events{/privacy}","received_events_url":"https://api.github.com/users/brunobottazzini/received_events","type":"User","site_admin":false},"body":"Yes, what could go bad here? \r\n\r\nhome_dir and current_user are always pointing to the right path. Project name is also checked above ","created_at":"2016-06-17T20:34:25Z","updated_at":"2016-06-17T20:34:25Z","html_url":"https://github.com/solettaproject/soletta-dev-app/pull/119#discussion_r67571438","pull_request_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls/119","_links":{"self":{"href":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls/comments/67571438"},"html":{"href":"https://github.com/solettaproject/soletta-dev-app/pull/119#discussion_r67571438"},"pull_request":{"href":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls/119"}}},"pull_request":{"url":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls/119","id":73419005,"html_url":"https://github.com/solettaproject/soletta-dev-app/pull/119","diff_url":"https://github.com/solettaproject/soletta-dev-app/pull/119.diff","patch_url":"https://github.com/solettaproject/soletta-dev-app/pull/119.patch","issue_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/issues/119","number":119,"state":"closed","locked":false,"title":"editor: When creating new project check if it already exists","user":{"login":"brunobottazzini","id":4460234,"avatar_url":"https://avatars.githubusercontent.com/u/4460234?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobottazzini","html_url":"https://github.com/brunobottazzini","followers_url":"https://api.github.com/users/brunobottazzini/followers","following_url":"https://api.github.com/users/brunobottazzini/following{/other_user}","gists_url":"https://api.github.com/users/brunobottazzini/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobottazzini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobottazzini/subscriptions","organizations_url":"https://api.github.com/users/brunobottazzini/orgs","repos_url":"https://api.github.com/users/brunobottazzini/repos","events_url":"https://api.github.com/users/brunobottazzini/events{/privacy}","received_events_url":"https://api.github.com/users/brunobottazzini/received_events","type":"User","site_admin":false},"body":"If the user click yes it will erase the existed project and create a new one.\r\nIf the user click no it will cancel the creation.\r\n\r\nSigned-off-by: Bruno Bottazzini <bruno.bottazzini@intel.com>","created_at":"2016-06-10T18:52:09Z","updated_at":"2016-06-17T20:34:25Z","closed_at":"2016-06-14T15:54:13Z","merged_at":"2016-06-14T15:54:13Z","merge_commit_sha":"50f7db815d2f669fbc252b2a525ee1b791645ae7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls/119/commits","review_comments_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls/119/comments","review_comment_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/issues/119/comments","statuses_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/statuses/50f7db815d2f669fbc252b2a525ee1b791645ae7","head":{"label":"brunobottazzini:check-if-project-exists","ref":"check-if-project-exists","sha":"50f7db815d2f669fbc252b2a525ee1b791645ae7","user":{"login":"brunobottazzini","id":4460234,"avatar_url":"https://avatars.githubusercontent.com/u/4460234?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobottazzini","html_url":"https://github.com/brunobottazzini","followers_url":"https://api.github.com/users/brunobottazzini/followers","following_url":"https://api.github.com/users/brunobottazzini/following{/other_user}","gists_url":"https://api.github.com/users/brunobottazzini/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobottazzini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobottazzini/subscriptions","organizations_url":"https://api.github.com/users/brunobottazzini/orgs","repos_url":"https://api.github.com/users/brunobottazzini/repos","events_url":"https://api.github.com/users/brunobottazzini/events{/privacy}","received_events_url":"https://api.github.com/users/brunobottazzini/received_events","type":"User","site_admin":false},"repo":{"id":41040742,"name":"soletta-dev-app","full_name":"brunobottazzini/soletta-dev-app","owner":{"login":"brunobottazzini","id":4460234,"avatar_url":"https://avatars.githubusercontent.com/u/4460234?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobottazzini","html_url":"https://github.com/brunobottazzini","followers_url":"https://api.github.com/users/brunobottazzini/followers","following_url":"https://api.github.com/users/brunobottazzini/following{/other_user}","gists_url":"https://api.github.com/users/brunobottazzini/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobottazzini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobottazzini/subscriptions","organizations_url":"https://api.github.com/users/brunobottazzini/orgs","repos_url":"https://api.github.com/users/brunobottazzini/repos","events_url":"https://api.github.com/users/brunobottazzini/events{/privacy}","received_events_url":"https://api.github.com/users/brunobottazzini/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brunobottazzini/soletta-dev-app","description":"Soletta Development Application","fork":true,"url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app","forks_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/forks","keys_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/teams","hooks_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/hooks","issue_events_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/issues/events{/number}","events_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/events","assignees_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/assignees{/user}","branches_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/branches{/branch}","tags_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/tags","blobs_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/statuses/{sha}","languages_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/languages","stargazers_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/stargazers","contributors_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/contributors","subscribers_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/subscribers","subscription_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/subscription","commits_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/contents/{+path}","compare_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/merges","archive_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/downloads","issues_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/issues{/number}","pulls_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/pulls{/number}","milestones_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/milestones{/number}","notifications_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/labels{/name}","releases_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/releases{/id}","deployments_url":"https://api.github.com/repos/brunobottazzini/soletta-dev-app/deployments","created_at":"2015-08-19T14:53:07Z","updated_at":"2016-05-13T17:14:44Z","pushed_at":"2016-06-14T21:40:14Z","git_url":"git://github.com/brunobottazzini/soletta-dev-app.git","ssh_url":"git@github.com:brunobottazzini/soletta-dev-app.git","clone_url":"https://github.com/brunobottazzini/soletta-dev-app.git","svn_url":"https://github.com/brunobottazzini/soletta-dev-app","homepage":null,"size":7655,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":1,"default_branch":"master"}},"base":{"label":"solettaproject:master","ref":"master","sha":"ba60c10ea8cb384ea03746185cb17a3a3ee9e9bc","user":{"login":"solettaproject","id":12736897,"avatar_url":"https://avatars.githubusercontent.com/u/12736897?v=3","gravatar_id":"","url":"https://api.github.com/users/solettaproject","html_url":"https://github.com/solettaproject","followers_url":"https://api.github.com/users/solettaproject/followers","following_url":"https://api.github.com/users/solettaproject/following{/other_user}","gists_url":"https://api.github.com/users/solettaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/solettaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solettaproject/subscriptions","organizations_url":"https://api.github.com/users/solettaproject/orgs","repos_url":"https://api.github.com/users/solettaproject/repos","events_url":"https://api.github.com/users/solettaproject/events{/privacy}","received_events_url":"https://api.github.com/users/solettaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":40200810,"name":"soletta-dev-app","full_name":"solettaproject/soletta-dev-app","owner":{"login":"solettaproject","id":12736897,"avatar_url":"https://avatars.githubusercontent.com/u/12736897?v=3","gravatar_id":"","url":"https://api.github.com/users/solettaproject","html_url":"https://github.com/solettaproject","followers_url":"https://api.github.com/users/solettaproject/followers","following_url":"https://api.github.com/users/solettaproject/following{/other_user}","gists_url":"https://api.github.com/users/solettaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/solettaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solettaproject/subscriptions","organizations_url":"https://api.github.com/users/solettaproject/orgs","repos_url":"https://api.github.com/users/solettaproject/repos","events_url":"https://api.github.com/users/solettaproject/events{/privacy}","received_events_url":"https://api.github.com/users/solettaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/solettaproject/soletta-dev-app","description":"Soletta Development Application","fork":false,"url":"https://api.github.com/repos/solettaproject/soletta-dev-app","forks_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/forks","keys_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/teams","hooks_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/hooks","issue_events_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/issues/events{/number}","events_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/events","assignees_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/assignees{/user}","branches_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/branches{/branch}","tags_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/tags","blobs_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/statuses/{sha}","languages_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/languages","stargazers_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/stargazers","contributors_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/contributors","subscribers_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/subscribers","subscription_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/subscription","commits_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/contents/{+path}","compare_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/merges","archive_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/downloads","issues_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/issues{/number}","pulls_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls{/number}","milestones_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/milestones{/number}","notifications_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/labels{/name}","releases_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/releases{/id}","deployments_url":"https://api.github.com/repos/solettaproject/soletta-dev-app/deployments","created_at":"2015-08-04T18:07:20Z","updated_at":"2016-04-19T14:09:53Z","pushed_at":"2016-06-14T21:40:34Z","git_url":"git://github.com/solettaproject/soletta-dev-app.git","ssh_url":"git@github.com:solettaproject/soletta-dev-app.git","clone_url":"https://github.com/solettaproject/soletta-dev-app.git","svn_url":"https://github.com/solettaproject/soletta-dev-app","homepage":null,"size":5795,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":18,"forks":11,"open_issues":18,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls/119"},"html":{"href":"https://github.com/solettaproject/soletta-dev-app/pull/119"},"issue":{"href":"https://api.github.com/repos/solettaproject/soletta-dev-app/issues/119"},"comments":{"href":"https://api.github.com/repos/solettaproject/soletta-dev-app/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/solettaproject/soletta-dev-app/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/solettaproject/soletta-dev-app/statuses/50f7db815d2f669fbc252b2a525ee1b791645ae7"}}}}
{"actor":{"display_login":"brunobottazzini"}}