{"action":"created","comment":{"url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/comments/48532606","id":48532606,"diff_hunk":"@@ -39,17 +44,39 @@ techlooper.directive(\"submissionChallenge\", function (localStorageService, apiSe\n           apiService.findRegistrantActivePhase(challengeId, email)\n             .success(function (phase) {\n               scope.submission.submissionPhase = phase;\n-            })\n+            });\n \n           scope.visibleSubmitForm = true;\n         }\n \n-        scope.submission = {\n-          name: localStorageService.get(\"firstName\") + \" \" + localStorageService.get(\"lastName\"),\n-          registrantEmail: localStorageService.get(\"email\"),\n-          registrantFirstName: localStorageService.get(\"firstName\"),\n-          registrantLastName: localStorageService.get(\"lastName\")\n+        if (scope.challenge.$isPublic) {\n+          scope.submission = {\n+            name: localStorageService.get(\"firstName\") + \" \" + localStorageService.get(\"lastName\"),\n+            registrantEmail: localStorageService.get(\"email\"),\n+            registrantFirstName: localStorageService.get(\"firstName\"),\n+            registrantLastName: localStorageService.get(\"lastName\")\n+          }\n+        }\n+        else {\n+          scope.submission = {};\n+        }\n+\n+        if (scope.challenge.$isInternal && scope.submissionForm && scope.submissionForm.internalEmail) {\n+          scope.submissionForm.internalEmail.$validators.domainMatch = function (modelValue, viewValue) {\n+            if (!modelValue) return true;","path":"src/main/webapp/assets/modules/common/challenge/submissionChallenge.js","position":48,"original_position":48,"commit_id":"71d86a483d8a9c770e56d16b75f4bf9b2976e33d","original_commit_id":"71d86a483d8a9c770e56d16b75f4bf9b2976e33d","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Expected '{' and instead saw 'return'.","created_at":"2015-12-29T10:34:17Z","updated_at":"2015-12-29T10:34:17Z","html_url":"https://github.com/chrisshayan/TechLooper/pull/476#discussion_r48532606","pull_request_url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/476","_links":{"self":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/comments/48532606"},"html":{"href":"https://github.com/chrisshayan/TechLooper/pull/476#discussion_r48532606"},"pull_request":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/476"}}},"pull_request":{"url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/476","id":54716792,"html_url":"https://github.com/chrisshayan/TechLooper/pull/476","diff_url":"https://github.com/chrisshayan/TechLooper/pull/476.diff","patch_url":"https://github.com/chrisshayan/TechLooper/pull/476.patch","issue_url":"https://api.github.com/repos/chrisshayan/TechLooper/issues/476","number":476,"state":"closed","locked":false,"title":"Update changes","user":{"login":"phuonghuynh","id":705510,"avatar_url":"https://avatars.githubusercontent.com/u/705510?v=3","gravatar_id":"","url":"https://api.github.com/users/phuonghuynh","html_url":"https://github.com/phuonghuynh","followers_url":"https://api.github.com/users/phuonghuynh/followers","following_url":"https://api.github.com/users/phuonghuynh/following{/other_user}","gists_url":"https://api.github.com/users/phuonghuynh/gists{/gist_id}","starred_url":"https://api.github.com/users/phuonghuynh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuonghuynh/subscriptions","organizations_url":"https://api.github.com/users/phuonghuynh/orgs","repos_url":"https://api.github.com/users/phuonghuynh/repos","events_url":"https://api.github.com/users/phuonghuynh/events{/privacy}","received_events_url":"https://api.github.com/users/phuonghuynh/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-29T10:34:04Z","updated_at":"2015-12-29T10:34:17Z","closed_at":"2015-12-29T10:34:16Z","merged_at":"2015-12-29T10:34:16Z","merge_commit_sha":"e29871463ef8911070bc0c607f2522460a70275f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/476/commits","review_comments_url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/476/comments","review_comment_url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chrisshayan/TechLooper/issues/476/comments","statuses_url":"https://api.github.com/repos/chrisshayan/TechLooper/statuses/71d86a483d8a9c770e56d16b75f4bf9b2976e33d","head":{"label":"phuonghuynh:master","ref":"master","sha":"71d86a483d8a9c770e56d16b75f4bf9b2976e33d","user":{"login":"phuonghuynh","id":705510,"avatar_url":"https://avatars.githubusercontent.com/u/705510?v=3","gravatar_id":"","url":"https://api.github.com/users/phuonghuynh","html_url":"https://github.com/phuonghuynh","followers_url":"https://api.github.com/users/phuonghuynh/followers","following_url":"https://api.github.com/users/phuonghuynh/following{/other_user}","gists_url":"https://api.github.com/users/phuonghuynh/gists{/gist_id}","starred_url":"https://api.github.com/users/phuonghuynh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuonghuynh/subscriptions","organizations_url":"https://api.github.com/users/phuonghuynh/orgs","repos_url":"https://api.github.com/users/phuonghuynh/repos","events_url":"https://api.github.com/users/phuonghuynh/events{/privacy}","received_events_url":"https://api.github.com/users/phuonghuynh/received_events","type":"User","site_admin":false},"repo":{"id":23824120,"name":"TechLooper","full_name":"phuonghuynh/TechLooper","owner":{"login":"phuonghuynh","id":705510,"avatar_url":"https://avatars.githubusercontent.com/u/705510?v=3","gravatar_id":"","url":"https://api.github.com/users/phuonghuynh","html_url":"https://github.com/phuonghuynh","followers_url":"https://api.github.com/users/phuonghuynh/followers","following_url":"https://api.github.com/users/phuonghuynh/following{/other_user}","gists_url":"https://api.github.com/users/phuonghuynh/gists{/gist_id}","starred_url":"https://api.github.com/users/phuonghuynh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuonghuynh/subscriptions","organizations_url":"https://api.github.com/users/phuonghuynh/orgs","repos_url":"https://api.github.com/users/phuonghuynh/repos","events_url":"https://api.github.com/users/phuonghuynh/events{/privacy}","received_events_url":"https://api.github.com/users/phuonghuynh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phuonghuynh/TechLooper","description":"This is VietnamWorks Open Source project. TechLooper is an aggregator which will detects the market demands and trends for IT jobs.","fork":true,"url":"https://api.github.com/repos/phuonghuynh/TechLooper","forks_url":"https://api.github.com/repos/phuonghuynh/TechLooper/forks","keys_url":"https://api.github.com/repos/phuonghuynh/TechLooper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phuonghuynh/TechLooper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phuonghuynh/TechLooper/teams","hooks_url":"https://api.github.com/repos/phuonghuynh/TechLooper/hooks","issue_events_url":"https://api.github.com/repos/phuonghuynh/TechLooper/issues/events{/number}","events_url":"https://api.github.com/repos/phuonghuynh/TechLooper/events","assignees_url":"https://api.github.com/repos/phuonghuynh/TechLooper/assignees{/user}","branches_url":"https://api.github.com/repos/phuonghuynh/TechLooper/branches{/branch}","tags_url":"https://api.github.com/repos/phuonghuynh/TechLooper/tags","blobs_url":"https://api.github.com/repos/phuonghuynh/TechLooper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phuonghuynh/TechLooper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phuonghuynh/TechLooper/git/refs{/sha}","trees_url":"https://api.github.com/repos/phuonghuynh/TechLooper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phuonghuynh/TechLooper/statuses/{sha}","languages_url":"https://api.github.com/repos/phuonghuynh/TechLooper/languages","stargazers_url":"https://api.github.com/repos/phuonghuynh/TechLooper/stargazers","contributors_url":"https://api.github.com/repos/phuonghuynh/TechLooper/contributors","subscribers_url":"https://api.github.com/repos/phuonghuynh/TechLooper/subscribers","subscription_url":"https://api.github.com/repos/phuonghuynh/TechLooper/subscription","commits_url":"https://api.github.com/repos/phuonghuynh/TechLooper/commits{/sha}","git_commits_url":"https://api.github.com/repos/phuonghuynh/TechLooper/git/commits{/sha}","comments_url":"https://api.github.com/repos/phuonghuynh/TechLooper/comments{/number}","issue_comment_url":"https://api.github.com/repos/phuonghuynh/TechLooper/issues/comments{/number}","contents_url":"https://api.github.com/repos/phuonghuynh/TechLooper/contents/{+path}","compare_url":"https://api.github.com/repos/phuonghuynh/TechLooper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phuonghuynh/TechLooper/merges","archive_url":"https://api.github.com/repos/phuonghuynh/TechLooper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phuonghuynh/TechLooper/downloads","issues_url":"https://api.github.com/repos/phuonghuynh/TechLooper/issues{/number}","pulls_url":"https://api.github.com/repos/phuonghuynh/TechLooper/pulls{/number}","milestones_url":"https://api.github.com/repos/phuonghuynh/TechLooper/milestones{/number}","notifications_url":"https://api.github.com/repos/phuonghuynh/TechLooper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phuonghuynh/TechLooper/labels{/name}","releases_url":"https://api.github.com/repos/phuonghuynh/TechLooper/releases{/id}","created_at":"2014-09-09T07:40:45Z","updated_at":"2015-11-17T07:07:42Z","pushed_at":"2015-12-29T10:32:04Z","git_url":"git://github.com/phuonghuynh/TechLooper.git","ssh_url":"git@github.com:phuonghuynh/TechLooper.git","clone_url":"https://github.com/phuonghuynh/TechLooper.git","svn_url":"https://github.com/phuonghuynh/TechLooper","homepage":null,"size":45124,"stargazers_count":1,"watchers_count":1,"language":"FreeMarker","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"chrisshayan:Release56","ref":"Release56","sha":"7a249b15fc494c974845890ba5f463e4c48deaf0","user":{"login":"chrisshayan","id":4226119,"avatar_url":"https://avatars.githubusercontent.com/u/4226119?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisshayan","html_url":"https://github.com/chrisshayan","followers_url":"https://api.github.com/users/chrisshayan/followers","following_url":"https://api.github.com/users/chrisshayan/following{/other_user}","gists_url":"https://api.github.com/users/chrisshayan/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisshayan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisshayan/subscriptions","organizations_url":"https://api.github.com/users/chrisshayan/orgs","repos_url":"https://api.github.com/users/chrisshayan/repos","events_url":"https://api.github.com/users/chrisshayan/events{/privacy}","received_events_url":"https://api.github.com/users/chrisshayan/received_events","type":"User","site_admin":false},"repo":{"id":21732596,"name":"TechLooper","full_name":"chrisshayan/TechLooper","owner":{"login":"chrisshayan","id":4226119,"avatar_url":"https://avatars.githubusercontent.com/u/4226119?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisshayan","html_url":"https://github.com/chrisshayan","followers_url":"https://api.github.com/users/chrisshayan/followers","following_url":"https://api.github.com/users/chrisshayan/following{/other_user}","gists_url":"https://api.github.com/users/chrisshayan/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisshayan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisshayan/subscriptions","organizations_url":"https://api.github.com/users/chrisshayan/orgs","repos_url":"https://api.github.com/users/chrisshayan/repos","events_url":"https://api.github.com/users/chrisshayan/events{/privacy}","received_events_url":"https://api.github.com/users/chrisshayan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chrisshayan/TechLooper","description":"This is VietnamWorks Open Source project. TechLooper is an aggregator which will detects the market demands and trends for IT jobs.","fork":false,"url":"https://api.github.com/repos/chrisshayan/TechLooper","forks_url":"https://api.github.com/repos/chrisshayan/TechLooper/forks","keys_url":"https://api.github.com/repos/chrisshayan/TechLooper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrisshayan/TechLooper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrisshayan/TechLooper/teams","hooks_url":"https://api.github.com/repos/chrisshayan/TechLooper/hooks","issue_events_url":"https://api.github.com/repos/chrisshayan/TechLooper/issues/events{/number}","events_url":"https://api.github.com/repos/chrisshayan/TechLooper/events","assignees_url":"https://api.github.com/repos/chrisshayan/TechLooper/assignees{/user}","branches_url":"https://api.github.com/repos/chrisshayan/TechLooper/branches{/branch}","tags_url":"https://api.github.com/repos/chrisshayan/TechLooper/tags","blobs_url":"https://api.github.com/repos/chrisshayan/TechLooper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrisshayan/TechLooper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrisshayan/TechLooper/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrisshayan/TechLooper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrisshayan/TechLooper/statuses/{sha}","languages_url":"https://api.github.com/repos/chrisshayan/TechLooper/languages","stargazers_url":"https://api.github.com/repos/chrisshayan/TechLooper/stargazers","contributors_url":"https://api.github.com/repos/chrisshayan/TechLooper/contributors","subscribers_url":"https://api.github.com/repos/chrisshayan/TechLooper/subscribers","subscription_url":"https://api.github.com/repos/chrisshayan/TechLooper/subscription","commits_url":"https://api.github.com/repos/chrisshayan/TechLooper/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrisshayan/TechLooper/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrisshayan/TechLooper/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrisshayan/TechLooper/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrisshayan/TechLooper/contents/{+path}","compare_url":"https://api.github.com/repos/chrisshayan/TechLooper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrisshayan/TechLooper/merges","archive_url":"https://api.github.com/repos/chrisshayan/TechLooper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrisshayan/TechLooper/downloads","issues_url":"https://api.github.com/repos/chrisshayan/TechLooper/issues{/number}","pulls_url":"https://api.github.com/repos/chrisshayan/TechLooper/pulls{/number}","milestones_url":"https://api.github.com/repos/chrisshayan/TechLooper/milestones{/number}","notifications_url":"https://api.github.com/repos/chrisshayan/TechLooper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrisshayan/TechLooper/labels{/name}","releases_url":"https://api.github.com/repos/chrisshayan/TechLooper/releases{/id}","created_at":"2014-07-11T10:34:18Z","updated_at":"2015-12-16T07:40:41Z","pushed_at":"2015-12-29T10:34:16Z","git_url":"git://github.com/chrisshayan/TechLooper.git","ssh_url":"git@github.com:chrisshayan/TechLooper.git","clone_url":"https://github.com/chrisshayan/TechLooper.git","svn_url":"https://github.com/chrisshayan/TechLooper","homepage":null,"size":45141,"stargazers_count":19,"watchers_count":19,"language":"FreeMarker","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":1,"forks":16,"open_issues":1,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/476"},"html":{"href":"https://github.com/chrisshayan/TechLooper/pull/476"},"issue":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/issues/476"},"comments":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/issues/476/comments"},"review_comments":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/476/comments"},"review_comment":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/pulls/476/commits"},"statuses":{"href":"https://api.github.com/repos/chrisshayan/TechLooper/statuses/71d86a483d8a9c770e56d16b75f4bf9b2976e33d"}}}}