Skip to content

Commit

Permalink
build(release): compiled action for 1.1.55
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
semantic-release-bot committed Jun 28, 2021
1 parent 7e87123 commit 1f24fc7
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9470,7 +9470,7 @@ function _defineProperty(obj, key, value) {
return obj;
}

const VERSION = "3.5.0";
const VERSION = "3.5.1";

const noop = () => Promise.resolve(); // @ts-ignore

Expand All @@ -9481,8 +9481,11 @@ function wrapRequest(state, request, options) {

async function doRequest(state, request, options) {
const isWrite = options.method !== "GET" && options.method !== "HEAD";
const isSearch = options.method === "GET" && options.url.startsWith("/search/");
const isGraphQL = options.url.startsWith("/graphql");
const {
pathname
} = new URL(options.url, "http://github.test");
const isSearch = options.method === "GET" && pathname.startsWith("/search/");
const isGraphQL = pathname.startsWith("/graphql");
const retryCount = ~~options.request.retryCount;
const jobOptions = retryCount > 0 ? {
priority: 0,
Expand All @@ -9503,7 +9506,7 @@ async function doRequest(state, request, options) {
} // Guarantee at least 3000ms between requests that trigger notifications


if (isWrite && state.triggersNotification(options.url)) {
if (isWrite && state.triggersNotification(pathname)) {
await state.notifications.key(state.id).schedule(jobOptions, noop);
} // Guarantee at least 2000ms between search requests

Expand Down Expand Up @@ -9650,7 +9653,10 @@ function throttling(octokit, octokitOptions = {}) {

state.retryLimiter.on("failed", async function (error, info) {
const options = info.args[info.args.length - 1];
const shouldRetryGraphQL = options.url.startsWith("/graphql") && error.status !== 401;
const {
pathname
} = new URL(options.url, "http://github.test");
const shouldRetryGraphQL = pathname.startsWith("/graphql") && error.status !== 401;

if (!(shouldRetryGraphQL || error.status === 403)) {
return;
Expand Down

0 comments on commit 1f24fc7

Please sign in to comment.