{"action":"opened","number":602,"pull_request":{"url":"https://api.github.com/repos/deployd/deployd/pulls/602","id":39914871,"html_url":"https://github.com/deployd/deployd/pull/602","diff_url":"https://github.com/deployd/deployd/pull/602.diff","patch_url":"https://github.com/deployd/deployd/pull/602.patch","issue_url":"https://api.github.com/repos/deployd/deployd/issues/602","number":602,"state":"open","locked":false,"title":"feature(script): improve cancel()","user":{"login":"andreialecu","id":697707,"avatar_url":"https://avatars.githubusercontent.com/u/697707?v=3","gravatar_id":"","url":"https://api.github.com/users/andreialecu","html_url":"https://github.com/andreialecu","followers_url":"https://api.github.com/users/andreialecu/followers","following_url":"https://api.github.com/users/andreialecu/following{/other_user}","gists_url":"https://api.github.com/users/andreialecu/gists{/gist_id}","starred_url":"https://api.github.com/users/andreialecu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreialecu/subscriptions","organizations_url":"https://api.github.com/users/andreialecu/orgs","repos_url":"https://api.github.com/users/andreialecu/repos","events_url":"https://api.github.com/users/andreialecu/events{/privacy}","received_events_url":"https://api.github.com/users/andreialecu/received_events","type":"User","site_admin":false},"body":"Allows passing an error object to `cancel(err)`, or an exception object returned by the deployd internal-client (eg. {message: \"\", status: 400}).\r\n\r\nThis allows easy chaining such as (in an event script):\r\n\r\n```javascript\r\n// call some other collection via internal-client\r\n// both cases are handled by the new cancel, whether the code throws an Error object, or if .get returns an exception of the form {message, status}\r\ndpd.somecol.get({...}).then(function() { error may get thrown here }.catch(cancel);\r\n```","created_at":"2015-07-14T13:24:23Z","updated_at":"2015-07-14T13:24:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33712056fc8a8add9a1e382f6eaefb81d1e0a6a7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/deployd/deployd/pulls/602/commits","review_comments_url":"https://api.github.com/repos/deployd/deployd/pulls/602/comments","review_comment_url":"https://api.github.com/repos/deployd/deployd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deployd/deployd/issues/602/comments","statuses_url":"https://api.github.com/repos/deployd/deployd/statuses/4ac5a47ed430188507bfdad271a2ef5297db29a8","head":{"label":"andreialecu:feature-improvedcancel","ref":"feature-improvedcancel","sha":"4ac5a47ed430188507bfdad271a2ef5297db29a8","user":{"login":"andreialecu","id":697707,"avatar_url":"https://avatars.githubusercontent.com/u/697707?v=3","gravatar_id":"","url":"https://api.github.com/users/andreialecu","html_url":"https://github.com/andreialecu","followers_url":"https://api.github.com/users/andreialecu/followers","following_url":"https://api.github.com/users/andreialecu/following{/other_user}","gists_url":"https://api.github.com/users/andreialecu/gists{/gist_id}","starred_url":"https://api.github.com/users/andreialecu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreialecu/subscriptions","organizations_url":"https://api.github.com/users/andreialecu/orgs","repos_url":"https://api.github.com/users/andreialecu/repos","events_url":"https://api.github.com/users/andreialecu/events{/privacy}","received_events_url":"https://api.github.com/users/andreialecu/received_events","type":"User","site_admin":false},"repo":{"id":28204305,"name":"deployd","full_name":"andreialecu/deployd","owner":{"login":"andreialecu","id":697707,"avatar_url":"https://avatars.githubusercontent.com/u/697707?v=3","gravatar_id":"","url":"https://api.github.com/users/andreialecu","html_url":"https://github.com/andreialecu","followers_url":"https://api.github.com/users/andreialecu/followers","following_url":"https://api.github.com/users/andreialecu/following{/other_user}","gists_url":"https://api.github.com/users/andreialecu/gists{/gist_id}","starred_url":"https://api.github.com/users/andreialecu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreialecu/subscriptions","organizations_url":"https://api.github.com/users/andreialecu/orgs","repos_url":"https://api.github.com/users/andreialecu/repos","events_url":"https://api.github.com/users/andreialecu/events{/privacy}","received_events_url":"https://api.github.com/users/andreialecu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreialecu/deployd","description":"a toolkit for building realtime APIs","fork":true,"url":"https://api.github.com/repos/andreialecu/deployd","forks_url":"https://api.github.com/repos/andreialecu/deployd/forks","keys_url":"https://api.github.com/repos/andreialecu/deployd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreialecu/deployd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreialecu/deployd/teams","hooks_url":"https://api.github.com/repos/andreialecu/deployd/hooks","issue_events_url":"https://api.github.com/repos/andreialecu/deployd/issues/events{/number}","events_url":"https://api.github.com/repos/andreialecu/deployd/events","assignees_url":"https://api.github.com/repos/andreialecu/deployd/assignees{/user}","branches_url":"https://api.github.com/repos/andreialecu/deployd/branches{/branch}","tags_url":"https://api.github.com/repos/andreialecu/deployd/tags","blobs_url":"https://api.github.com/repos/andreialecu/deployd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreialecu/deployd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreialecu/deployd/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreialecu/deployd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreialecu/deployd/statuses/{sha}","languages_url":"https://api.github.com/repos/andreialecu/deployd/languages","stargazers_url":"https://api.github.com/repos/andreialecu/deployd/stargazers","contributors_url":"https://api.github.com/repos/andreialecu/deployd/contributors","subscribers_url":"https://api.github.com/repos/andreialecu/deployd/subscribers","subscription_url":"https://api.github.com/repos/andreialecu/deployd/subscription","commits_url":"https://api.github.com/repos/andreialecu/deployd/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreialecu/deployd/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreialecu/deployd/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreialecu/deployd/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreialecu/deployd/contents/{+path}","compare_url":"https://api.github.com/repos/andreialecu/deployd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreialecu/deployd/merges","archive_url":"https://api.github.com/repos/andreialecu/deployd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreialecu/deployd/downloads","issues_url":"https://api.github.com/repos/andreialecu/deployd/issues{/number}","pulls_url":"https://api.github.com/repos/andreialecu/deployd/pulls{/number}","milestones_url":"https://api.github.com/repos/andreialecu/deployd/milestones{/number}","notifications_url":"https://api.github.com/repos/andreialecu/deployd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreialecu/deployd/labels{/name}","releases_url":"https://api.github.com/repos/andreialecu/deployd/releases{/id}","created_at":"2014-12-18T22:26:45Z","updated_at":"2015-04-29T13:09:32Z","pushed_at":"2015-07-14T13:24:09Z","git_url":"git://github.com/andreialecu/deployd.git","ssh_url":"git@github.com:andreialecu/deployd.git","clone_url":"https://github.com/andreialecu/deployd.git","svn_url":"https://github.com/andreialecu/deployd","homepage":"http://www.deployd.com","size":11854,"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":"deployd:master","ref":"master","sha":"84a1d039833a023e22b98d5f4707f131d2f4f8d9","user":{"login":"deployd","id":1043054,"avatar_url":"https://avatars.githubusercontent.com/u/1043054?v=3","gravatar_id":"","url":"https://api.github.com/users/deployd","html_url":"https://github.com/deployd","followers_url":"https://api.github.com/users/deployd/followers","following_url":"https://api.github.com/users/deployd/following{/other_user}","gists_url":"https://api.github.com/users/deployd/gists{/gist_id}","starred_url":"https://api.github.com/users/deployd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deployd/subscriptions","organizations_url":"https://api.github.com/users/deployd/orgs","repos_url":"https://api.github.com/users/deployd/repos","events_url":"https://api.github.com/users/deployd/events{/privacy}","received_events_url":"https://api.github.com/users/deployd/received_events","type":"Organization","site_admin":false},"repo":{"id":2367681,"name":"deployd","full_name":"deployd/deployd","owner":{"login":"deployd","id":1043054,"avatar_url":"https://avatars.githubusercontent.com/u/1043054?v=3","gravatar_id":"","url":"https://api.github.com/users/deployd","html_url":"https://github.com/deployd","followers_url":"https://api.github.com/users/deployd/followers","following_url":"https://api.github.com/users/deployd/following{/other_user}","gists_url":"https://api.github.com/users/deployd/gists{/gist_id}","starred_url":"https://api.github.com/users/deployd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deployd/subscriptions","organizations_url":"https://api.github.com/users/deployd/orgs","repos_url":"https://api.github.com/users/deployd/repos","events_url":"https://api.github.com/users/deployd/events{/privacy}","received_events_url":"https://api.github.com/users/deployd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deployd/deployd","description":"a toolkit for building realtime APIs","fork":false,"url":"https://api.github.com/repos/deployd/deployd","forks_url":"https://api.github.com/repos/deployd/deployd/forks","keys_url":"https://api.github.com/repos/deployd/deployd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deployd/deployd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deployd/deployd/teams","hooks_url":"https://api.github.com/repos/deployd/deployd/hooks","issue_events_url":"https://api.github.com/repos/deployd/deployd/issues/events{/number}","events_url":"https://api.github.com/repos/deployd/deployd/events","assignees_url":"https://api.github.com/repos/deployd/deployd/assignees{/user}","branches_url":"https://api.github.com/repos/deployd/deployd/branches{/branch}","tags_url":"https://api.github.com/repos/deployd/deployd/tags","blobs_url":"https://api.github.com/repos/deployd/deployd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deployd/deployd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deployd/deployd/git/refs{/sha}","trees_url":"https://api.github.com/repos/deployd/deployd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deployd/deployd/statuses/{sha}","languages_url":"https://api.github.com/repos/deployd/deployd/languages","stargazers_url":"https://api.github.com/repos/deployd/deployd/stargazers","contributors_url":"https://api.github.com/repos/deployd/deployd/contributors","subscribers_url":"https://api.github.com/repos/deployd/deployd/subscribers","subscription_url":"https://api.github.com/repos/deployd/deployd/subscription","commits_url":"https://api.github.com/repos/deployd/deployd/commits{/sha}","git_commits_url":"https://api.github.com/repos/deployd/deployd/git/commits{/sha}","comments_url":"https://api.github.com/repos/deployd/deployd/comments{/number}","issue_comment_url":"https://api.github.com/repos/deployd/deployd/issues/comments{/number}","contents_url":"https://api.github.com/repos/deployd/deployd/contents/{+path}","compare_url":"https://api.github.com/repos/deployd/deployd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deployd/deployd/merges","archive_url":"https://api.github.com/repos/deployd/deployd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deployd/deployd/downloads","issues_url":"https://api.github.com/repos/deployd/deployd/issues{/number}","pulls_url":"https://api.github.com/repos/deployd/deployd/pulls{/number}","milestones_url":"https://api.github.com/repos/deployd/deployd/milestones{/number}","notifications_url":"https://api.github.com/repos/deployd/deployd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deployd/deployd/labels{/name}","releases_url":"https://api.github.com/repos/deployd/deployd/releases{/id}","created_at":"2011-09-11T21:58:04Z","updated_at":"2015-07-14T11:00:00Z","pushed_at":"2015-07-14T13:24:24Z","git_url":"git://github.com/deployd/deployd.git","ssh_url":"git@github.com:deployd/deployd.git","clone_url":"https://github.com/deployd/deployd.git","svn_url":"https://github.com/deployd/deployd","homepage":"http://www.deployd.com","size":18808,"stargazers_count":3388,"watchers_count":3388,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":465,"mirror_url":null,"open_issues_count":108,"forks":465,"open_issues":108,"watchers":3388,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deployd/deployd/pulls/602"},"html":{"href":"https://github.com/deployd/deployd/pull/602"},"issue":{"href":"https://api.github.com/repos/deployd/deployd/issues/602"},"comments":{"href":"https://api.github.com/repos/deployd/deployd/issues/602/comments"},"review_comments":{"href":"https://api.github.com/repos/deployd/deployd/pulls/602/comments"},"review_comment":{"href":"https://api.github.com/repos/deployd/deployd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deployd/deployd/pulls/602/commits"},"statuses":{"href":"https://api.github.com/repos/deployd/deployd/statuses/4ac5a47ed430188507bfdad271a2ef5297db29a8"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":40,"deletions":3,"changed_files":3}}