{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/leandrowd/batcher/pulls/4","id":107949602,"html_url":"https://github.com/leandrowd/batcher/pull/4","diff_url":"https://github.com/leandrowd/batcher/pull/4.diff","patch_url":"https://github.com/leandrowd/batcher/pull/4.patch","issue_url":"https://api.github.com/repos/leandrowd/batcher/issues/4","number":4,"state":"closed","locked":false,"title":"Allow to define a maximum size for the queue","user":{"login":"leandrowd","id":165005,"avatar_url":"https://avatars.githubusercontent.com/u/165005?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrowd","html_url":"https://github.com/leandrowd","followers_url":"https://api.github.com/users/leandrowd/followers","following_url":"https://api.github.com/users/leandrowd/following{/other_user}","gists_url":"https://api.github.com/users/leandrowd/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrowd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrowd/subscriptions","organizations_url":"https://api.github.com/users/leandrowd/orgs","repos_url":"https://api.github.com/users/leandrowd/repos","events_url":"https://api.github.com/users/leandrowd/events{/privacy}","received_events_url":"https://api.github.com/users/leandrowd/received_events","type":"User","site_admin":false},"body":"This PR adds the capability to define the maximum size of the calls to batch. Once it reaches the maximum, it executes the function and clear the queue.\r\n\r\nIt's useful in cases where your api has a limit.\r\n\r\ncc: @marcodejongh ","created_at":"2017-02-25T06:34:09Z","updated_at":"2017-02-25T06:46:57Z","closed_at":"2017-02-25T06:46:57Z","merged_at":"2017-02-25T06:46:57Z","merge_commit_sha":"f2d5ca820cec0700c9185bda271ac9def6fbefef","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/leandrowd/batcher/pulls/4/commits","review_comments_url":"https://api.github.com/repos/leandrowd/batcher/pulls/4/comments","review_comment_url":"https://api.github.com/repos/leandrowd/batcher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leandrowd/batcher/issues/4/comments","statuses_url":"https://api.github.com/repos/leandrowd/batcher/statuses/8d4d9cc397e58dcaa2126fcccc4bcc2050d3de73","head":{"label":"leandrowd:adding-limit","ref":"adding-limit","sha":"8d4d9cc397e58dcaa2126fcccc4bcc2050d3de73","user":{"login":"leandrowd","id":165005,"avatar_url":"https://avatars.githubusercontent.com/u/165005?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrowd","html_url":"https://github.com/leandrowd","followers_url":"https://api.github.com/users/leandrowd/followers","following_url":"https://api.github.com/users/leandrowd/following{/other_user}","gists_url":"https://api.github.com/users/leandrowd/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrowd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrowd/subscriptions","organizations_url":"https://api.github.com/users/leandrowd/orgs","repos_url":"https://api.github.com/users/leandrowd/repos","events_url":"https://api.github.com/users/leandrowd/events{/privacy}","received_events_url":"https://api.github.com/users/leandrowd/received_events","type":"User","site_admin":false},"repo":{"id":66185362,"name":"batcher","full_name":"leandrowd/batcher","owner":{"login":"leandrowd","id":165005,"avatar_url":"https://avatars.githubusercontent.com/u/165005?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrowd","html_url":"https://github.com/leandrowd","followers_url":"https://api.github.com/users/leandrowd/followers","following_url":"https://api.github.com/users/leandrowd/following{/other_user}","gists_url":"https://api.github.com/users/leandrowd/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrowd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrowd/subscriptions","organizations_url":"https://api.github.com/users/leandrowd/orgs","repos_url":"https://api.github.com/users/leandrowd/repos","events_url":"https://api.github.com/users/leandrowd/events{/privacy}","received_events_url":"https://api.github.com/users/leandrowd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leandrowd/batcher","description":"Batching with ease","fork":false,"url":"https://api.github.com/repos/leandrowd/batcher","forks_url":"https://api.github.com/repos/leandrowd/batcher/forks","keys_url":"https://api.github.com/repos/leandrowd/batcher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leandrowd/batcher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leandrowd/batcher/teams","hooks_url":"https://api.github.com/repos/leandrowd/batcher/hooks","issue_events_url":"https://api.github.com/repos/leandrowd/batcher/issues/events{/number}","events_url":"https://api.github.com/repos/leandrowd/batcher/events","assignees_url":"https://api.github.com/repos/leandrowd/batcher/assignees{/user}","branches_url":"https://api.github.com/repos/leandrowd/batcher/branches{/branch}","tags_url":"https://api.github.com/repos/leandrowd/batcher/tags","blobs_url":"https://api.github.com/repos/leandrowd/batcher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leandrowd/batcher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leandrowd/batcher/git/refs{/sha}","trees_url":"https://api.github.com/repos/leandrowd/batcher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leandrowd/batcher/statuses/{sha}","languages_url":"https://api.github.com/repos/leandrowd/batcher/languages","stargazers_url":"https://api.github.com/repos/leandrowd/batcher/stargazers","contributors_url":"https://api.github.com/repos/leandrowd/batcher/contributors","subscribers_url":"https://api.github.com/repos/leandrowd/batcher/subscribers","subscription_url":"https://api.github.com/repos/leandrowd/batcher/subscription","commits_url":"https://api.github.com/repos/leandrowd/batcher/commits{/sha}","git_commits_url":"https://api.github.com/repos/leandrowd/batcher/git/commits{/sha}","comments_url":"https://api.github.com/repos/leandrowd/batcher/comments{/number}","issue_comment_url":"https://api.github.com/repos/leandrowd/batcher/issues/comments{/number}","contents_url":"https://api.github.com/repos/leandrowd/batcher/contents/{+path}","compare_url":"https://api.github.com/repos/leandrowd/batcher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leandrowd/batcher/merges","archive_url":"https://api.github.com/repos/leandrowd/batcher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leandrowd/batcher/downloads","issues_url":"https://api.github.com/repos/leandrowd/batcher/issues{/number}","pulls_url":"https://api.github.com/repos/leandrowd/batcher/pulls{/number}","milestones_url":"https://api.github.com/repos/leandrowd/batcher/milestones{/number}","notifications_url":"https://api.github.com/repos/leandrowd/batcher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leandrowd/batcher/labels{/name}","releases_url":"https://api.github.com/repos/leandrowd/batcher/releases{/id}","deployments_url":"https://api.github.com/repos/leandrowd/batcher/deployments","created_at":"2016-08-21T06:52:06Z","updated_at":"2017-02-17T10:53:30Z","pushed_at":"2017-02-25T06:46:57Z","git_url":"git://github.com/leandrowd/batcher.git","ssh_url":"git@github.com:leandrowd/batcher.git","clone_url":"https://github.com/leandrowd/batcher.git","svn_url":"https://github.com/leandrowd/batcher","homepage":null,"size":17,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"leandrowd:master","ref":"master","sha":"2e2caff49b218135a65647c6592e4ce8c6a2a600","user":{"login":"leandrowd","id":165005,"avatar_url":"https://avatars.githubusercontent.com/u/165005?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrowd","html_url":"https://github.com/leandrowd","followers_url":"https://api.github.com/users/leandrowd/followers","following_url":"https://api.github.com/users/leandrowd/following{/other_user}","gists_url":"https://api.github.com/users/leandrowd/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrowd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrowd/subscriptions","organizations_url":"https://api.github.com/users/leandrowd/orgs","repos_url":"https://api.github.com/users/leandrowd/repos","events_url":"https://api.github.com/users/leandrowd/events{/privacy}","received_events_url":"https://api.github.com/users/leandrowd/received_events","type":"User","site_admin":false},"repo":{"id":66185362,"name":"batcher","full_name":"leandrowd/batcher","owner":{"login":"leandrowd","id":165005,"avatar_url":"https://avatars.githubusercontent.com/u/165005?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrowd","html_url":"https://github.com/leandrowd","followers_url":"https://api.github.com/users/leandrowd/followers","following_url":"https://api.github.com/users/leandrowd/following{/other_user}","gists_url":"https://api.github.com/users/leandrowd/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrowd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrowd/subscriptions","organizations_url":"https://api.github.com/users/leandrowd/orgs","repos_url":"https://api.github.com/users/leandrowd/repos","events_url":"https://api.github.com/users/leandrowd/events{/privacy}","received_events_url":"https://api.github.com/users/leandrowd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leandrowd/batcher","description":"Batching with ease","fork":false,"url":"https://api.github.com/repos/leandrowd/batcher","forks_url":"https://api.github.com/repos/leandrowd/batcher/forks","keys_url":"https://api.github.com/repos/leandrowd/batcher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leandrowd/batcher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leandrowd/batcher/teams","hooks_url":"https://api.github.com/repos/leandrowd/batcher/hooks","issue_events_url":"https://api.github.com/repos/leandrowd/batcher/issues/events{/number}","events_url":"https://api.github.com/repos/leandrowd/batcher/events","assignees_url":"https://api.github.com/repos/leandrowd/batcher/assignees{/user}","branches_url":"https://api.github.com/repos/leandrowd/batcher/branches{/branch}","tags_url":"https://api.github.com/repos/leandrowd/batcher/tags","blobs_url":"https://api.github.com/repos/leandrowd/batcher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leandrowd/batcher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leandrowd/batcher/git/refs{/sha}","trees_url":"https://api.github.com/repos/leandrowd/batcher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leandrowd/batcher/statuses/{sha}","languages_url":"https://api.github.com/repos/leandrowd/batcher/languages","stargazers_url":"https://api.github.com/repos/leandrowd/batcher/stargazers","contributors_url":"https://api.github.com/repos/leandrowd/batcher/contributors","subscribers_url":"https://api.github.com/repos/leandrowd/batcher/subscribers","subscription_url":"https://api.github.com/repos/leandrowd/batcher/subscription","commits_url":"https://api.github.com/repos/leandrowd/batcher/commits{/sha}","git_commits_url":"https://api.github.com/repos/leandrowd/batcher/git/commits{/sha}","comments_url":"https://api.github.com/repos/leandrowd/batcher/comments{/number}","issue_comment_url":"https://api.github.com/repos/leandrowd/batcher/issues/comments{/number}","contents_url":"https://api.github.com/repos/leandrowd/batcher/contents/{+path}","compare_url":"https://api.github.com/repos/leandrowd/batcher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leandrowd/batcher/merges","archive_url":"https://api.github.com/repos/leandrowd/batcher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leandrowd/batcher/downloads","issues_url":"https://api.github.com/repos/leandrowd/batcher/issues{/number}","pulls_url":"https://api.github.com/repos/leandrowd/batcher/pulls{/number}","milestones_url":"https://api.github.com/repos/leandrowd/batcher/milestones{/number}","notifications_url":"https://api.github.com/repos/leandrowd/batcher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leandrowd/batcher/labels{/name}","releases_url":"https://api.github.com/repos/leandrowd/batcher/releases{/id}","deployments_url":"https://api.github.com/repos/leandrowd/batcher/deployments","created_at":"2016-08-21T06:52:06Z","updated_at":"2017-02-17T10:53:30Z","pushed_at":"2017-02-25T06:46:57Z","git_url":"git://github.com/leandrowd/batcher.git","ssh_url":"git@github.com:leandrowd/batcher.git","clone_url":"https://github.com/leandrowd/batcher.git","svn_url":"https://github.com/leandrowd/batcher","homepage":null,"size":17,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leandrowd/batcher/pulls/4"},"html":{"href":"https://github.com/leandrowd/batcher/pull/4"},"issue":{"href":"https://api.github.com/repos/leandrowd/batcher/issues/4"},"comments":{"href":"https://api.github.com/repos/leandrowd/batcher/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/leandrowd/batcher/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/leandrowd/batcher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leandrowd/batcher/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/leandrowd/batcher/statuses/8d4d9cc397e58dcaa2126fcccc4bcc2050d3de73"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"leandrowd","id":165005,"avatar_url":"https://avatars.githubusercontent.com/u/165005?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrowd","html_url":"https://github.com/leandrowd","followers_url":"https://api.github.com/users/leandrowd/followers","following_url":"https://api.github.com/users/leandrowd/following{/other_user}","gists_url":"https://api.github.com/users/leandrowd/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrowd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrowd/subscriptions","organizations_url":"https://api.github.com/users/leandrowd/orgs","repos_url":"https://api.github.com/users/leandrowd/repos","events_url":"https://api.github.com/users/leandrowd/events{/privacy}","received_events_url":"https://api.github.com/users/leandrowd/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":83,"deletions":12,"changed_files":4}}
{"actor":{"display_login":"leandrowd"}}