{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pulls/1","id":348332045,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQ4MzMyMDQ1","html_url":"https://github.com/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pull/1","diff_url":"https://github.com/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pull/1.diff","patch_url":"https://github.com/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pull/1.patch","issue_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/issues/1","number":1,"state":"closed","locked":false,"title":"use python to send proper json","user":{"login":"PaulLiang1","id":9259198,"node_id":"MDQ6VXNlcjkyNTkxOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/9259198?v=4","gravatar_id":"","url":"https://api.github.com/users/PaulLiang1","html_url":"https://github.com/PaulLiang1","followers_url":"https://api.github.com/users/PaulLiang1/followers","following_url":"https://api.github.com/users/PaulLiang1/following{/other_user}","gists_url":"https://api.github.com/users/PaulLiang1/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulLiang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulLiang1/subscriptions","organizations_url":"https://api.github.com/users/PaulLiang1/orgs","repos_url":"https://api.github.com/users/PaulLiang1/repos","events_url":"https://api.github.com/users/PaulLiang1/events{/privacy}","received_events_url":"https://api.github.com/users/PaulLiang1/received_events","type":"User","site_admin":false},"body":"existing curl version would throw error when message contains `\"'\\` where it breaks the json;\r\n\r\nusing python to send the msg so that it could escape the msg properly;\r\n\r\nusing urllib so that no 3rd lib required, also using syntax that works in both python2/3;\r\n\r\n----\r\nnow given a msg\r\n![image](https://user-images.githubusercontent.com/9259198/70055426-a113f300-162d-11ea-8f18-fb000bf4b1ed.png)\r\n\r\nit will pop up as\r\n![image](https://user-images.githubusercontent.com/9259198/70055447-a83b0100-162d-11ea-8529-28995a971789.png)\r\n","created_at":"2019-12-03T13:33:24Z","updated_at":"2019-12-11T05:33:29Z","closed_at":"2019-12-11T05:33:29Z","merged_at":null,"merge_commit_sha":"9d2c39c84da996be812ca08936d70871521585c4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pulls/1/commits","review_comments_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pulls/1/comments","review_comment_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/issues/1/comments","statuses_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/statuses/7f76a34a143179370421fa25dad1ba1b21a4de56","head":{"label":"PaulLiang1:master","ref":"master","sha":"7f76a34a143179370421fa25dad1ba1b21a4de56","user":{"login":"PaulLiang1","id":9259198,"node_id":"MDQ6VXNlcjkyNTkxOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/9259198?v=4","gravatar_id":"","url":"https://api.github.com/users/PaulLiang1","html_url":"https://github.com/PaulLiang1","followers_url":"https://api.github.com/users/PaulLiang1/followers","following_url":"https://api.github.com/users/PaulLiang1/following{/other_user}","gists_url":"https://api.github.com/users/PaulLiang1/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulLiang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulLiang1/subscriptions","organizations_url":"https://api.github.com/users/PaulLiang1/orgs","repos_url":"https://api.github.com/users/PaulLiang1/repos","events_url":"https://api.github.com/users/PaulLiang1/events{/privacy}","received_events_url":"https://api.github.com/users/PaulLiang1/received_events","type":"User","site_admin":false},"repo":{"id":225618568,"node_id":"MDEwOlJlcG9zaXRvcnkyMjU2MTg1Njg=","name":"hangouts-notify-buildkite-plugin","full_name":"PaulLiang1/hangouts-notify-buildkite-plugin","private":false,"owner":{"login":"PaulLiang1","id":9259198,"node_id":"MDQ6VXNlcjkyNTkxOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/9259198?v=4","gravatar_id":"","url":"https://api.github.com/users/PaulLiang1","html_url":"https://github.com/PaulLiang1","followers_url":"https://api.github.com/users/PaulLiang1/followers","following_url":"https://api.github.com/users/PaulLiang1/following{/other_user}","gists_url":"https://api.github.com/users/PaulLiang1/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulLiang1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulLiang1/subscriptions","organizations_url":"https://api.github.com/users/PaulLiang1/orgs","repos_url":"https://api.github.com/users/PaulLiang1/repos","events_url":"https://api.github.com/users/PaulLiang1/events{/privacy}","received_events_url":"https://api.github.com/users/PaulLiang1/received_events","type":"User","site_admin":false},"html_url":"https://github.com/PaulLiang1/hangouts-notify-buildkite-plugin","description":"Send Notifications from Buildkite Pipelines","fork":true,"url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin","forks_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/forks","keys_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/teams","hooks_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/hooks","issue_events_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/events","assignees_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/tags","blobs_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/languages","stargazers_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/stargazers","contributors_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/contributors","subscribers_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/subscribers","subscription_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/subscription","commits_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/merges","archive_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/downloads","issues_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/labels{/name}","releases_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/PaulLiang1/hangouts-notify-buildkite-plugin/deployments","created_at":"2019-12-03T12:48:48Z","updated_at":"2019-12-03T13:21:58Z","pushed_at":"2019-12-03T13:21:56Z","git_url":"git://github.com/PaulLiang1/hangouts-notify-buildkite-plugin.git","ssh_url":"git@github.com:PaulLiang1/hangouts-notify-buildkite-plugin.git","clone_url":"https://github.com/PaulLiang1/hangouts-notify-buildkite-plugin.git","svn_url":"https://github.com/PaulLiang1/hangouts-notify-buildkite-plugin","homepage":"","size":7,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dawshiek-yogathasar:master","ref":"master","sha":"82e2ba1c91e608f8f5a03aaf40131cdd9682b10f","user":{"login":"dawshiek-yogathasar","id":16074750,"node_id":"MDQ6VXNlcjE2MDc0NzUw","avatar_url":"https://avatars2.githubusercontent.com/u/16074750?v=4","gravatar_id":"","url":"https://api.github.com/users/dawshiek-yogathasar","html_url":"https://github.com/dawshiek-yogathasar","followers_url":"https://api.github.com/users/dawshiek-yogathasar/followers","following_url":"https://api.github.com/users/dawshiek-yogathasar/following{/other_user}","gists_url":"https://api.github.com/users/dawshiek-yogathasar/gists{/gist_id}","starred_url":"https://api.github.com/users/dawshiek-yogathasar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawshiek-yogathasar/subscriptions","organizations_url":"https://api.github.com/users/dawshiek-yogathasar/orgs","repos_url":"https://api.github.com/users/dawshiek-yogathasar/repos","events_url":"https://api.github.com/users/dawshiek-yogathasar/events{/privacy}","received_events_url":"https://api.github.com/users/dawshiek-yogathasar/received_events","type":"User","site_admin":false},"repo":{"id":223940271,"node_id":"MDEwOlJlcG9zaXRvcnkyMjM5NDAyNzE=","name":"hangouts-notify-buildkite-plugin","full_name":"dawshiek-yogathasar/hangouts-notify-buildkite-plugin","private":false,"owner":{"login":"dawshiek-yogathasar","id":16074750,"node_id":"MDQ6VXNlcjE2MDc0NzUw","avatar_url":"https://avatars2.githubusercontent.com/u/16074750?v=4","gravatar_id":"","url":"https://api.github.com/users/dawshiek-yogathasar","html_url":"https://github.com/dawshiek-yogathasar","followers_url":"https://api.github.com/users/dawshiek-yogathasar/followers","following_url":"https://api.github.com/users/dawshiek-yogathasar/following{/other_user}","gists_url":"https://api.github.com/users/dawshiek-yogathasar/gists{/gist_id}","starred_url":"https://api.github.com/users/dawshiek-yogathasar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawshiek-yogathasar/subscriptions","organizations_url":"https://api.github.com/users/dawshiek-yogathasar/orgs","repos_url":"https://api.github.com/users/dawshiek-yogathasar/repos","events_url":"https://api.github.com/users/dawshiek-yogathasar/events{/privacy}","received_events_url":"https://api.github.com/users/dawshiek-yogathasar/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dawshiek-yogathasar/hangouts-notify-buildkite-plugin","description":"Send Notifications from Buildkite Pipelines","fork":false,"url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin","forks_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/forks","keys_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/teams","hooks_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/hooks","issue_events_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/events","assignees_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/tags","blobs_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/languages","stargazers_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/stargazers","contributors_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/contributors","subscribers_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/subscribers","subscription_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/subscription","commits_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/merges","archive_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/downloads","issues_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/labels{/name}","releases_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/deployments","created_at":"2019-11-25T12:10:49Z","updated_at":"2019-12-05T02:54:12Z","pushed_at":"2019-12-09T01:55:04Z","git_url":"git://github.com/dawshiek-yogathasar/hangouts-notify-buildkite-plugin.git","ssh_url":"git@github.com:dawshiek-yogathasar/hangouts-notify-buildkite-plugin.git","clone_url":"https://github.com/dawshiek-yogathasar/hangouts-notify-buildkite-plugin.git","svn_url":"https://github.com/dawshiek-yogathasar/hangouts-notify-buildkite-plugin","homepage":"","size":6,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pulls/1"},"html":{"href":"https://github.com/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pull/1"},"issue":{"href":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/issues/1"},"comments":{"href":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/dawshiek-yogathasar/hangouts-notify-buildkite-plugin/statuses/7f76a34a143179370421fa25dad1ba1b21a4de56"}},"author_association":"NONE","merged":false,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":66,"deletions":28,"changed_files":3}}
{"actor":{"display_login":"PaulLiang1"}}