{"action":"created","comment":{"url":"https://api.github.com/repos/Progressly/progressly-zapier/pulls/comments/175220993","pull_request_review_id":104725861,"id":175220993,"diff_hunk":"@@ -29,6 +29,25 @@ const subscribe = (z, bundle) => {\n   })\n }\n \n+// unsubscribes from webhooks\n+const unsubscribe = (z, bundle) => {\n+  const hookId = bundle.subscribeData.id\n+  const condition = bundle.subscribeData.condition\n+  condition.disabled = true\n+  const responsePromise = z.request({\n+    url: `${process.env.BASE_URL}/api/v2/subscriptions/${hookId}`,\n+    method: `PUT`,\n+    body: {\n+      condition,\n+    },\n+  })\n+  return responsePromise.then(response => {","path":"triggers/new_execution.js","position":25,"original_position":25,"commit_id":"f1862c02f032ed95695a8eb5f07a9bccfa0f52ce","original_commit_id":"f1862c02f032ed95695a8eb5f07a9bccfa0f52ce","user":{"login":"LupenTiJay","id":11985550,"avatar_url":"https://avatars1.githubusercontent.com/u/11985550?v=4","gravatar_id":"","url":"https://api.github.com/users/LupenTiJay","html_url":"https://github.com/LupenTiJay","followers_url":"https://api.github.com/users/LupenTiJay/followers","following_url":"https://api.github.com/users/LupenTiJay/following{/other_user}","gists_url":"https://api.github.com/users/LupenTiJay/gists{/gist_id}","starred_url":"https://api.github.com/users/LupenTiJay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LupenTiJay/subscriptions","organizations_url":"https://api.github.com/users/LupenTiJay/orgs","repos_url":"https://api.github.com/users/LupenTiJay/repos","events_url":"https://api.github.com/users/LupenTiJay/events{/privacy}","received_events_url":"https://api.github.com/users/LupenTiJay/received_events","type":"User","site_admin":false},"body":"single chain promise. This would be the pattern for async/await style","created_at":"2018-03-16T21:41:28Z","updated_at":"2018-03-16T21:41:28Z","html_url":"https://github.com/Progressly/progressly-zapier/pull/7#discussion_r175220993","pull_request_url":"https://api.github.com/repos/Progressly/progressly-zapier/pulls/7","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Progressly/progressly-zapier/pulls/comments/175220993"},"html":{"href":"https://github.com/Progressly/progressly-zapier/pull/7#discussion_r175220993"},"pull_request":{"href":"https://api.github.com/repos/Progressly/progressly-zapier/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/Progressly/progressly-zapier/pulls/7","id":175651000,"html_url":"https://github.com/Progressly/progressly-zapier/pull/7","diff_url":"https://github.com/Progressly/progressly-zapier/pull/7.diff","patch_url":"https://github.com/Progressly/progressly-zapier/pull/7.patch","issue_url":"https://api.github.com/repos/Progressly/progressly-zapier/issues/7","number":7,"state":"open","locked":false,"title":"Add unsubscribe hooks","user":{"login":"alexkrolick","id":1571667,"avatar_url":"https://avatars3.githubusercontent.com/u/1571667?v=4","gravatar_id":"","url":"https://api.github.com/users/alexkrolick","html_url":"https://github.com/alexkrolick","followers_url":"https://api.github.com/users/alexkrolick/followers","following_url":"https://api.github.com/users/alexkrolick/following{/other_user}","gists_url":"https://api.github.com/users/alexkrolick/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkrolick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkrolick/subscriptions","organizations_url":"https://api.github.com/users/alexkrolick/orgs","repos_url":"https://api.github.com/users/alexkrolick/repos","events_url":"https://api.github.com/users/alexkrolick/events{/privacy}","received_events_url":"https://api.github.com/users/alexkrolick/received_events","type":"User","site_admin":false},"body":"[delivers #155789122]\r\n\r\nThis is actually required to register as a REST hook","created_at":"2018-03-16T21:32:00Z","updated_at":"2018-03-16T21:41:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28f94d2c64bce7446c35d3fbbd765f1875082186","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Progressly/progressly-zapier/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Progressly/progressly-zapier/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Progressly/progressly-zapier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Progressly/progressly-zapier/issues/7/comments","statuses_url":"https://api.github.com/repos/Progressly/progressly-zapier/statuses/f1862c02f032ed95695a8eb5f07a9bccfa0f52ce","head":{"label":"Progressly:155789122-unsubscribe-hook","ref":"155789122-unsubscribe-hook","sha":"f1862c02f032ed95695a8eb5f07a9bccfa0f52ce","user":{"login":"Progressly","id":3860108,"avatar_url":"https://avatars1.githubusercontent.com/u/3860108?v=4","gravatar_id":"","url":"https://api.github.com/users/Progressly","html_url":"https://github.com/Progressly","followers_url":"https://api.github.com/users/Progressly/followers","following_url":"https://api.github.com/users/Progressly/following{/other_user}","gists_url":"https://api.github.com/users/Progressly/gists{/gist_id}","starred_url":"https://api.github.com/users/Progressly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Progressly/subscriptions","organizations_url":"https://api.github.com/users/Progressly/orgs","repos_url":"https://api.github.com/users/Progressly/repos","events_url":"https://api.github.com/users/Progressly/events{/privacy}","received_events_url":"https://api.github.com/users/Progressly/received_events","type":"Organization","site_admin":false},"repo":{"id":123363465,"name":"progressly-zapier","full_name":"Progressly/progressly-zapier","owner":{"login":"Progressly","id":3860108,"avatar_url":"https://avatars1.githubusercontent.com/u/3860108?v=4","gravatar_id":"","url":"https://api.github.com/users/Progressly","html_url":"https://github.com/Progressly","followers_url":"https://api.github.com/users/Progressly/followers","following_url":"https://api.github.com/users/Progressly/following{/other_user}","gists_url":"https://api.github.com/users/Progressly/gists{/gist_id}","starred_url":"https://api.github.com/users/Progressly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Progressly/subscriptions","organizations_url":"https://api.github.com/users/Progressly/orgs","repos_url":"https://api.github.com/users/Progressly/repos","events_url":"https://api.github.com/users/Progressly/events{/privacy}","received_events_url":"https://api.github.com/users/Progressly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Progressly/progressly-zapier","description":null,"fork":false,"url":"https://api.github.com/repos/Progressly/progressly-zapier","forks_url":"https://api.github.com/repos/Progressly/progressly-zapier/forks","keys_url":"https://api.github.com/repos/Progressly/progressly-zapier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Progressly/progressly-zapier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Progressly/progressly-zapier/teams","hooks_url":"https://api.github.com/repos/Progressly/progressly-zapier/hooks","issue_events_url":"https://api.github.com/repos/Progressly/progressly-zapier/issues/events{/number}","events_url":"https://api.github.com/repos/Progressly/progressly-zapier/events","assignees_url":"https://api.github.com/repos/Progressly/progressly-zapier/assignees{/user}","branches_url":"https://api.github.com/repos/Progressly/progressly-zapier/branches{/branch}","tags_url":"https://api.github.com/repos/Progressly/progressly-zapier/tags","blobs_url":"https://api.github.com/repos/Progressly/progressly-zapier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Progressly/progressly-zapier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Progressly/progressly-zapier/git/refs{/sha}","trees_url":"https://api.github.com/repos/Progressly/progressly-zapier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Progressly/progressly-zapier/statuses/{sha}","languages_url":"https://api.github.com/repos/Progressly/progressly-zapier/languages","stargazers_url":"https://api.github.com/repos/Progressly/progressly-zapier/stargazers","contributors_url":"https://api.github.com/repos/Progressly/progressly-zapier/contributors","subscribers_url":"https://api.github.com/repos/Progressly/progressly-zapier/subscribers","subscription_url":"https://api.github.com/repos/Progressly/progressly-zapier/subscription","commits_url":"https://api.github.com/repos/Progressly/progressly-zapier/commits{/sha}","git_commits_url":"https://api.github.com/repos/Progressly/progressly-zapier/git/commits{/sha}","comments_url":"https://api.github.com/repos/Progressly/progressly-zapier/comments{/number}","issue_comment_url":"https://api.github.com/repos/Progressly/progressly-zapier/issues/comments{/number}","contents_url":"https://api.github.com/repos/Progressly/progressly-zapier/contents/{+path}","compare_url":"https://api.github.com/repos/Progressly/progressly-zapier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Progressly/progressly-zapier/merges","archive_url":"https://api.github.com/repos/Progressly/progressly-zapier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Progressly/progressly-zapier/downloads","issues_url":"https://api.github.com/repos/Progressly/progressly-zapier/issues{/number}","pulls_url":"https://api.github.com/repos/Progressly/progressly-zapier/pulls{/number}","milestones_url":"https://api.github.com/repos/Progressly/progressly-zapier/milestones{/number}","notifications_url":"https://api.github.com/repos/Progressly/progressly-zapier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Progressly/progressly-zapier/labels{/name}","releases_url":"https://api.github.com/repos/Progressly/progressly-zapier/releases{/id}","deployments_url":"https://api.github.com/repos/Progressly/progressly-zapier/deployments","created_at":"2018-03-01T01:14:53Z","updated_at":"2018-03-16T19:32:18Z","pushed_at":"2018-03-16T21:40:59Z","git_url":"git://github.com/Progressly/progressly-zapier.git","ssh_url":"git@github.com:Progressly/progressly-zapier.git","clone_url":"https://github.com/Progressly/progressly-zapier.git","svn_url":"https://github.com/Progressly/progressly-zapier","homepage":null,"size":78,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Progressly:master","ref":"master","sha":"32c7617cc032460a558c3d90544e58aaee1c393e","user":{"login":"Progressly","id":3860108,"avatar_url":"https://avatars1.githubusercontent.com/u/3860108?v=4","gravatar_id":"","url":"https://api.github.com/users/Progressly","html_url":"https://github.com/Progressly","followers_url":"https://api.github.com/users/Progressly/followers","following_url":"https://api.github.com/users/Progressly/following{/other_user}","gists_url":"https://api.github.com/users/Progressly/gists{/gist_id}","starred_url":"https://api.github.com/users/Progressly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Progressly/subscriptions","organizations_url":"https://api.github.com/users/Progressly/orgs","repos_url":"https://api.github.com/users/Progressly/repos","events_url":"https://api.github.com/users/Progressly/events{/privacy}","received_events_url":"https://api.github.com/users/Progressly/received_events","type":"Organization","site_admin":false},"repo":{"id":123363465,"name":"progressly-zapier","full_name":"Progressly/progressly-zapier","owner":{"login":"Progressly","id":3860108,"avatar_url":"https://avatars1.githubusercontent.com/u/3860108?v=4","gravatar_id":"","url":"https://api.github.com/users/Progressly","html_url":"https://github.com/Progressly","followers_url":"https://api.github.com/users/Progressly/followers","following_url":"https://api.github.com/users/Progressly/following{/other_user}","gists_url":"https://api.github.com/users/Progressly/gists{/gist_id}","starred_url":"https://api.github.com/users/Progressly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Progressly/subscriptions","organizations_url":"https://api.github.com/users/Progressly/orgs","repos_url":"https://api.github.com/users/Progressly/repos","events_url":"https://api.github.com/users/Progressly/events{/privacy}","received_events_url":"https://api.github.com/users/Progressly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Progressly/progressly-zapier","description":null,"fork":false,"url":"https://api.github.com/repos/Progressly/progressly-zapier","forks_url":"https://api.github.com/repos/Progressly/progressly-zapier/forks","keys_url":"https://api.github.com/repos/Progressly/progressly-zapier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Progressly/progressly-zapier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Progressly/progressly-zapier/teams","hooks_url":"https://api.github.com/repos/Progressly/progressly-zapier/hooks","issue_events_url":"https://api.github.com/repos/Progressly/progressly-zapier/issues/events{/number}","events_url":"https://api.github.com/repos/Progressly/progressly-zapier/events","assignees_url":"https://api.github.com/repos/Progressly/progressly-zapier/assignees{/user}","branches_url":"https://api.github.com/repos/Progressly/progressly-zapier/branches{/branch}","tags_url":"https://api.github.com/repos/Progressly/progressly-zapier/tags","blobs_url":"https://api.github.com/repos/Progressly/progressly-zapier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Progressly/progressly-zapier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Progressly/progressly-zapier/git/refs{/sha}","trees_url":"https://api.github.com/repos/Progressly/progressly-zapier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Progressly/progressly-zapier/statuses/{sha}","languages_url":"https://api.github.com/repos/Progressly/progressly-zapier/languages","stargazers_url":"https://api.github.com/repos/Progressly/progressly-zapier/stargazers","contributors_url":"https://api.github.com/repos/Progressly/progressly-zapier/contributors","subscribers_url":"https://api.github.com/repos/Progressly/progressly-zapier/subscribers","subscription_url":"https://api.github.com/repos/Progressly/progressly-zapier/subscription","commits_url":"https://api.github.com/repos/Progressly/progressly-zapier/commits{/sha}","git_commits_url":"https://api.github.com/repos/Progressly/progressly-zapier/git/commits{/sha}","comments_url":"https://api.github.com/repos/Progressly/progressly-zapier/comments{/number}","issue_comment_url":"https://api.github.com/repos/Progressly/progressly-zapier/issues/comments{/number}","contents_url":"https://api.github.com/repos/Progressly/progressly-zapier/contents/{+path}","compare_url":"https://api.github.com/repos/Progressly/progressly-zapier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Progressly/progressly-zapier/merges","archive_url":"https://api.github.com/repos/Progressly/progressly-zapier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Progressly/progressly-zapier/downloads","issues_url":"https://api.github.com/repos/Progressly/progressly-zapier/issues{/number}","pulls_url":"https://api.github.com/repos/Progressly/progressly-zapier/pulls{/number}","milestones_url":"https://api.github.com/repos/Progressly/progressly-zapier/milestones{/number}","notifications_url":"https://api.github.com/repos/Progressly/progressly-zapier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Progressly/progressly-zapier/labels{/name}","releases_url":"https://api.github.com/repos/Progressly/progressly-zapier/releases{/id}","deployments_url":"https://api.github.com/repos/Progressly/progressly-zapier/deployments","created_at":"2018-03-01T01:14:53Z","updated_at":"2018-03-16T19:32:18Z","pushed_at":"2018-03-16T21:40:59Z","git_url":"git://github.com/Progressly/progressly-zapier.git","ssh_url":"git@github.com:Progressly/progressly-zapier.git","clone_url":"https://github.com/Progressly/progressly-zapier.git","svn_url":"https://github.com/Progressly/progressly-zapier","homepage":null,"size":78,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Progressly/progressly-zapier/pulls/7"},"html":{"href":"https://github.com/Progressly/progressly-zapier/pull/7"},"issue":{"href":"https://api.github.com/repos/Progressly/progressly-zapier/issues/7"},"comments":{"href":"https://api.github.com/repos/Progressly/progressly-zapier/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Progressly/progressly-zapier/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Progressly/progressly-zapier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Progressly/progressly-zapier/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Progressly/progressly-zapier/statuses/f1862c02f032ed95695a8eb5f07a9bccfa0f52ce"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"LupenTiJay"}}