{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/skddc/rs-backup/pulls/7","id":91286379,"html_url":"https://github.com/skddc/rs-backup/pull/7","diff_url":"https://github.com/skddc/rs-backup/pull/7.diff","patch_url":"https://github.com/skddc/rs-backup/pull/7.patch","issue_url":"https://api.github.com/repos/skddc/rs-backup/issues/7","number":7,"state":"closed","locked":false,"title":"Add option for rate limiting the network requests","user":{"login":"galfert","id":843,"avatar_url":"https://avatars.githubusercontent.com/u/843?v=3","gravatar_id":"","url":"https://api.github.com/users/galfert","html_url":"https://github.com/galfert","followers_url":"https://api.github.com/users/galfert/followers","following_url":"https://api.github.com/users/galfert/following{/other_user}","gists_url":"https://api.github.com/users/galfert/gists{/gist_id}","starred_url":"https://api.github.com/users/galfert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galfert/subscriptions","organizations_url":"https://api.github.com/users/galfert/orgs","repos_url":"https://api.github.com/users/galfert/repos","events_url":"https://api.github.com/users/galfert/events{/privacy}","received_events_url":"https://api.github.com/users/galfert/received_events","type":"User","site_admin":false},"body":"I took the function from [this gist](https://gist.github.com/mattheworiordan/1084831) but used  Lodash instead of Underscore, because they have per-method packages.\r\n\r\nI also simplified the function a bit so it wouldn't need the `_.defer` method.\r\n\r\nThe rate limit in milliseconds can be added via the `-r` or `--rate-limit` option. Default is 0.","created_at":"2016-10-27T21:43:44Z","updated_at":"2016-10-28T17:31:57Z","closed_at":"2016-10-28T17:31:57Z","merged_at":"2016-10-28T17:31:57Z","merge_commit_sha":"f8dacea305161ec866e9b98bf44839c95c3bc686","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/skddc/rs-backup/pulls/7/commits","review_comments_url":"https://api.github.com/repos/skddc/rs-backup/pulls/7/comments","review_comment_url":"https://api.github.com/repos/skddc/rs-backup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/skddc/rs-backup/issues/7/comments","statuses_url":"https://api.github.com/repos/skddc/rs-backup/statuses/dc500b5824aa8b0f62c8f0a0b6ab202e4e2fe4c4","head":{"label":"galfert:feature/rate_limiting","ref":"feature/rate_limiting","sha":"dc500b5824aa8b0f62c8f0a0b6ab202e4e2fe4c4","user":{"login":"galfert","id":843,"avatar_url":"https://avatars.githubusercontent.com/u/843?v=3","gravatar_id":"","url":"https://api.github.com/users/galfert","html_url":"https://github.com/galfert","followers_url":"https://api.github.com/users/galfert/followers","following_url":"https://api.github.com/users/galfert/following{/other_user}","gists_url":"https://api.github.com/users/galfert/gists{/gist_id}","starred_url":"https://api.github.com/users/galfert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galfert/subscriptions","organizations_url":"https://api.github.com/users/galfert/orgs","repos_url":"https://api.github.com/users/galfert/repos","events_url":"https://api.github.com/users/galfert/events{/privacy}","received_events_url":"https://api.github.com/users/galfert/received_events","type":"User","site_admin":false},"repo":{"id":60344041,"name":"rs-backup","full_name":"galfert/rs-backup","owner":{"login":"galfert","id":843,"avatar_url":"https://avatars.githubusercontent.com/u/843?v=3","gravatar_id":"","url":"https://api.github.com/users/galfert","html_url":"https://github.com/galfert","followers_url":"https://api.github.com/users/galfert/followers","following_url":"https://api.github.com/users/galfert/following{/other_user}","gists_url":"https://api.github.com/users/galfert/gists{/gist_id}","starred_url":"https://api.github.com/users/galfert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galfert/subscriptions","organizations_url":"https://api.github.com/users/galfert/orgs","repos_url":"https://api.github.com/users/galfert/repos","events_url":"https://api.github.com/users/galfert/events{/privacy}","received_events_url":"https://api.github.com/users/galfert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/galfert/rs-backup","description":"Backup/restore data from/to any remoteStorage account","fork":true,"url":"https://api.github.com/repos/galfert/rs-backup","forks_url":"https://api.github.com/repos/galfert/rs-backup/forks","keys_url":"https://api.github.com/repos/galfert/rs-backup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/galfert/rs-backup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/galfert/rs-backup/teams","hooks_url":"https://api.github.com/repos/galfert/rs-backup/hooks","issue_events_url":"https://api.github.com/repos/galfert/rs-backup/issues/events{/number}","events_url":"https://api.github.com/repos/galfert/rs-backup/events","assignees_url":"https://api.github.com/repos/galfert/rs-backup/assignees{/user}","branches_url":"https://api.github.com/repos/galfert/rs-backup/branches{/branch}","tags_url":"https://api.github.com/repos/galfert/rs-backup/tags","blobs_url":"https://api.github.com/repos/galfert/rs-backup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/galfert/rs-backup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/galfert/rs-backup/git/refs{/sha}","trees_url":"https://api.github.com/repos/galfert/rs-backup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/galfert/rs-backup/statuses/{sha}","languages_url":"https://api.github.com/repos/galfert/rs-backup/languages","stargazers_url":"https://api.github.com/repos/galfert/rs-backup/stargazers","contributors_url":"https://api.github.com/repos/galfert/rs-backup/contributors","subscribers_url":"https://api.github.com/repos/galfert/rs-backup/subscribers","subscription_url":"https://api.github.com/repos/galfert/rs-backup/subscription","commits_url":"https://api.github.com/repos/galfert/rs-backup/commits{/sha}","git_commits_url":"https://api.github.com/repos/galfert/rs-backup/git/commits{/sha}","comments_url":"https://api.github.com/repos/galfert/rs-backup/comments{/number}","issue_comment_url":"https://api.github.com/repos/galfert/rs-backup/issues/comments{/number}","contents_url":"https://api.github.com/repos/galfert/rs-backup/contents/{+path}","compare_url":"https://api.github.com/repos/galfert/rs-backup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/galfert/rs-backup/merges","archive_url":"https://api.github.com/repos/galfert/rs-backup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/galfert/rs-backup/downloads","issues_url":"https://api.github.com/repos/galfert/rs-backup/issues{/number}","pulls_url":"https://api.github.com/repos/galfert/rs-backup/pulls{/number}","milestones_url":"https://api.github.com/repos/galfert/rs-backup/milestones{/number}","notifications_url":"https://api.github.com/repos/galfert/rs-backup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/galfert/rs-backup/labels{/name}","releases_url":"https://api.github.com/repos/galfert/rs-backup/releases{/id}","deployments_url":"https://api.github.com/repos/galfert/rs-backup/deployments","created_at":"2016-06-03T11:51:52Z","updated_at":"2016-06-03T11:51:53Z","pushed_at":"2016-10-28T16:12:59Z","git_url":"git://github.com/galfert/rs-backup.git","ssh_url":"git@github.com:galfert/rs-backup.git","clone_url":"https://github.com/galfert/rs-backup.git","svn_url":"https://github.com/galfert/rs-backup","homepage":null,"size":20,"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":"skddc:master","ref":"master","sha":"9d82a11065b7fb420c31736a17412395003dd364","user":{"login":"skddc","id":842,"avatar_url":"https://avatars.githubusercontent.com/u/842?v=3","gravatar_id":"","url":"https://api.github.com/users/skddc","html_url":"https://github.com/skddc","followers_url":"https://api.github.com/users/skddc/followers","following_url":"https://api.github.com/users/skddc/following{/other_user}","gists_url":"https://api.github.com/users/skddc/gists{/gist_id}","starred_url":"https://api.github.com/users/skddc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skddc/subscriptions","organizations_url":"https://api.github.com/users/skddc/orgs","repos_url":"https://api.github.com/users/skddc/repos","events_url":"https://api.github.com/users/skddc/events{/privacy}","received_events_url":"https://api.github.com/users/skddc/received_events","type":"User","site_admin":false},"repo":{"id":47999455,"name":"rs-backup","full_name":"skddc/rs-backup","owner":{"login":"skddc","id":842,"avatar_url":"https://avatars.githubusercontent.com/u/842?v=3","gravatar_id":"","url":"https://api.github.com/users/skddc","html_url":"https://github.com/skddc","followers_url":"https://api.github.com/users/skddc/followers","following_url":"https://api.github.com/users/skddc/following{/other_user}","gists_url":"https://api.github.com/users/skddc/gists{/gist_id}","starred_url":"https://api.github.com/users/skddc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skddc/subscriptions","organizations_url":"https://api.github.com/users/skddc/orgs","repos_url":"https://api.github.com/users/skddc/repos","events_url":"https://api.github.com/users/skddc/events{/privacy}","received_events_url":"https://api.github.com/users/skddc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skddc/rs-backup","description":"Backup/restore data from/to any remoteStorage account","fork":false,"url":"https://api.github.com/repos/skddc/rs-backup","forks_url":"https://api.github.com/repos/skddc/rs-backup/forks","keys_url":"https://api.github.com/repos/skddc/rs-backup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skddc/rs-backup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skddc/rs-backup/teams","hooks_url":"https://api.github.com/repos/skddc/rs-backup/hooks","issue_events_url":"https://api.github.com/repos/skddc/rs-backup/issues/events{/number}","events_url":"https://api.github.com/repos/skddc/rs-backup/events","assignees_url":"https://api.github.com/repos/skddc/rs-backup/assignees{/user}","branches_url":"https://api.github.com/repos/skddc/rs-backup/branches{/branch}","tags_url":"https://api.github.com/repos/skddc/rs-backup/tags","blobs_url":"https://api.github.com/repos/skddc/rs-backup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skddc/rs-backup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skddc/rs-backup/git/refs{/sha}","trees_url":"https://api.github.com/repos/skddc/rs-backup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skddc/rs-backup/statuses/{sha}","languages_url":"https://api.github.com/repos/skddc/rs-backup/languages","stargazers_url":"https://api.github.com/repos/skddc/rs-backup/stargazers","contributors_url":"https://api.github.com/repos/skddc/rs-backup/contributors","subscribers_url":"https://api.github.com/repos/skddc/rs-backup/subscribers","subscription_url":"https://api.github.com/repos/skddc/rs-backup/subscription","commits_url":"https://api.github.com/repos/skddc/rs-backup/commits{/sha}","git_commits_url":"https://api.github.com/repos/skddc/rs-backup/git/commits{/sha}","comments_url":"https://api.github.com/repos/skddc/rs-backup/comments{/number}","issue_comment_url":"https://api.github.com/repos/skddc/rs-backup/issues/comments{/number}","contents_url":"https://api.github.com/repos/skddc/rs-backup/contents/{+path}","compare_url":"https://api.github.com/repos/skddc/rs-backup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skddc/rs-backup/merges","archive_url":"https://api.github.com/repos/skddc/rs-backup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skddc/rs-backup/downloads","issues_url":"https://api.github.com/repos/skddc/rs-backup/issues{/number}","pulls_url":"https://api.github.com/repos/skddc/rs-backup/pulls{/number}","milestones_url":"https://api.github.com/repos/skddc/rs-backup/milestones{/number}","notifications_url":"https://api.github.com/repos/skddc/rs-backup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skddc/rs-backup/labels{/name}","releases_url":"https://api.github.com/repos/skddc/rs-backup/releases{/id}","deployments_url":"https://api.github.com/repos/skddc/rs-backup/deployments","created_at":"2015-12-14T20:28:47Z","updated_at":"2016-10-26T13:54:09Z","pushed_at":"2016-10-28T17:31:57Z","git_url":"git://github.com/skddc/rs-backup.git","ssh_url":"git@github.com:skddc/rs-backup.git","clone_url":"https://github.com/skddc/rs-backup.git","svn_url":"https://github.com/skddc/rs-backup","homepage":"https://www.npmjs.com/package/rs-backup","size":16,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/skddc/rs-backup/pulls/7"},"html":{"href":"https://github.com/skddc/rs-backup/pull/7"},"issue":{"href":"https://api.github.com/repos/skddc/rs-backup/issues/7"},"comments":{"href":"https://api.github.com/repos/skddc/rs-backup/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/skddc/rs-backup/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/skddc/rs-backup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/skddc/rs-backup/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/skddc/rs-backup/statuses/dc500b5824aa8b0f62c8f0a0b6ab202e4e2fe4c4"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"skddc","id":842,"avatar_url":"https://avatars.githubusercontent.com/u/842?v=3","gravatar_id":"","url":"https://api.github.com/users/skddc","html_url":"https://github.com/skddc","followers_url":"https://api.github.com/users/skddc/followers","following_url":"https://api.github.com/users/skddc/following{/other_user}","gists_url":"https://api.github.com/users/skddc/gists{/gist_id}","starred_url":"https://api.github.com/users/skddc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skddc/subscriptions","organizations_url":"https://api.github.com/users/skddc/orgs","repos_url":"https://api.github.com/users/skddc/repos","events_url":"https://api.github.com/users/skddc/events{/privacy}","received_events_url":"https://api.github.com/users/skddc/received_events","type":"User","site_admin":false},"comments":5,"review_comments":0,"commits":2,"additions":72,"deletions":24,"changed_files":4}}
{"actor":{"display_login":"skddc"}}