{"action":"created","comment":{"url":"https://api.github.com/repos/silverstripe/deploynaut/pulls/comments/42329864","id":42329864,"diff_hunk":"@@ -969,5 +969,30 @@ public function allowedAny($codes, $member = null) {\n \t\treturn ($hits>0 ? true : false);\n \t}\n \n+\t/**\n+\t * @return ValidationResult\n+\t */\n+\tprotected function validate() {\n+\t\t$validation = parent::validate();\n+\t\tif($validation->valid()) {\n+\t\t\tif(empty($this->Name)) {","path":"code/model/DNProject.php","position":10,"original_position":10,"commit_id":"0e86dfc779fcf6e474c2dc15111325d053c06067","original_commit_id":"0e86dfc779fcf6e474c2dc15111325d053c06067","user":{"login":"mateusz","id":118653,"avatar_url":"https://avatars.githubusercontent.com/u/118653?v=3","gravatar_id":"","url":"https://api.github.com/users/mateusz","html_url":"https://github.com/mateusz","followers_url":"https://api.github.com/users/mateusz/followers","following_url":"https://api.github.com/users/mateusz/following{/other_user}","gists_url":"https://api.github.com/users/mateusz/gists{/gist_id}","starred_url":"https://api.github.com/users/mateusz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateusz/subscriptions","organizations_url":"https://api.github.com/users/mateusz/orgs","repos_url":"https://api.github.com/users/mateusz/repos","events_url":"https://api.github.com/users/mateusz/events{/privacy}","received_events_url":"https://api.github.com/users/mateusz/received_events","type":"User","site_admin":false},"body":"Ah you have it down there, cool.","created_at":"2015-10-19T00:48:36Z","updated_at":"2015-10-19T00:48:36Z","html_url":"https://github.com/silverstripe/deploynaut/pull/421#discussion_r42329864","pull_request_url":"https://api.github.com/repos/silverstripe/deploynaut/pulls/421","_links":{"self":{"href":"https://api.github.com/repos/silverstripe/deploynaut/pulls/comments/42329864"},"html":{"href":"https://github.com/silverstripe/deploynaut/pull/421#discussion_r42329864"},"pull_request":{"href":"https://api.github.com/repos/silverstripe/deploynaut/pulls/421"}}},"pull_request":{"url":"https://api.github.com/repos/silverstripe/deploynaut/pulls/421","id":47726313,"html_url":"https://github.com/silverstripe/deploynaut/pull/421","diff_url":"https://github.com/silverstripe/deploynaut/pull/421.diff","patch_url":"https://github.com/silverstripe/deploynaut/pull/421.patch","issue_url":"https://api.github.com/repos/silverstripe/deploynaut/issues/421","number":421,"state":"open","locked":false,"title":"Added the ability to add a project on the front end for administrators.","user":{"login":"micmania1","id":881537,"avatar_url":"https://avatars.githubusercontent.com/u/881537?v=3","gravatar_id":"","url":"https://api.github.com/users/micmania1","html_url":"https://github.com/micmania1","followers_url":"https://api.github.com/users/micmania1/followers","following_url":"https://api.github.com/users/micmania1/following{/other_user}","gists_url":"https://api.github.com/users/micmania1/gists{/gist_id}","starred_url":"https://api.github.com/users/micmania1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micmania1/subscriptions","organizations_url":"https://api.github.com/users/micmania1/orgs","repos_url":"https://api.github.com/users/micmania1/repos","events_url":"https://api.github.com/users/micmania1/events{/privacy}","received_events_url":"https://api.github.com/users/micmania1/received_events","type":"User","site_admin":false},"body":"This provides basic functionality for creating a new project in the front-end with all necessary fields.\r\n\r\nWhat it doesn't do:\r\n* Editing viewer groups via the front-end\r\n* Create environments\r\n\r\n![create-project-2](https://cloud.githubusercontent.com/assets/881537/10500538/609030cc-7335-11e5-8220-2281ac4dfadb.png)\r\n\r\n","created_at":"2015-10-14T23:03:55Z","updated_at":"2015-10-19T00:48:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a61f81517e0ff321c095fd9b2d4738f01322afa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/silverstripe/deploynaut/pulls/421/commits","review_comments_url":"https://api.github.com/repos/silverstripe/deploynaut/pulls/421/comments","review_comment_url":"https://api.github.com/repos/silverstripe/deploynaut/pulls/comments{/number}","comments_url":"https://api.github.com/repos/silverstripe/deploynaut/issues/421/comments","statuses_url":"https://api.github.com/repos/silverstripe/deploynaut/statuses/0e86dfc779fcf6e474c2dc15111325d053c06067","head":{"label":"micmania1:create-project","ref":"create-project","sha":"0e86dfc779fcf6e474c2dc15111325d053c06067","user":{"login":"micmania1","id":881537,"avatar_url":"https://avatars.githubusercontent.com/u/881537?v=3","gravatar_id":"","url":"https://api.github.com/users/micmania1","html_url":"https://github.com/micmania1","followers_url":"https://api.github.com/users/micmania1/followers","following_url":"https://api.github.com/users/micmania1/following{/other_user}","gists_url":"https://api.github.com/users/micmania1/gists{/gist_id}","starred_url":"https://api.github.com/users/micmania1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micmania1/subscriptions","organizations_url":"https://api.github.com/users/micmania1/orgs","repos_url":"https://api.github.com/users/micmania1/repos","events_url":"https://api.github.com/users/micmania1/events{/privacy}","received_events_url":"https://api.github.com/users/micmania1/received_events","type":"User","site_admin":false},"repo":{"id":24972988,"name":"deploynaut","full_name":"micmania1/deploynaut","owner":{"login":"micmania1","id":881537,"avatar_url":"https://avatars.githubusercontent.com/u/881537?v=3","gravatar_id":"","url":"https://api.github.com/users/micmania1","html_url":"https://github.com/micmania1","followers_url":"https://api.github.com/users/micmania1/followers","following_url":"https://api.github.com/users/micmania1/following{/other_user}","gists_url":"https://api.github.com/users/micmania1/gists{/gist_id}","starred_url":"https://api.github.com/users/micmania1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micmania1/subscriptions","organizations_url":"https://api.github.com/users/micmania1/orgs","repos_url":"https://api.github.com/users/micmania1/repos","events_url":"https://api.github.com/users/micmania1/events{/privacy}","received_events_url":"https://api.github.com/users/micmania1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/micmania1/deploynaut","description":"A web based front end for Capistrano","fork":true,"url":"https://api.github.com/repos/micmania1/deploynaut","forks_url":"https://api.github.com/repos/micmania1/deploynaut/forks","keys_url":"https://api.github.com/repos/micmania1/deploynaut/keys{/key_id}","collaborators_url":"https://api.github.com/repos/micmania1/deploynaut/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/micmania1/deploynaut/teams","hooks_url":"https://api.github.com/repos/micmania1/deploynaut/hooks","issue_events_url":"https://api.github.com/repos/micmania1/deploynaut/issues/events{/number}","events_url":"https://api.github.com/repos/micmania1/deploynaut/events","assignees_url":"https://api.github.com/repos/micmania1/deploynaut/assignees{/user}","branches_url":"https://api.github.com/repos/micmania1/deploynaut/branches{/branch}","tags_url":"https://api.github.com/repos/micmania1/deploynaut/tags","blobs_url":"https://api.github.com/repos/micmania1/deploynaut/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/micmania1/deploynaut/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/micmania1/deploynaut/git/refs{/sha}","trees_url":"https://api.github.com/repos/micmania1/deploynaut/git/trees{/sha}","statuses_url":"https://api.github.com/repos/micmania1/deploynaut/statuses/{sha}","languages_url":"https://api.github.com/repos/micmania1/deploynaut/languages","stargazers_url":"https://api.github.com/repos/micmania1/deploynaut/stargazers","contributors_url":"https://api.github.com/repos/micmania1/deploynaut/contributors","subscribers_url":"https://api.github.com/repos/micmania1/deploynaut/subscribers","subscription_url":"https://api.github.com/repos/micmania1/deploynaut/subscription","commits_url":"https://api.github.com/repos/micmania1/deploynaut/commits{/sha}","git_commits_url":"https://api.github.com/repos/micmania1/deploynaut/git/commits{/sha}","comments_url":"https://api.github.com/repos/micmania1/deploynaut/comments{/number}","issue_comment_url":"https://api.github.com/repos/micmania1/deploynaut/issues/comments{/number}","contents_url":"https://api.github.com/repos/micmania1/deploynaut/contents/{+path}","compare_url":"https://api.github.com/repos/micmania1/deploynaut/compare/{base}...{head}","merges_url":"https://api.github.com/repos/micmania1/deploynaut/merges","archive_url":"https://api.github.com/repos/micmania1/deploynaut/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/micmania1/deploynaut/downloads","issues_url":"https://api.github.com/repos/micmania1/deploynaut/issues{/number}","pulls_url":"https://api.github.com/repos/micmania1/deploynaut/pulls{/number}","milestones_url":"https://api.github.com/repos/micmania1/deploynaut/milestones{/number}","notifications_url":"https://api.github.com/repos/micmania1/deploynaut/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/micmania1/deploynaut/labels{/name}","releases_url":"https://api.github.com/repos/micmania1/deploynaut/releases{/id}","created_at":"2014-10-09T03:59:01Z","updated_at":"2014-10-06T21:50:20Z","pushed_at":"2015-10-18T21:21:24Z","git_url":"git://github.com/micmania1/deploynaut.git","ssh_url":"git@github.com:micmania1/deploynaut.git","clone_url":"https://github.com/micmania1/deploynaut.git","svn_url":"https://github.com/micmania1/deploynaut","homepage":null,"size":6256,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"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":"silverstripe:master","ref":"master","sha":"1a6ceea44fb6d434ff740dd969ad5d9572b8d1aa","user":{"login":"silverstripe","id":379348,"avatar_url":"https://avatars.githubusercontent.com/u/379348?v=3","gravatar_id":"","url":"https://api.github.com/users/silverstripe","html_url":"https://github.com/silverstripe","followers_url":"https://api.github.com/users/silverstripe/followers","following_url":"https://api.github.com/users/silverstripe/following{/other_user}","gists_url":"https://api.github.com/users/silverstripe/gists{/gist_id}","starred_url":"https://api.github.com/users/silverstripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverstripe/subscriptions","organizations_url":"https://api.github.com/users/silverstripe/orgs","repos_url":"https://api.github.com/users/silverstripe/repos","events_url":"https://api.github.com/users/silverstripe/events{/privacy}","received_events_url":"https://api.github.com/users/silverstripe/received_events","type":"Organization","site_admin":false},"repo":{"id":23821541,"name":"deploynaut","full_name":"silverstripe/deploynaut","owner":{"login":"silverstripe","id":379348,"avatar_url":"https://avatars.githubusercontent.com/u/379348?v=3","gravatar_id":"","url":"https://api.github.com/users/silverstripe","html_url":"https://github.com/silverstripe","followers_url":"https://api.github.com/users/silverstripe/followers","following_url":"https://api.github.com/users/silverstripe/following{/other_user}","gists_url":"https://api.github.com/users/silverstripe/gists{/gist_id}","starred_url":"https://api.github.com/users/silverstripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverstripe/subscriptions","organizations_url":"https://api.github.com/users/silverstripe/orgs","repos_url":"https://api.github.com/users/silverstripe/repos","events_url":"https://api.github.com/users/silverstripe/events{/privacy}","received_events_url":"https://api.github.com/users/silverstripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/silverstripe/deploynaut","description":"A web based front end for Capistrano","fork":false,"url":"https://api.github.com/repos/silverstripe/deploynaut","forks_url":"https://api.github.com/repos/silverstripe/deploynaut/forks","keys_url":"https://api.github.com/repos/silverstripe/deploynaut/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silverstripe/deploynaut/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silverstripe/deploynaut/teams","hooks_url":"https://api.github.com/repos/silverstripe/deploynaut/hooks","issue_events_url":"https://api.github.com/repos/silverstripe/deploynaut/issues/events{/number}","events_url":"https://api.github.com/repos/silverstripe/deploynaut/events","assignees_url":"https://api.github.com/repos/silverstripe/deploynaut/assignees{/user}","branches_url":"https://api.github.com/repos/silverstripe/deploynaut/branches{/branch}","tags_url":"https://api.github.com/repos/silverstripe/deploynaut/tags","blobs_url":"https://api.github.com/repos/silverstripe/deploynaut/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silverstripe/deploynaut/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silverstripe/deploynaut/git/refs{/sha}","trees_url":"https://api.github.com/repos/silverstripe/deploynaut/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silverstripe/deploynaut/statuses/{sha}","languages_url":"https://api.github.com/repos/silverstripe/deploynaut/languages","stargazers_url":"https://api.github.com/repos/silverstripe/deploynaut/stargazers","contributors_url":"https://api.github.com/repos/silverstripe/deploynaut/contributors","subscribers_url":"https://api.github.com/repos/silverstripe/deploynaut/subscribers","subscription_url":"https://api.github.com/repos/silverstripe/deploynaut/subscription","commits_url":"https://api.github.com/repos/silverstripe/deploynaut/commits{/sha}","git_commits_url":"https://api.github.com/repos/silverstripe/deploynaut/git/commits{/sha}","comments_url":"https://api.github.com/repos/silverstripe/deploynaut/comments{/number}","issue_comment_url":"https://api.github.com/repos/silverstripe/deploynaut/issues/comments{/number}","contents_url":"https://api.github.com/repos/silverstripe/deploynaut/contents/{+path}","compare_url":"https://api.github.com/repos/silverstripe/deploynaut/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silverstripe/deploynaut/merges","archive_url":"https://api.github.com/repos/silverstripe/deploynaut/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silverstripe/deploynaut/downloads","issues_url":"https://api.github.com/repos/silverstripe/deploynaut/issues{/number}","pulls_url":"https://api.github.com/repos/silverstripe/deploynaut/pulls{/number}","milestones_url":"https://api.github.com/repos/silverstripe/deploynaut/milestones{/number}","notifications_url":"https://api.github.com/repos/silverstripe/deploynaut/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silverstripe/deploynaut/labels{/name}","releases_url":"https://api.github.com/repos/silverstripe/deploynaut/releases{/id}","created_at":"2014-09-09T06:09:55Z","updated_at":"2015-10-15T14:51:06Z","pushed_at":"2015-10-18T21:21:25Z","git_url":"git://github.com/silverstripe/deploynaut.git","ssh_url":"git@github.com:silverstripe/deploynaut.git","clone_url":"https://github.com/silverstripe/deploynaut.git","svn_url":"https://github.com/silverstripe/deploynaut","homepage":null,"size":8072,"stargazers_count":41,"watchers_count":41,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":53,"forks":28,"open_issues":53,"watchers":41,"default_branch":"1.1"}},"_links":{"self":{"href":"https://api.github.com/repos/silverstripe/deploynaut/pulls/421"},"html":{"href":"https://github.com/silverstripe/deploynaut/pull/421"},"issue":{"href":"https://api.github.com/repos/silverstripe/deploynaut/issues/421"},"comments":{"href":"https://api.github.com/repos/silverstripe/deploynaut/issues/421/comments"},"review_comments":{"href":"https://api.github.com/repos/silverstripe/deploynaut/pulls/421/comments"},"review_comment":{"href":"https://api.github.com/repos/silverstripe/deploynaut/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/silverstripe/deploynaut/pulls/421/commits"},"statuses":{"href":"https://api.github.com/repos/silverstripe/deploynaut/statuses/0e86dfc779fcf6e474c2dc15111325d053c06067"}}}}