{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/avinoamr/duty/pulls/5","id":80968618,"html_url":"https://github.com/avinoamr/duty/pull/5","diff_url":"https://github.com/avinoamr/duty/pull/5.diff","patch_url":"https://github.com/avinoamr/duty/pull/5.patch","issue_url":"https://api.github.com/repos/avinoamr/duty/issues/5","number":5,"state":"closed","locked":false,"title":"Db options","user":{"login":"oshribin","id":6776572,"avatar_url":"https://avatars.githubusercontent.com/u/6776572?v=3","gravatar_id":"","url":"https://api.github.com/users/oshribin","html_url":"https://github.com/oshribin","followers_url":"https://api.github.com/users/oshribin/followers","following_url":"https://api.github.com/users/oshribin/following{/other_user}","gists_url":"https://api.github.com/users/oshribin/gists{/gist_id}","starred_url":"https://api.github.com/users/oshribin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oshribin/subscriptions","organizations_url":"https://api.github.com/users/oshribin/orgs","repos_url":"https://api.github.com/users/oshribin/repos","events_url":"https://api.github.com/users/oshribin/events{/privacy}","received_events_url":"https://api.github.com/users/oshribin/received_events","type":"User","site_admin":false},"body":"@avinoamr Currently the duty save only the value of ```error.toString()``` as the ```job.error``` to the db. This PR add the options to call ```duty.db( conn, options )``` with a map of options. \r\nthat currently support only ```options.deepError``` a Boolean parameter to force duty to save the fully representation of the error Object using [serialize-error](https://www.npmjs.com/package/serialize-error). instead of just the value of ```error.toString()```","created_at":"2016-08-11T14:35:54Z","updated_at":"2016-08-15T09:05:09Z","closed_at":"2016-08-15T09:05:09Z","merged_at":"2016-08-15T09:05:09Z","merge_commit_sha":"47fb9e92add13c66abbd1280f0a15f6a4e3ecef7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/avinoamr/duty/pulls/5/commits","review_comments_url":"https://api.github.com/repos/avinoamr/duty/pulls/5/comments","review_comment_url":"https://api.github.com/repos/avinoamr/duty/pulls/comments{/number}","comments_url":"https://api.github.com/repos/avinoamr/duty/issues/5/comments","statuses_url":"https://api.github.com/repos/avinoamr/duty/statuses/6f4bee9b997711a49d1279b490db6e1bfd4d00c2","head":{"label":"oshribin:db-options","ref":"db-options","sha":"6f4bee9b997711a49d1279b490db6e1bfd4d00c2","user":{"login":"oshribin","id":6776572,"avatar_url":"https://avatars.githubusercontent.com/u/6776572?v=3","gravatar_id":"","url":"https://api.github.com/users/oshribin","html_url":"https://github.com/oshribin","followers_url":"https://api.github.com/users/oshribin/followers","following_url":"https://api.github.com/users/oshribin/following{/other_user}","gists_url":"https://api.github.com/users/oshribin/gists{/gist_id}","starred_url":"https://api.github.com/users/oshribin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oshribin/subscriptions","organizations_url":"https://api.github.com/users/oshribin/orgs","repos_url":"https://api.github.com/users/oshribin/repos","events_url":"https://api.github.com/users/oshribin/events{/privacy}","received_events_url":"https://api.github.com/users/oshribin/received_events","type":"User","site_admin":false},"repo":{"id":52718471,"name":"duty","full_name":"oshribin/duty","owner":{"login":"oshribin","id":6776572,"avatar_url":"https://avatars.githubusercontent.com/u/6776572?v=3","gravatar_id":"","url":"https://api.github.com/users/oshribin","html_url":"https://github.com/oshribin","followers_url":"https://api.github.com/users/oshribin/followers","following_url":"https://api.github.com/users/oshribin/following{/other_user}","gists_url":"https://api.github.com/users/oshribin/gists{/gist_id}","starred_url":"https://api.github.com/users/oshribin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oshribin/subscriptions","organizations_url":"https://api.github.com/users/oshribin/orgs","repos_url":"https://api.github.com/users/oshribin/repos","events_url":"https://api.github.com/users/oshribin/events{/privacy}","received_events_url":"https://api.github.com/users/oshribin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oshribin/duty","description":"Ridiculously simple Javascript job queue ","fork":true,"url":"https://api.github.com/repos/oshribin/duty","forks_url":"https://api.github.com/repos/oshribin/duty/forks","keys_url":"https://api.github.com/repos/oshribin/duty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oshribin/duty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oshribin/duty/teams","hooks_url":"https://api.github.com/repos/oshribin/duty/hooks","issue_events_url":"https://api.github.com/repos/oshribin/duty/issues/events{/number}","events_url":"https://api.github.com/repos/oshribin/duty/events","assignees_url":"https://api.github.com/repos/oshribin/duty/assignees{/user}","branches_url":"https://api.github.com/repos/oshribin/duty/branches{/branch}","tags_url":"https://api.github.com/repos/oshribin/duty/tags","blobs_url":"https://api.github.com/repos/oshribin/duty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oshribin/duty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oshribin/duty/git/refs{/sha}","trees_url":"https://api.github.com/repos/oshribin/duty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oshribin/duty/statuses/{sha}","languages_url":"https://api.github.com/repos/oshribin/duty/languages","stargazers_url":"https://api.github.com/repos/oshribin/duty/stargazers","contributors_url":"https://api.github.com/repos/oshribin/duty/contributors","subscribers_url":"https://api.github.com/repos/oshribin/duty/subscribers","subscription_url":"https://api.github.com/repos/oshribin/duty/subscription","commits_url":"https://api.github.com/repos/oshribin/duty/commits{/sha}","git_commits_url":"https://api.github.com/repos/oshribin/duty/git/commits{/sha}","comments_url":"https://api.github.com/repos/oshribin/duty/comments{/number}","issue_comment_url":"https://api.github.com/repos/oshribin/duty/issues/comments{/number}","contents_url":"https://api.github.com/repos/oshribin/duty/contents/{+path}","compare_url":"https://api.github.com/repos/oshribin/duty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oshribin/duty/merges","archive_url":"https://api.github.com/repos/oshribin/duty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oshribin/duty/downloads","issues_url":"https://api.github.com/repos/oshribin/duty/issues{/number}","pulls_url":"https://api.github.com/repos/oshribin/duty/pulls{/number}","milestones_url":"https://api.github.com/repos/oshribin/duty/milestones{/number}","notifications_url":"https://api.github.com/repos/oshribin/duty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oshribin/duty/labels{/name}","releases_url":"https://api.github.com/repos/oshribin/duty/releases{/id}","deployments_url":"https://api.github.com/repos/oshribin/duty/deployments","created_at":"2016-02-28T11:46:55Z","updated_at":"2016-02-28T11:46:56Z","pushed_at":"2016-08-11T15:46:33Z","git_url":"git://github.com/oshribin/duty.git","ssh_url":"git@github.com:oshribin/duty.git","clone_url":"https://github.com/oshribin/duty.git","svn_url":"https://github.com/oshribin/duty","homepage":null,"size":29,"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":"avinoamr:master","ref":"master","sha":"62095388202a181975f347e9304071f800db91e5","user":{"login":"avinoamr","id":1254751,"avatar_url":"https://avatars.githubusercontent.com/u/1254751?v=3","gravatar_id":"","url":"https://api.github.com/users/avinoamr","html_url":"https://github.com/avinoamr","followers_url":"https://api.github.com/users/avinoamr/followers","following_url":"https://api.github.com/users/avinoamr/following{/other_user}","gists_url":"https://api.github.com/users/avinoamr/gists{/gist_id}","starred_url":"https://api.github.com/users/avinoamr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avinoamr/subscriptions","organizations_url":"https://api.github.com/users/avinoamr/orgs","repos_url":"https://api.github.com/users/avinoamr/repos","events_url":"https://api.github.com/users/avinoamr/events{/privacy}","received_events_url":"https://api.github.com/users/avinoamr/received_events","type":"User","site_admin":false},"repo":{"id":33899477,"name":"duty","full_name":"avinoamr/duty","owner":{"login":"avinoamr","id":1254751,"avatar_url":"https://avatars.githubusercontent.com/u/1254751?v=3","gravatar_id":"","url":"https://api.github.com/users/avinoamr","html_url":"https://github.com/avinoamr","followers_url":"https://api.github.com/users/avinoamr/followers","following_url":"https://api.github.com/users/avinoamr/following{/other_user}","gists_url":"https://api.github.com/users/avinoamr/gists{/gist_id}","starred_url":"https://api.github.com/users/avinoamr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avinoamr/subscriptions","organizations_url":"https://api.github.com/users/avinoamr/orgs","repos_url":"https://api.github.com/users/avinoamr/repos","events_url":"https://api.github.com/users/avinoamr/events{/privacy}","received_events_url":"https://api.github.com/users/avinoamr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/avinoamr/duty","description":"Ridiculously simple Javascript job queue ","fork":false,"url":"https://api.github.com/repos/avinoamr/duty","forks_url":"https://api.github.com/repos/avinoamr/duty/forks","keys_url":"https://api.github.com/repos/avinoamr/duty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avinoamr/duty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avinoamr/duty/teams","hooks_url":"https://api.github.com/repos/avinoamr/duty/hooks","issue_events_url":"https://api.github.com/repos/avinoamr/duty/issues/events{/number}","events_url":"https://api.github.com/repos/avinoamr/duty/events","assignees_url":"https://api.github.com/repos/avinoamr/duty/assignees{/user}","branches_url":"https://api.github.com/repos/avinoamr/duty/branches{/branch}","tags_url":"https://api.github.com/repos/avinoamr/duty/tags","blobs_url":"https://api.github.com/repos/avinoamr/duty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avinoamr/duty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avinoamr/duty/git/refs{/sha}","trees_url":"https://api.github.com/repos/avinoamr/duty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avinoamr/duty/statuses/{sha}","languages_url":"https://api.github.com/repos/avinoamr/duty/languages","stargazers_url":"https://api.github.com/repos/avinoamr/duty/stargazers","contributors_url":"https://api.github.com/repos/avinoamr/duty/contributors","subscribers_url":"https://api.github.com/repos/avinoamr/duty/subscribers","subscription_url":"https://api.github.com/repos/avinoamr/duty/subscription","commits_url":"https://api.github.com/repos/avinoamr/duty/commits{/sha}","git_commits_url":"https://api.github.com/repos/avinoamr/duty/git/commits{/sha}","comments_url":"https://api.github.com/repos/avinoamr/duty/comments{/number}","issue_comment_url":"https://api.github.com/repos/avinoamr/duty/issues/comments{/number}","contents_url":"https://api.github.com/repos/avinoamr/duty/contents/{+path}","compare_url":"https://api.github.com/repos/avinoamr/duty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avinoamr/duty/merges","archive_url":"https://api.github.com/repos/avinoamr/duty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avinoamr/duty/downloads","issues_url":"https://api.github.com/repos/avinoamr/duty/issues{/number}","pulls_url":"https://api.github.com/repos/avinoamr/duty/pulls{/number}","milestones_url":"https://api.github.com/repos/avinoamr/duty/milestones{/number}","notifications_url":"https://api.github.com/repos/avinoamr/duty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avinoamr/duty/labels{/name}","releases_url":"https://api.github.com/repos/avinoamr/duty/releases{/id}","deployments_url":"https://api.github.com/repos/avinoamr/duty/deployments","created_at":"2015-04-13T23:25:35Z","updated_at":"2016-06-19T07:56:22Z","pushed_at":"2016-08-15T09:05:09Z","git_url":"git://github.com/avinoamr/duty.git","ssh_url":"git@github.com:avinoamr/duty.git","clone_url":"https://github.com/avinoamr/duty.git","svn_url":"https://github.com/avinoamr/duty","homepage":null,"size":27,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avinoamr/duty/pulls/5"},"html":{"href":"https://github.com/avinoamr/duty/pull/5"},"issue":{"href":"https://api.github.com/repos/avinoamr/duty/issues/5"},"comments":{"href":"https://api.github.com/repos/avinoamr/duty/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/avinoamr/duty/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/avinoamr/duty/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/avinoamr/duty/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/avinoamr/duty/statuses/6f4bee9b997711a49d1279b490db6e1bfd4d00c2"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"avinoamr","id":1254751,"avatar_url":"https://avatars.githubusercontent.com/u/1254751?v=3","gravatar_id":"","url":"https://api.github.com/users/avinoamr","html_url":"https://github.com/avinoamr","followers_url":"https://api.github.com/users/avinoamr/followers","following_url":"https://api.github.com/users/avinoamr/following{/other_user}","gists_url":"https://api.github.com/users/avinoamr/gists{/gist_id}","starred_url":"https://api.github.com/users/avinoamr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avinoamr/subscriptions","organizations_url":"https://api.github.com/users/avinoamr/orgs","repos_url":"https://api.github.com/users/avinoamr/repos","events_url":"https://api.github.com/users/avinoamr/events{/privacy}","received_events_url":"https://api.github.com/users/avinoamr/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":4,"additions":63,"deletions":12,"changed_files":3}}
{"actor":{"display_login":"avinoamr"}}