{"action":"created","comment":{"url":"https://api.github.com/repos/firstandthird/agenda-batch/pulls/comments/23127260","id":23127260,"diff_hunk":"@@ -5,18 +5,23 @@ A batching tool for the agenda.js tool that will proxy data to a task that has n\n Initialize the library:\n \n ```javascript\n+var Agenda = require('agenda');\n var Batch = require('batch');\n-batch = new Batch('db-connection:24717');\n+\n+var agenda = new Agenda({ db: { address: 'db-connection:24717' } });\n+batch = Batch( agenda );","path":"README.md","position":9,"original_position":9,"commit_id":"e0bd2a9a2d0a9bd04f9f821ff63ed5c5fad48e7b","original_commit_id":"be870d80c7fc08b4aefad11a9e0c01adcf22fa4e","user":{"login":"jgallen23","id":27936,"avatar_url":"https://avatars.githubusercontent.com/u/27936?v=3","gravatar_id":"","url":"https://api.github.com/users/jgallen23","html_url":"https://github.com/jgallen23","followers_url":"https://api.github.com/users/jgallen23/followers","following_url":"https://api.github.com/users/jgallen23/following{/other_user}","gists_url":"https://api.github.com/users/jgallen23/gists{/gist_id}","starred_url":"https://api.github.com/users/jgallen23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgallen23/subscriptions","organizations_url":"https://api.github.com/users/jgallen23/orgs","repos_url":"https://api.github.com/users/jgallen23/repos","events_url":"https://api.github.com/users/jgallen23/events{/privacy}","received_events_url":"https://api.github.com/users/jgallen23/received_events","type":"User","site_admin":false},"body":"still need to update this to new Batch(agenda)","created_at":"2015-01-17T18:19:47Z","updated_at":"2015-01-17T18:19:47Z","html_url":"https://github.com/firstandthird/agenda-batch/pull/2#discussion_r23127260","pull_request_url":"https://api.github.com/repos/firstandthird/agenda-batch/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/firstandthird/agenda-batch/pulls/comments/23127260"},"html":{"href":"https://github.com/firstandthird/agenda-batch/pull/2#discussion_r23127260"},"pull_request":{"href":"https://api.github.com/repos/firstandthird/agenda-batch/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/firstandthird/agenda-batch/pulls/2","id":27540751,"html_url":"https://github.com/firstandthird/agenda-batch/pull/2","diff_url":"https://github.com/firstandthird/agenda-batch/pull/2.diff","patch_url":"https://github.com/firstandthird/agenda-batch/pull/2.patch","issue_url":"https://api.github.com/repos/firstandthird/agenda-batch/issues/2","number":2,"state":"open","locked":false,"title":"This fixes #1 - Refactoring to inject agenda, added a few checks ...","user":{"login":"ecwillis","id":492500,"avatar_url":"https://avatars.githubusercontent.com/u/492500?v=3","gravatar_id":"","url":"https://api.github.com/users/ecwillis","html_url":"https://github.com/ecwillis","followers_url":"https://api.github.com/users/ecwillis/followers","following_url":"https://api.github.com/users/ecwillis/following{/other_user}","gists_url":"https://api.github.com/users/ecwillis/gists{/gist_id}","starred_url":"https://api.github.com/users/ecwillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecwillis/subscriptions","organizations_url":"https://api.github.com/users/ecwillis/orgs","repos_url":"https://api.github.com/users/ecwillis/repos","events_url":"https://api.github.com/users/ecwillis/events{/privacy}","received_events_url":"https://api.github.com/users/ecwillis/received_events","type":"User","site_admin":false},"body":"... , and job is pulled from mongo to work with multiple machines","created_at":"2015-01-16T22:14:03Z","updated_at":"2015-01-17T18:19:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ea2e3bdb1b1dc26647d07aa1c9b9d8d522b5acf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/firstandthird/agenda-batch/pulls/2/commits","review_comments_url":"https://api.github.com/repos/firstandthird/agenda-batch/pulls/2/comments","review_comment_url":"https://api.github.com/repos/firstandthird/agenda-batch/pulls/comments/{number}","comments_url":"https://api.github.com/repos/firstandthird/agenda-batch/issues/2/comments","statuses_url":"https://api.github.com/repos/firstandthird/agenda-batch/statuses/e0bd2a9a2d0a9bd04f9f821ff63ed5c5fad48e7b","head":{"label":"firstandthird:pr_1","ref":"pr_1","sha":"e0bd2a9a2d0a9bd04f9f821ff63ed5c5fad48e7b","user":{"login":"firstandthird","id":4642413,"avatar_url":"https://avatars.githubusercontent.com/u/4642413?v=3","gravatar_id":"","url":"https://api.github.com/users/firstandthird","html_url":"https://github.com/firstandthird","followers_url":"https://api.github.com/users/firstandthird/followers","following_url":"https://api.github.com/users/firstandthird/following{/other_user}","gists_url":"https://api.github.com/users/firstandthird/gists{/gist_id}","starred_url":"https://api.github.com/users/firstandthird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firstandthird/subscriptions","organizations_url":"https://api.github.com/users/firstandthird/orgs","repos_url":"https://api.github.com/users/firstandthird/repos","events_url":"https://api.github.com/users/firstandthird/events{/privacy}","received_events_url":"https://api.github.com/users/firstandthird/received_events","type":"Organization","site_admin":false},"repo":{"id":29325568,"name":"agenda-batch","full_name":"firstandthird/agenda-batch","owner":{"login":"firstandthird","id":4642413,"avatar_url":"https://avatars.githubusercontent.com/u/4642413?v=3","gravatar_id":"","url":"https://api.github.com/users/firstandthird","html_url":"https://github.com/firstandthird","followers_url":"https://api.github.com/users/firstandthird/followers","following_url":"https://api.github.com/users/firstandthird/following{/other_user}","gists_url":"https://api.github.com/users/firstandthird/gists{/gist_id}","starred_url":"https://api.github.com/users/firstandthird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firstandthird/subscriptions","organizations_url":"https://api.github.com/users/firstandthird/orgs","repos_url":"https://api.github.com/users/firstandthird/repos","events_url":"https://api.github.com/users/firstandthird/events{/privacy}","received_events_url":"https://api.github.com/users/firstandthird/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/firstandthird/agenda-batch","description":"","fork":false,"url":"https://api.github.com/repos/firstandthird/agenda-batch","forks_url":"https://api.github.com/repos/firstandthird/agenda-batch/forks","keys_url":"https://api.github.com/repos/firstandthird/agenda-batch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/firstandthird/agenda-batch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/firstandthird/agenda-batch/teams","hooks_url":"https://api.github.com/repos/firstandthird/agenda-batch/hooks","issue_events_url":"https://api.github.com/repos/firstandthird/agenda-batch/issues/events{/number}","events_url":"https://api.github.com/repos/firstandthird/agenda-batch/events","assignees_url":"https://api.github.com/repos/firstandthird/agenda-batch/assignees{/user}","branches_url":"https://api.github.com/repos/firstandthird/agenda-batch/branches{/branch}","tags_url":"https://api.github.com/repos/firstandthird/agenda-batch/tags","blobs_url":"https://api.github.com/repos/firstandthird/agenda-batch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/firstandthird/agenda-batch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/firstandthird/agenda-batch/git/refs{/sha}","trees_url":"https://api.github.com/repos/firstandthird/agenda-batch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/firstandthird/agenda-batch/statuses/{sha}","languages_url":"https://api.github.com/repos/firstandthird/agenda-batch/languages","stargazers_url":"https://api.github.com/repos/firstandthird/agenda-batch/stargazers","contributors_url":"https://api.github.com/repos/firstandthird/agenda-batch/contributors","subscribers_url":"https://api.github.com/repos/firstandthird/agenda-batch/subscribers","subscription_url":"https://api.github.com/repos/firstandthird/agenda-batch/subscription","commits_url":"https://api.github.com/repos/firstandthird/agenda-batch/commits{/sha}","git_commits_url":"https://api.github.com/repos/firstandthird/agenda-batch/git/commits{/sha}","comments_url":"https://api.github.com/repos/firstandthird/agenda-batch/comments{/number}","issue_comment_url":"https://api.github.com/repos/firstandthird/agenda-batch/issues/comments/{number}","contents_url":"https://api.github.com/repos/firstandthird/agenda-batch/contents/{+path}","compare_url":"https://api.github.com/repos/firstandthird/agenda-batch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/firstandthird/agenda-batch/merges","archive_url":"https://api.github.com/repos/firstandthird/agenda-batch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/firstandthird/agenda-batch/downloads","issues_url":"https://api.github.com/repos/firstandthird/agenda-batch/issues{/number}","pulls_url":"https://api.github.com/repos/firstandthird/agenda-batch/pulls{/number}","milestones_url":"https://api.github.com/repos/firstandthird/agenda-batch/milestones{/number}","notifications_url":"https://api.github.com/repos/firstandthird/agenda-batch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/firstandthird/agenda-batch/labels{/name}","releases_url":"https://api.github.com/repos/firstandthird/agenda-batch/releases{/id}","created_at":"2015-01-16T00:44:59Z","updated_at":"2015-01-16T19:36:57Z","pushed_at":"2015-01-17T07:21:46Z","git_url":"git://github.com/firstandthird/agenda-batch.git","ssh_url":"git@github.com:firstandthird/agenda-batch.git","clone_url":"https://github.com/firstandthird/agenda-batch.git","svn_url":"https://github.com/firstandthird/agenda-batch","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"firstandthird:master","ref":"master","sha":"34652befd037d044c2b6f74cc7852d84e8905676","user":{"login":"firstandthird","id":4642413,"avatar_url":"https://avatars.githubusercontent.com/u/4642413?v=3","gravatar_id":"","url":"https://api.github.com/users/firstandthird","html_url":"https://github.com/firstandthird","followers_url":"https://api.github.com/users/firstandthird/followers","following_url":"https://api.github.com/users/firstandthird/following{/other_user}","gists_url":"https://api.github.com/users/firstandthird/gists{/gist_id}","starred_url":"https://api.github.com/users/firstandthird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firstandthird/subscriptions","organizations_url":"https://api.github.com/users/firstandthird/orgs","repos_url":"https://api.github.com/users/firstandthird/repos","events_url":"https://api.github.com/users/firstandthird/events{/privacy}","received_events_url":"https://api.github.com/users/firstandthird/received_events","type":"Organization","site_admin":false},"repo":{"id":29325568,"name":"agenda-batch","full_name":"firstandthird/agenda-batch","owner":{"login":"firstandthird","id":4642413,"avatar_url":"https://avatars.githubusercontent.com/u/4642413?v=3","gravatar_id":"","url":"https://api.github.com/users/firstandthird","html_url":"https://github.com/firstandthird","followers_url":"https://api.github.com/users/firstandthird/followers","following_url":"https://api.github.com/users/firstandthird/following{/other_user}","gists_url":"https://api.github.com/users/firstandthird/gists{/gist_id}","starred_url":"https://api.github.com/users/firstandthird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firstandthird/subscriptions","organizations_url":"https://api.github.com/users/firstandthird/orgs","repos_url":"https://api.github.com/users/firstandthird/repos","events_url":"https://api.github.com/users/firstandthird/events{/privacy}","received_events_url":"https://api.github.com/users/firstandthird/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/firstandthird/agenda-batch","description":"","fork":false,"url":"https://api.github.com/repos/firstandthird/agenda-batch","forks_url":"https://api.github.com/repos/firstandthird/agenda-batch/forks","keys_url":"https://api.github.com/repos/firstandthird/agenda-batch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/firstandthird/agenda-batch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/firstandthird/agenda-batch/teams","hooks_url":"https://api.github.com/repos/firstandthird/agenda-batch/hooks","issue_events_url":"https://api.github.com/repos/firstandthird/agenda-batch/issues/events{/number}","events_url":"https://api.github.com/repos/firstandthird/agenda-batch/events","assignees_url":"https://api.github.com/repos/firstandthird/agenda-batch/assignees{/user}","branches_url":"https://api.github.com/repos/firstandthird/agenda-batch/branches{/branch}","tags_url":"https://api.github.com/repos/firstandthird/agenda-batch/tags","blobs_url":"https://api.github.com/repos/firstandthird/agenda-batch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/firstandthird/agenda-batch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/firstandthird/agenda-batch/git/refs{/sha}","trees_url":"https://api.github.com/repos/firstandthird/agenda-batch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/firstandthird/agenda-batch/statuses/{sha}","languages_url":"https://api.github.com/repos/firstandthird/agenda-batch/languages","stargazers_url":"https://api.github.com/repos/firstandthird/agenda-batch/stargazers","contributors_url":"https://api.github.com/repos/firstandthird/agenda-batch/contributors","subscribers_url":"https://api.github.com/repos/firstandthird/agenda-batch/subscribers","subscription_url":"https://api.github.com/repos/firstandthird/agenda-batch/subscription","commits_url":"https://api.github.com/repos/firstandthird/agenda-batch/commits{/sha}","git_commits_url":"https://api.github.com/repos/firstandthird/agenda-batch/git/commits{/sha}","comments_url":"https://api.github.com/repos/firstandthird/agenda-batch/comments{/number}","issue_comment_url":"https://api.github.com/repos/firstandthird/agenda-batch/issues/comments/{number}","contents_url":"https://api.github.com/repos/firstandthird/agenda-batch/contents/{+path}","compare_url":"https://api.github.com/repos/firstandthird/agenda-batch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/firstandthird/agenda-batch/merges","archive_url":"https://api.github.com/repos/firstandthird/agenda-batch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/firstandthird/agenda-batch/downloads","issues_url":"https://api.github.com/repos/firstandthird/agenda-batch/issues{/number}","pulls_url":"https://api.github.com/repos/firstandthird/agenda-batch/pulls{/number}","milestones_url":"https://api.github.com/repos/firstandthird/agenda-batch/milestones{/number}","notifications_url":"https://api.github.com/repos/firstandthird/agenda-batch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/firstandthird/agenda-batch/labels{/name}","releases_url":"https://api.github.com/repos/firstandthird/agenda-batch/releases{/id}","created_at":"2015-01-16T00:44:59Z","updated_at":"2015-01-16T19:36:57Z","pushed_at":"2015-01-17T07:21:46Z","git_url":"git://github.com/firstandthird/agenda-batch.git","ssh_url":"git@github.com:firstandthird/agenda-batch.git","clone_url":"https://github.com/firstandthird/agenda-batch.git","svn_url":"https://github.com/firstandthird/agenda-batch","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/firstandthird/agenda-batch/pulls/2"},"html":{"href":"https://github.com/firstandthird/agenda-batch/pull/2"},"issue":{"href":"https://api.github.com/repos/firstandthird/agenda-batch/issues/2"},"comments":{"href":"https://api.github.com/repos/firstandthird/agenda-batch/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/firstandthird/agenda-batch/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/firstandthird/agenda-batch/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/firstandthird/agenda-batch/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/firstandthird/agenda-batch/statuses/e0bd2a9a2d0a9bd04f9f821ff63ed5c5fad48e7b"}}}}