{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/app-cloud/pulls/comments/77319964","id":77319964,"diff_hunk":"@@ -628,16 +628,10 @@ function validationApplicationRevision(field, value) {\n     if (validateRequired(field, value)) {\n         return true;\n     }\n-    if (!isNaN(value)) {\n-        response.status = 400;\n-        response.content = \"Bad request : Invalid version number - Provide version number in format major.minor.patch\";\n-        return true;\n-    }\n-\n-    var patternNonAlphaNum = /^(?:(\\d{1,2})\\.)?(?:(\\d{1,2})\\.)?(\\*|\\d{1,2})$/g;\n-    if (!patternNonAlphaNum.test(value)) {\n+    var patternNonAlphaNum = /[^a-zA-Z\\d\\-\\_.]/g;\n+    if (patternNonAlphaNum.test(value)) {\n         response.status = 400;\n-        response.content = \"Bad request : Invalid version number - Provide version number in format major.minor.patch\";\n+        response.content = \"Bad request : Application Name has invalid characters. Valid characters are [a-z, A-Z, 0-9, _, ., -]\";","path":"modules/jaggeryapps/appmgt/src/site/blocks/application/application.jag","position":28,"original_position":28,"commit_id":"2b9cb3f2ea27e08e361baf08c693a46c4d7f4645","original_commit_id":"2b9cb3f2ea27e08e361baf08c693a46c4d7f4645","user":{"login":"SabraO","id":5234592,"avatar_url":"https://avatars.githubusercontent.com/u/5234592?v=3","gravatar_id":"","url":"https://api.github.com/users/SabraO","html_url":"https://github.com/SabraO","followers_url":"https://api.github.com/users/SabraO/followers","following_url":"https://api.github.com/users/SabraO/following{/other_user}","gists_url":"https://api.github.com/users/SabraO/gists{/gist_id}","starred_url":"https://api.github.com/users/SabraO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SabraO/subscriptions","organizations_url":"https://api.github.com/users/SabraO/orgs","repos_url":"https://api.github.com/users/SabraO/repos","events_url":"https://api.github.com/users/SabraO/events{/privacy}","received_events_url":"https://api.github.com/users/SabraO/received_events","type":"User","site_admin":false},"body":"Review text","created_at":"2016-09-02T09:39:18Z","updated_at":"2016-09-02T09:39:18Z","html_url":"https://github.com/wso2/app-cloud/pull/646#discussion_r77319964","pull_request_url":"https://api.github.com/repos/wso2/app-cloud/pulls/646","_links":{"self":{"href":"https://api.github.com/repos/wso2/app-cloud/pulls/comments/77319964"},"html":{"href":"https://github.com/wso2/app-cloud/pull/646#discussion_r77319964"},"pull_request":{"href":"https://api.github.com/repos/wso2/app-cloud/pulls/646"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/app-cloud/pulls/646","id":82524162,"html_url":"https://github.com/wso2/app-cloud/pull/646","diff_url":"https://github.com/wso2/app-cloud/pull/646.diff","patch_url":"https://github.com/wso2/app-cloud/pull/646.patch","issue_url":"https://api.github.com/repos/wso2/app-cloud/issues/646","number":646,"state":"closed","locked":false,"title":"Fixing APPCLOUD-298 Changing the version format","user":{"login":"kasundsilva","id":8521458,"avatar_url":"https://avatars.githubusercontent.com/u/8521458?v=3","gravatar_id":"","url":"https://api.github.com/users/kasundsilva","html_url":"https://github.com/kasundsilva","followers_url":"https://api.github.com/users/kasundsilva/followers","following_url":"https://api.github.com/users/kasundsilva/following{/other_user}","gists_url":"https://api.github.com/users/kasundsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/kasundsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasundsilva/subscriptions","organizations_url":"https://api.github.com/users/kasundsilva/orgs","repos_url":"https://api.github.com/users/kasundsilva/repos","events_url":"https://api.github.com/users/kasundsilva/events{/privacy}","received_events_url":"https://api.github.com/users/kasundsilva/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-24T11:18:32Z","updated_at":"2016-09-02T09:39:18Z","closed_at":"2016-08-24T11:19:02Z","merged_at":"2016-08-24T11:19:02Z","merge_commit_sha":"0b26a87440ec69a523922fbf4d3f368c6ec15725","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/app-cloud/pulls/646/commits","review_comments_url":"https://api.github.com/repos/wso2/app-cloud/pulls/646/comments","review_comment_url":"https://api.github.com/repos/wso2/app-cloud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/app-cloud/issues/646/comments","statuses_url":"https://api.github.com/repos/wso2/app-cloud/statuses/2b9cb3f2ea27e08e361baf08c693a46c4d7f4645","head":{"label":"kasundsilva:master","ref":"master","sha":"2b9cb3f2ea27e08e361baf08c693a46c4d7f4645","user":{"login":"kasundsilva","id":8521458,"avatar_url":"https://avatars.githubusercontent.com/u/8521458?v=3","gravatar_id":"","url":"https://api.github.com/users/kasundsilva","html_url":"https://github.com/kasundsilva","followers_url":"https://api.github.com/users/kasundsilva/followers","following_url":"https://api.github.com/users/kasundsilva/following{/other_user}","gists_url":"https://api.github.com/users/kasundsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/kasundsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasundsilva/subscriptions","organizations_url":"https://api.github.com/users/kasundsilva/orgs","repos_url":"https://api.github.com/users/kasundsilva/repos","events_url":"https://api.github.com/users/kasundsilva/events{/privacy}","received_events_url":"https://api.github.com/users/kasundsilva/received_events","type":"User","site_admin":false},"repo":{"id":50973175,"name":"app-cloud","full_name":"kasundsilva/app-cloud","owner":{"login":"kasundsilva","id":8521458,"avatar_url":"https://avatars.githubusercontent.com/u/8521458?v=3","gravatar_id":"","url":"https://api.github.com/users/kasundsilva","html_url":"https://github.com/kasundsilva","followers_url":"https://api.github.com/users/kasundsilva/followers","following_url":"https://api.github.com/users/kasundsilva/following{/other_user}","gists_url":"https://api.github.com/users/kasundsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/kasundsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasundsilva/subscriptions","organizations_url":"https://api.github.com/users/kasundsilva/orgs","repos_url":"https://api.github.com/users/kasundsilva/repos","events_url":"https://api.github.com/users/kasundsilva/events{/privacy}","received_events_url":"https://api.github.com/users/kasundsilva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kasundsilva/app-cloud","description":"","fork":true,"url":"https://api.github.com/repos/kasundsilva/app-cloud","forks_url":"https://api.github.com/repos/kasundsilva/app-cloud/forks","keys_url":"https://api.github.com/repos/kasundsilva/app-cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kasundsilva/app-cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kasundsilva/app-cloud/teams","hooks_url":"https://api.github.com/repos/kasundsilva/app-cloud/hooks","issue_events_url":"https://api.github.com/repos/kasundsilva/app-cloud/issues/events{/number}","events_url":"https://api.github.com/repos/kasundsilva/app-cloud/events","assignees_url":"https://api.github.com/repos/kasundsilva/app-cloud/assignees{/user}","branches_url":"https://api.github.com/repos/kasundsilva/app-cloud/branches{/branch}","tags_url":"https://api.github.com/repos/kasundsilva/app-cloud/tags","blobs_url":"https://api.github.com/repos/kasundsilva/app-cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kasundsilva/app-cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kasundsilva/app-cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/kasundsilva/app-cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kasundsilva/app-cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/kasundsilva/app-cloud/languages","stargazers_url":"https://api.github.com/repos/kasundsilva/app-cloud/stargazers","contributors_url":"https://api.github.com/repos/kasundsilva/app-cloud/contributors","subscribers_url":"https://api.github.com/repos/kasundsilva/app-cloud/subscribers","subscription_url":"https://api.github.com/repos/kasundsilva/app-cloud/subscription","commits_url":"https://api.github.com/repos/kasundsilva/app-cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/kasundsilva/app-cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/kasundsilva/app-cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/kasundsilva/app-cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/kasundsilva/app-cloud/contents/{+path}","compare_url":"https://api.github.com/repos/kasundsilva/app-cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kasundsilva/app-cloud/merges","archive_url":"https://api.github.com/repos/kasundsilva/app-cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kasundsilva/app-cloud/downloads","issues_url":"https://api.github.com/repos/kasundsilva/app-cloud/issues{/number}","pulls_url":"https://api.github.com/repos/kasundsilva/app-cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/kasundsilva/app-cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/kasundsilva/app-cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kasundsilva/app-cloud/labels{/name}","releases_url":"https://api.github.com/repos/kasundsilva/app-cloud/releases{/id}","deployments_url":"https://api.github.com/repos/kasundsilva/app-cloud/deployments","created_at":"2016-02-03T04:10:46Z","updated_at":"2016-02-09T06:02:28Z","pushed_at":"2016-09-01T09:21:14Z","git_url":"git://github.com/kasundsilva/app-cloud.git","ssh_url":"git@github.com:kasundsilva/app-cloud.git","clone_url":"https://github.com/kasundsilva/app-cloud.git","svn_url":"https://github.com/kasundsilva/app-cloud","homepage":null,"size":22437,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"1a236b9640d1effae711abedddb66c942d872bd8","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":50903674,"name":"app-cloud","full_name":"wso2/app-cloud","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/app-cloud","description":"WSO2 APP-CLOUD","fork":false,"url":"https://api.github.com/repos/wso2/app-cloud","forks_url":"https://api.github.com/repos/wso2/app-cloud/forks","keys_url":"https://api.github.com/repos/wso2/app-cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/app-cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/app-cloud/teams","hooks_url":"https://api.github.com/repos/wso2/app-cloud/hooks","issue_events_url":"https://api.github.com/repos/wso2/app-cloud/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/app-cloud/events","assignees_url":"https://api.github.com/repos/wso2/app-cloud/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/app-cloud/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/app-cloud/tags","blobs_url":"https://api.github.com/repos/wso2/app-cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/app-cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/app-cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/app-cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/app-cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/app-cloud/languages","stargazers_url":"https://api.github.com/repos/wso2/app-cloud/stargazers","contributors_url":"https://api.github.com/repos/wso2/app-cloud/contributors","subscribers_url":"https://api.github.com/repos/wso2/app-cloud/subscribers","subscription_url":"https://api.github.com/repos/wso2/app-cloud/subscription","commits_url":"https://api.github.com/repos/wso2/app-cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/app-cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/app-cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/app-cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/app-cloud/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/app-cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/app-cloud/merges","archive_url":"https://api.github.com/repos/wso2/app-cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/app-cloud/downloads","issues_url":"https://api.github.com/repos/wso2/app-cloud/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/app-cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/app-cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/app-cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/app-cloud/labels{/name}","releases_url":"https://api.github.com/repos/wso2/app-cloud/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/app-cloud/deployments","created_at":"2016-02-02T07:49:41Z","updated_at":"2016-06-15T10:24:45Z","pushed_at":"2016-09-02T08:15:38Z","git_url":"git://github.com/wso2/app-cloud.git","ssh_url":"git@github.com:wso2/app-cloud.git","clone_url":"https://github.com/wso2/app-cloud.git","svn_url":"https://github.com/wso2/app-cloud","homepage":"","size":22614,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":3,"forks":25,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/app-cloud/pulls/646"},"html":{"href":"https://github.com/wso2/app-cloud/pull/646"},"issue":{"href":"https://api.github.com/repos/wso2/app-cloud/issues/646"},"comments":{"href":"https://api.github.com/repos/wso2/app-cloud/issues/646/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/app-cloud/pulls/646/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/app-cloud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/app-cloud/pulls/646/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/app-cloud/statuses/2b9cb3f2ea27e08e361baf08c693a46c4d7f4645"}}}}
{"actor":{"display_login":"SabraO"}}