volunteer-contributions-fetch 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/github.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -126,7 +126,7 @@ This section documents all the possible configuration values. For examples see t
|
|
|
126
126
|
| `types.approvedPR` | string | No | Approved a Pull Request | Label for entries related to approving a GitHub PR |
|
|
127
127
|
| `types.changesRequestedPR` | string | No | Requested changes on a Pull Request | Label for entries related to requesting changes on a GitHub PR |
|
|
128
128
|
| `types.reviewedPR` | string | No | Reviewed a Pull Request | Label for entries related to reviewing a GitHub PR (fallback) |
|
|
129
|
-
| `delayMsPerRequest` | number | No |
|
|
129
|
+
| `delayMsPerRequest` | number | No | 2000 | Delay between each request to GitHub. You might hit rate limiting if you set this lower than default. |
|
|
130
130
|
|
|
131
131
|
#### MediaWiki
|
|
132
132
|
|
package/lib/github.js
CHANGED
|
@@ -2,7 +2,7 @@ const debug = require('debug')('contributions:github');
|
|
|
2
2
|
const fetcher = require('./github-fetcher');
|
|
3
3
|
|
|
4
4
|
const ONE_YEAR_IN_MS = 1000 * 60 * 60 * 24 * 365;
|
|
5
|
-
const DELAY_FETCHING_MS =
|
|
5
|
+
const DELAY_FETCHING_MS = 2000;
|
|
6
6
|
const GITHUB_COMMIT_CATEGORY = 'github-commit';
|
|
7
7
|
const GITHUB_ISSUES_CREATED_CATEGORY = 'github-issues-created';
|
|
8
8
|
const GITHUB_PR_CREATED_CATEGORY = 'github-pr-created';
|