initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
14
github/codeql-action-v2/node_modules/@octokit/plugin-retry/dist-src/error-request.js
generated
vendored
Normal file
14
github/codeql-action-v2/node_modules/@octokit/plugin-retry/dist-src/error-request.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
async function errorRequest(state, octokit, error, options) {
|
||||
if (!error.request || !error.request.request) {
|
||||
throw error;
|
||||
}
|
||||
if (error.status >= 400 && !state.doNotRetry.includes(error.status)) {
|
||||
const retries = options.request.retries != null ? options.request.retries : state.retries;
|
||||
const retryAfter = Math.pow((options.request.retryCount || 0) + 1, 2);
|
||||
throw octokit.retry.retryRequest(error, retries, retryAfter);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
export {
|
||||
errorRequest
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue