{"action":"created","comment":{"url":"https://api.github.com/repos/ci-tron/ci-tron/pulls/comments/66388563","id":66388563,"diff_hunk":"@@ -0,0 +1,148 @@\n+<?php\n+/**\n+ * This file is a part of ci-tron package.\n+ *\n+ * (c) Ci-tron <dev@ci-tron.org>\n+ *\n+ * For the full license, take a look to the LICENSE file\n+ * on the root directory of this project\n+ */\n+\n+namespace CiTron\\Project\\Entity;\n+\n+use CiTron\\Symfony\\Entity\\ImmutableObject;\n+use Doctrine\\ORM\\Mapping as ORM;\n+\n+/**\n+ * @ORM\\Embeddable\n+ */\n+class Configuration extends ImmutableObject\n+{\n+    const LANGUAGES = [\n+        'PHP',\n+        'javascript',\n+    ];\n+\n+    const VCS = [\n+        'github',\n+        'bitbucket',\n+    ];\n+\n+    /**\n+     * @var string\n+     * @ORM\\Column(name=\"language\", type=\"string\", length=255, nullable=true)\n+     */\n+    protected $language;\n+\n+    /**\n+     * @var string\n+     * @ORM\\Column(name=\"envVars\", type=\"json_array\", nullable=true)\n+     */\n+    protected $envVars;\n+\n+    /**\n+     * @var string\n+     * @ORM\\Column(name=\"preparationScript\", type=\"json_array\", nullable=true)\n+     */\n+    protected $preparationScript;\n+\n+    /**\n+     * @var string\n+     * @ORM\\Column(name=\"launchScript\", type=\"json_array\", nullable=true)\n+     */\n+    protected $launchScript;\n+\n+    /**\n+     * @var string\n+     * @ORM\\Column(name=\"vcs\", type=\"string\", length=255, nullable=true)\n+     */\n+    protected $VCS;\n+\n+    /**\n+     * @return Configuration\n+     */\n+    static public function create()","path":"src/CiTron/Project/Entity/Configuration.php","position":64,"original_position":64,"commit_id":"98f60e9e22a71b922adb4345356705fb20bfd7e1","original_commit_id":"98f60e9e22a71b922adb4345356705fb20bfd7e1","user":{"login":"Nek-","id":972456,"avatar_url":"https://avatars.githubusercontent.com/u/972456?v=3","gravatar_id":"","url":"https://api.github.com/users/Nek-","html_url":"https://github.com/Nek-","followers_url":"https://api.github.com/users/Nek-/followers","following_url":"https://api.github.com/users/Nek-/following{/other_user}","gists_url":"https://api.github.com/users/Nek-/gists{/gist_id}","starred_url":"https://api.github.com/users/Nek-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nek-/subscriptions","organizations_url":"https://api.github.com/users/Nek-/orgs","repos_url":"https://api.github.com/users/Nek-/repos","events_url":"https://api.github.com/users/Nek-/events{/privacy}","received_events_url":"https://api.github.com/users/Nek-/received_events","type":"User","site_admin":false},"body":"This is a factory, and it should not be inside the entity","created_at":"2016-06-09T06:24:07Z","updated_at":"2016-06-09T06:24:07Z","html_url":"https://github.com/ci-tron/ci-tron/pull/34#discussion_r66388563","pull_request_url":"https://api.github.com/repos/ci-tron/ci-tron/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/ci-tron/ci-tron/pulls/comments/66388563"},"html":{"href":"https://github.com/ci-tron/ci-tron/pull/34#discussion_r66388563"},"pull_request":{"href":"https://api.github.com/repos/ci-tron/ci-tron/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/ci-tron/ci-tron/pulls/34","id":71837980,"html_url":"https://github.com/ci-tron/ci-tron/pull/34","diff_url":"https://github.com/ci-tron/ci-tron/pull/34.diff","patch_url":"https://github.com/ci-tron/ci-tron/pull/34.patch","issue_url":"https://api.github.com/repos/ci-tron/ci-tron/issues/34","number":34,"state":"open","locked":false,"title":"Add project configuration management","user":{"login":"valanz","id":254782,"avatar_url":"https://avatars.githubusercontent.com/u/254782?v=3","gravatar_id":"","url":"https://api.github.com/users/valanz","html_url":"https://github.com/valanz","followers_url":"https://api.github.com/users/valanz/followers","following_url":"https://api.github.com/users/valanz/following{/other_user}","gists_url":"https://api.github.com/users/valanz/gists{/gist_id}","starred_url":"https://api.github.com/users/valanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valanz/subscriptions","organizations_url":"https://api.github.com/users/valanz/orgs","repos_url":"https://api.github.com/users/valanz/repos","events_url":"https://api.github.com/users/valanz/events{/privacy}","received_events_url":"https://api.github.com/users/valanz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-29T21:11:11Z","updated_at":"2016-06-09T06:24:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8247ed55955b2e02b7a872d551249584f7e3def8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ci-tron/ci-tron/pulls/34/commits","review_comments_url":"https://api.github.com/repos/ci-tron/ci-tron/pulls/34/comments","review_comment_url":"https://api.github.com/repos/ci-tron/ci-tron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ci-tron/ci-tron/issues/34/comments","statuses_url":"https://api.github.com/repos/ci-tron/ci-tron/statuses/98f60e9e22a71b922adb4345356705fb20bfd7e1","head":{"label":"ci-tron:feature/project-config","ref":"feature/project-config","sha":"98f60e9e22a71b922adb4345356705fb20bfd7e1","user":{"login":"ci-tron","id":16098855,"avatar_url":"https://avatars.githubusercontent.com/u/16098855?v=3","gravatar_id":"","url":"https://api.github.com/users/ci-tron","html_url":"https://github.com/ci-tron","followers_url":"https://api.github.com/users/ci-tron/followers","following_url":"https://api.github.com/users/ci-tron/following{/other_user}","gists_url":"https://api.github.com/users/ci-tron/gists{/gist_id}","starred_url":"https://api.github.com/users/ci-tron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ci-tron/subscriptions","organizations_url":"https://api.github.com/users/ci-tron/orgs","repos_url":"https://api.github.com/users/ci-tron/repos","events_url":"https://api.github.com/users/ci-tron/events{/privacy}","received_events_url":"https://api.github.com/users/ci-tron/received_events","type":"Organization","site_admin":false},"repo":{"id":47346764,"name":"ci-tron","full_name":"ci-tron/ci-tron","owner":{"login":"ci-tron","id":16098855,"avatar_url":"https://avatars.githubusercontent.com/u/16098855?v=3","gravatar_id":"","url":"https://api.github.com/users/ci-tron","html_url":"https://github.com/ci-tron","followers_url":"https://api.github.com/users/ci-tron/followers","following_url":"https://api.github.com/users/ci-tron/following{/other_user}","gists_url":"https://api.github.com/users/ci-tron/gists{/gist_id}","starred_url":"https://api.github.com/users/ci-tron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ci-tron/subscriptions","organizations_url":"https://api.github.com/users/ci-tron/orgs","repos_url":"https://api.github.com/users/ci-tron/repos","events_url":"https://api.github.com/users/ci-tron/events{/privacy}","received_events_url":"https://api.github.com/users/ci-tron/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ci-tron/ci-tron","description":"Something awesome is coming here :-)","fork":false,"url":"https://api.github.com/repos/ci-tron/ci-tron","forks_url":"https://api.github.com/repos/ci-tron/ci-tron/forks","keys_url":"https://api.github.com/repos/ci-tron/ci-tron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ci-tron/ci-tron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ci-tron/ci-tron/teams","hooks_url":"https://api.github.com/repos/ci-tron/ci-tron/hooks","issue_events_url":"https://api.github.com/repos/ci-tron/ci-tron/issues/events{/number}","events_url":"https://api.github.com/repos/ci-tron/ci-tron/events","assignees_url":"https://api.github.com/repos/ci-tron/ci-tron/assignees{/user}","branches_url":"https://api.github.com/repos/ci-tron/ci-tron/branches{/branch}","tags_url":"https://api.github.com/repos/ci-tron/ci-tron/tags","blobs_url":"https://api.github.com/repos/ci-tron/ci-tron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ci-tron/ci-tron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ci-tron/ci-tron/git/refs{/sha}","trees_url":"https://api.github.com/repos/ci-tron/ci-tron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ci-tron/ci-tron/statuses/{sha}","languages_url":"https://api.github.com/repos/ci-tron/ci-tron/languages","stargazers_url":"https://api.github.com/repos/ci-tron/ci-tron/stargazers","contributors_url":"https://api.github.com/repos/ci-tron/ci-tron/contributors","subscribers_url":"https://api.github.com/repos/ci-tron/ci-tron/subscribers","subscription_url":"https://api.github.com/repos/ci-tron/ci-tron/subscription","commits_url":"https://api.github.com/repos/ci-tron/ci-tron/commits{/sha}","git_commits_url":"https://api.github.com/repos/ci-tron/ci-tron/git/commits{/sha}","comments_url":"https://api.github.com/repos/ci-tron/ci-tron/comments{/number}","issue_comment_url":"https://api.github.com/repos/ci-tron/ci-tron/issues/comments{/number}","contents_url":"https://api.github.com/repos/ci-tron/ci-tron/contents/{+path}","compare_url":"https://api.github.com/repos/ci-tron/ci-tron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ci-tron/ci-tron/merges","archive_url":"https://api.github.com/repos/ci-tron/ci-tron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ci-tron/ci-tron/downloads","issues_url":"https://api.github.com/repos/ci-tron/ci-tron/issues{/number}","pulls_url":"https://api.github.com/repos/ci-tron/ci-tron/pulls{/number}","milestones_url":"https://api.github.com/repos/ci-tron/ci-tron/milestones{/number}","notifications_url":"https://api.github.com/repos/ci-tron/ci-tron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ci-tron/ci-tron/labels{/name}","releases_url":"https://api.github.com/repos/ci-tron/ci-tron/releases{/id}","deployments_url":"https://api.github.com/repos/ci-tron/ci-tron/deployments","created_at":"2015-12-03T17:02:20Z","updated_at":"2016-04-26T13:36:56Z","pushed_at":"2016-06-07T21:41:01Z","git_url":"git://github.com/ci-tron/ci-tron.git","ssh_url":"git@github.com:ci-tron/ci-tron.git","clone_url":"https://github.com/ci-tron/ci-tron.git","svn_url":"https://github.com/ci-tron/ci-tron","homepage":null,"size":319,"stargazers_count":9,"watchers_count":9,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":12,"forks":3,"open_issues":12,"watchers":9,"default_branch":"master"}},"base":{"label":"ci-tron:master","ref":"master","sha":"d40eaedd733389047e10c1bef571e4e4b7d56484","user":{"login":"ci-tron","id":16098855,"avatar_url":"https://avatars.githubusercontent.com/u/16098855?v=3","gravatar_id":"","url":"https://api.github.com/users/ci-tron","html_url":"https://github.com/ci-tron","followers_url":"https://api.github.com/users/ci-tron/followers","following_url":"https://api.github.com/users/ci-tron/following{/other_user}","gists_url":"https://api.github.com/users/ci-tron/gists{/gist_id}","starred_url":"https://api.github.com/users/ci-tron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ci-tron/subscriptions","organizations_url":"https://api.github.com/users/ci-tron/orgs","repos_url":"https://api.github.com/users/ci-tron/repos","events_url":"https://api.github.com/users/ci-tron/events{/privacy}","received_events_url":"https://api.github.com/users/ci-tron/received_events","type":"Organization","site_admin":false},"repo":{"id":47346764,"name":"ci-tron","full_name":"ci-tron/ci-tron","owner":{"login":"ci-tron","id":16098855,"avatar_url":"https://avatars.githubusercontent.com/u/16098855?v=3","gravatar_id":"","url":"https://api.github.com/users/ci-tron","html_url":"https://github.com/ci-tron","followers_url":"https://api.github.com/users/ci-tron/followers","following_url":"https://api.github.com/users/ci-tron/following{/other_user}","gists_url":"https://api.github.com/users/ci-tron/gists{/gist_id}","starred_url":"https://api.github.com/users/ci-tron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ci-tron/subscriptions","organizations_url":"https://api.github.com/users/ci-tron/orgs","repos_url":"https://api.github.com/users/ci-tron/repos","events_url":"https://api.github.com/users/ci-tron/events{/privacy}","received_events_url":"https://api.github.com/users/ci-tron/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ci-tron/ci-tron","description":"Something awesome is coming here :-)","fork":false,"url":"https://api.github.com/repos/ci-tron/ci-tron","forks_url":"https://api.github.com/repos/ci-tron/ci-tron/forks","keys_url":"https://api.github.com/repos/ci-tron/ci-tron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ci-tron/ci-tron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ci-tron/ci-tron/teams","hooks_url":"https://api.github.com/repos/ci-tron/ci-tron/hooks","issue_events_url":"https://api.github.com/repos/ci-tron/ci-tron/issues/events{/number}","events_url":"https://api.github.com/repos/ci-tron/ci-tron/events","assignees_url":"https://api.github.com/repos/ci-tron/ci-tron/assignees{/user}","branches_url":"https://api.github.com/repos/ci-tron/ci-tron/branches{/branch}","tags_url":"https://api.github.com/repos/ci-tron/ci-tron/tags","blobs_url":"https://api.github.com/repos/ci-tron/ci-tron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ci-tron/ci-tron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ci-tron/ci-tron/git/refs{/sha}","trees_url":"https://api.github.com/repos/ci-tron/ci-tron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ci-tron/ci-tron/statuses/{sha}","languages_url":"https://api.github.com/repos/ci-tron/ci-tron/languages","stargazers_url":"https://api.github.com/repos/ci-tron/ci-tron/stargazers","contributors_url":"https://api.github.com/repos/ci-tron/ci-tron/contributors","subscribers_url":"https://api.github.com/repos/ci-tron/ci-tron/subscribers","subscription_url":"https://api.github.com/repos/ci-tron/ci-tron/subscription","commits_url":"https://api.github.com/repos/ci-tron/ci-tron/commits{/sha}","git_commits_url":"https://api.github.com/repos/ci-tron/ci-tron/git/commits{/sha}","comments_url":"https://api.github.com/repos/ci-tron/ci-tron/comments{/number}","issue_comment_url":"https://api.github.com/repos/ci-tron/ci-tron/issues/comments{/number}","contents_url":"https://api.github.com/repos/ci-tron/ci-tron/contents/{+path}","compare_url":"https://api.github.com/repos/ci-tron/ci-tron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ci-tron/ci-tron/merges","archive_url":"https://api.github.com/repos/ci-tron/ci-tron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ci-tron/ci-tron/downloads","issues_url":"https://api.github.com/repos/ci-tron/ci-tron/issues{/number}","pulls_url":"https://api.github.com/repos/ci-tron/ci-tron/pulls{/number}","milestones_url":"https://api.github.com/repos/ci-tron/ci-tron/milestones{/number}","notifications_url":"https://api.github.com/repos/ci-tron/ci-tron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ci-tron/ci-tron/labels{/name}","releases_url":"https://api.github.com/repos/ci-tron/ci-tron/releases{/id}","deployments_url":"https://api.github.com/repos/ci-tron/ci-tron/deployments","created_at":"2015-12-03T17:02:20Z","updated_at":"2016-04-26T13:36:56Z","pushed_at":"2016-06-07T21:41:01Z","git_url":"git://github.com/ci-tron/ci-tron.git","ssh_url":"git@github.com:ci-tron/ci-tron.git","clone_url":"https://github.com/ci-tron/ci-tron.git","svn_url":"https://github.com/ci-tron/ci-tron","homepage":null,"size":319,"stargazers_count":9,"watchers_count":9,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":12,"forks":3,"open_issues":12,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ci-tron/ci-tron/pulls/34"},"html":{"href":"https://github.com/ci-tron/ci-tron/pull/34"},"issue":{"href":"https://api.github.com/repos/ci-tron/ci-tron/issues/34"},"comments":{"href":"https://api.github.com/repos/ci-tron/ci-tron/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/ci-tron/ci-tron/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/ci-tron/ci-tron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ci-tron/ci-tron/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/ci-tron/ci-tron/statuses/98f60e9e22a71b922adb4345356705fb20bfd7e1"}}}}
{"actor":{"display_login":"Nek-"}}