{"action":"created","comment":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments/188847999","pull_request_review_id":120906590,"id":188847999,"diff_hunk":"@@ -201,10 +201,18 @@ public function CallerActions::publishUpdate(string topic, json payload, string?\n \n     var response = httpClientEndpoint->post(untaint (\"?\" + queryParams), request = request);\n     match (response) {\n-        http:Response => return;\n-        error httpConnectorError => { error webSubError = {\n-            message:\"Notification failed for topic [\" + topic + \"]\", cause:httpConnectorError};\n-        return webSubError;\n+        http:Response response => {\n+            string respStatusCode = <string>response.statusCode;\n+            if (!respStatusCode.hasPrefix(\"2\")) {","path":"stdlib/ballerina-websub/src/main/ballerina/websub/hub_caller_actions.bal","position":null,"original_position":10,"commit_id":"fd6e70fe4a76c46f5031f950642c0aec83a75dd5","original_commit_id":"9889389c87b48ff825da73a5890e57b3aa756e90","user":{"login":"MaryamZi","id":8376983,"avatar_url":"https://avatars1.githubusercontent.com/u/8376983?v=4","gravatar_id":"","url":"https://api.github.com/users/MaryamZi","html_url":"https://github.com/MaryamZi","followers_url":"https://api.github.com/users/MaryamZi/followers","following_url":"https://api.github.com/users/MaryamZi/following{/other_user}","gists_url":"https://api.github.com/users/MaryamZi/gists{/gist_id}","starred_url":"https://api.github.com/users/MaryamZi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaryamZi/subscriptions","organizations_url":"https://api.github.com/users/MaryamZi/orgs","repos_url":"https://api.github.com/users/MaryamZi/repos","events_url":"https://api.github.com/users/MaryamZi/events{/privacy}","received_events_url":"https://api.github.com/users/MaryamZi/received_events","type":"User","site_admin":false},"body":"Fixed with fd6e70f, introducing a new function.","created_at":"2018-05-17T06:15:06Z","updated_at":"2018-05-17T06:15:07Z","html_url":"https://github.com/ballerina-platform/ballerina-lang/pull/8592#discussion_r188847999","pull_request_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/8592","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments/188847999"},"html":{"href":"https://github.com/ballerina-platform/ballerina-lang/pull/8592#discussion_r188847999"},"pull_request":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/8592"}},"in_reply_to_id":188840300},"pull_request":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/8592","id":188299711,"html_url":"https://github.com/ballerina-platform/ballerina-lang/pull/8592","diff_url":"https://github.com/ballerina-platform/ballerina-lang/pull/8592.diff","patch_url":"https://github.com/ballerina-platform/ballerina-lang/pull/8592.patch","issue_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/8592","number":8592,"state":"open","locked":false,"title":"[WebSub] Refactor code ","user":{"login":"MaryamZi","id":8376983,"avatar_url":"https://avatars1.githubusercontent.com/u/8376983?v=4","gravatar_id":"","url":"https://api.github.com/users/MaryamZi","html_url":"https://github.com/MaryamZi","followers_url":"https://api.github.com/users/MaryamZi/followers","following_url":"https://api.github.com/users/MaryamZi/following{/other_user}","gists_url":"https://api.github.com/users/MaryamZi/gists{/gist_id}","starred_url":"https://api.github.com/users/MaryamZi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaryamZi/subscriptions","organizations_url":"https://api.github.com/users/MaryamZi/orgs","repos_url":"https://api.github.com/users/MaryamZi/repos","events_url":"https://api.github.com/users/MaryamZi/events{/privacy}","received_events_url":"https://api.github.com/users/MaryamZi/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nRefactor code to:\r\n- improve handling of error scenarios, with the client endpoint\r\n- remove redundant functions\r\n- fix possible test failures, due to unexpected delays","created_at":"2018-05-16T01:56:23Z","updated_at":"2018-05-17T06:15:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b4636088c4c1f23183dab12bcfffce7037f63d2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/8592/commits","review_comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/8592/comments","review_comment_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/8592/comments","statuses_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/fd6e70fe4a76c46f5031f950642c0aec83a75dd5","head":{"label":"MaryamZi:refactor-websub","ref":"refactor-websub","sha":"fd6e70fe4a76c46f5031f950642c0aec83a75dd5","user":{"login":"MaryamZi","id":8376983,"avatar_url":"https://avatars1.githubusercontent.com/u/8376983?v=4","gravatar_id":"","url":"https://api.github.com/users/MaryamZi","html_url":"https://github.com/MaryamZi","followers_url":"https://api.github.com/users/MaryamZi/followers","following_url":"https://api.github.com/users/MaryamZi/following{/other_user}","gists_url":"https://api.github.com/users/MaryamZi/gists{/gist_id}","starred_url":"https://api.github.com/users/MaryamZi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaryamZi/subscriptions","organizations_url":"https://api.github.com/users/MaryamZi/orgs","repos_url":"https://api.github.com/users/MaryamZi/repos","events_url":"https://api.github.com/users/MaryamZi/events{/privacy}","received_events_url":"https://api.github.com/users/MaryamZi/received_events","type":"User","site_admin":false},"repo":{"id":119959335,"name":"ballerina","full_name":"MaryamZi/ballerina","owner":{"login":"MaryamZi","id":8376983,"avatar_url":"https://avatars1.githubusercontent.com/u/8376983?v=4","gravatar_id":"","url":"https://api.github.com/users/MaryamZi","html_url":"https://github.com/MaryamZi","followers_url":"https://api.github.com/users/MaryamZi/followers","following_url":"https://api.github.com/users/MaryamZi/following{/other_user}","gists_url":"https://api.github.com/users/MaryamZi/gists{/gist_id}","starred_url":"https://api.github.com/users/MaryamZi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaryamZi/subscriptions","organizations_url":"https://api.github.com/users/MaryamZi/orgs","repos_url":"https://api.github.com/users/MaryamZi/repos","events_url":"https://api.github.com/users/MaryamZi/events{/privacy}","received_events_url":"https://api.github.com/users/MaryamZi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaryamZi/ballerina","description":"Ballerina is a new programming language for integration built on a sequence diagram metaphor.","fork":true,"url":"https://api.github.com/repos/MaryamZi/ballerina","forks_url":"https://api.github.com/repos/MaryamZi/ballerina/forks","keys_url":"https://api.github.com/repos/MaryamZi/ballerina/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaryamZi/ballerina/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaryamZi/ballerina/teams","hooks_url":"https://api.github.com/repos/MaryamZi/ballerina/hooks","issue_events_url":"https://api.github.com/repos/MaryamZi/ballerina/issues/events{/number}","events_url":"https://api.github.com/repos/MaryamZi/ballerina/events","assignees_url":"https://api.github.com/repos/MaryamZi/ballerina/assignees{/user}","branches_url":"https://api.github.com/repos/MaryamZi/ballerina/branches{/branch}","tags_url":"https://api.github.com/repos/MaryamZi/ballerina/tags","blobs_url":"https://api.github.com/repos/MaryamZi/ballerina/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaryamZi/ballerina/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaryamZi/ballerina/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaryamZi/ballerina/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaryamZi/ballerina/statuses/{sha}","languages_url":"https://api.github.com/repos/MaryamZi/ballerina/languages","stargazers_url":"https://api.github.com/repos/MaryamZi/ballerina/stargazers","contributors_url":"https://api.github.com/repos/MaryamZi/ballerina/contributors","subscribers_url":"https://api.github.com/repos/MaryamZi/ballerina/subscribers","subscription_url":"https://api.github.com/repos/MaryamZi/ballerina/subscription","commits_url":"https://api.github.com/repos/MaryamZi/ballerina/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaryamZi/ballerina/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaryamZi/ballerina/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaryamZi/ballerina/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaryamZi/ballerina/contents/{+path}","compare_url":"https://api.github.com/repos/MaryamZi/ballerina/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaryamZi/ballerina/merges","archive_url":"https://api.github.com/repos/MaryamZi/ballerina/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaryamZi/ballerina/downloads","issues_url":"https://api.github.com/repos/MaryamZi/ballerina/issues{/number}","pulls_url":"https://api.github.com/repos/MaryamZi/ballerina/pulls{/number}","milestones_url":"https://api.github.com/repos/MaryamZi/ballerina/milestones{/number}","notifications_url":"https://api.github.com/repos/MaryamZi/ballerina/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaryamZi/ballerina/labels{/name}","releases_url":"https://api.github.com/repos/MaryamZi/ballerina/releases{/id}","deployments_url":"https://api.github.com/repos/MaryamZi/ballerina/deployments","created_at":"2018-02-02T09:10:37Z","updated_at":"2018-04-04T04:15:50Z","pushed_at":"2018-05-17T06:13:00Z","git_url":"git://github.com/MaryamZi/ballerina.git","ssh_url":"git@github.com:MaryamZi/ballerina.git","clone_url":"https://github.com/MaryamZi/ballerina.git","svn_url":"https://github.com/MaryamZi/ballerina","homepage":"","size":226751,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ballerina-platform:master","ref":"master","sha":"8b57b68d09be9817ea631ead8c73e05efdafe1f0","user":{"login":"ballerina-platform","id":34733518,"avatar_url":"https://avatars2.githubusercontent.com/u/34733518?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-platform","html_url":"https://github.com/ballerina-platform","followers_url":"https://api.github.com/users/ballerina-platform/followers","following_url":"https://api.github.com/users/ballerina-platform/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-platform/subscriptions","organizations_url":"https://api.github.com/users/ballerina-platform/orgs","repos_url":"https://api.github.com/users/ballerina-platform/repos","events_url":"https://api.github.com/users/ballerina-platform/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":73930305,"name":"ballerina-lang","full_name":"ballerina-platform/ballerina-lang","owner":{"login":"ballerina-platform","id":34733518,"avatar_url":"https://avatars2.githubusercontent.com/u/34733518?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-platform","html_url":"https://github.com/ballerina-platform","followers_url":"https://api.github.com/users/ballerina-platform/followers","following_url":"https://api.github.com/users/ballerina-platform/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-platform/subscriptions","organizations_url":"https://api.github.com/users/ballerina-platform/orgs","repos_url":"https://api.github.com/users/ballerina-platform/repos","events_url":"https://api.github.com/users/ballerina-platform/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ballerina-platform/ballerina-lang","description":"Ballerina is a new programming language for integration built on a sequence diagram metaphor.","fork":false,"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang","forks_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/forks","keys_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/teams","hooks_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/hooks","issue_events_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/events{/number}","events_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/events","assignees_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/assignees{/user}","branches_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/branches{/branch}","tags_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/tags","blobs_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/languages","stargazers_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/stargazers","contributors_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/contributors","subscribers_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/subscribers","subscription_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/subscription","commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/contents/{+path}","compare_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/merges","archive_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/downloads","issues_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues{/number}","pulls_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/labels{/name}","releases_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/releases{/id}","deployments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/deployments","created_at":"2016-11-16T14:58:44Z","updated_at":"2018-05-17T04:58:05Z","pushed_at":"2018-05-17T06:13:02Z","git_url":"git://github.com/ballerina-platform/ballerina-lang.git","ssh_url":"git@github.com:ballerina-platform/ballerina-lang.git","clone_url":"https://github.com/ballerina-platform/ballerina-lang.git","svn_url":"https://github.com/ballerina-platform/ballerina-lang","homepage":"","size":227590,"stargazers_count":326,"watchers_count":326,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":319,"mirror_url":null,"archived":false,"open_issues_count":676,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":319,"open_issues":676,"watchers":326,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/8592"},"html":{"href":"https://github.com/ballerina-platform/ballerina-lang/pull/8592"},"issue":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/8592"},"comments":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/8592/comments"},"review_comments":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/8592/comments"},"review_comment":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/8592/commits"},"statuses":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/fd6e70fe4a76c46f5031f950642c0aec83a75dd5"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"MaryamZi"}}