Skip to content

Commit 560fb23

Browse files
committed
build: update dependency @octokit/auth-app to v7.2.0
1 parent 37d8497 commit 560fb23

File tree

11 files changed

+249
-123
lines changed

11 files changed

+249
-123
lines changed

.github/local-actions/branch-manager/main.js

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69159,15 +69159,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
6915969159
};
6916069160
return factory(factoryAuthOptions);
6916169161
}
69162-
const optionsWithInstallationTokenFromState = Object.assign(
69163-
{ installationId },
69164-
options
69162+
const request2 = customRequest || state.request;
69163+
return getInstallationAuthenticationConcurrently(
69164+
state,
69165+
{ ...options, installationId },
69166+
request2
6916569167
);
69168+
}
69169+
var pendingPromises = /* @__PURE__ */ new Map();
69170+
function getInstallationAuthenticationConcurrently(state, options, request2) {
69171+
const cacheKey = optionsToCacheKey(options);
69172+
if (pendingPromises.has(cacheKey)) {
69173+
return pendingPromises.get(cacheKey);
69174+
}
69175+
const promise = getInstallationAuthenticationImpl(
69176+
state,
69177+
options,
69178+
request2
69179+
).finally(() => pendingPromises.delete(cacheKey));
69180+
pendingPromises.set(cacheKey, promise);
69181+
return promise;
69182+
}
69183+
async function getInstallationAuthenticationImpl(state, options, request2) {
6916669184
if (!options.refresh) {
69167-
const result = await get(
69168-
state.cache,
69169-
optionsWithInstallationTokenFromState
69170-
);
69185+
const result = await get(state.cache, options);
6917169186
if (result) {
6917269187
const {
6917369188
token: token22,
@@ -69180,7 +69195,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
6918069195
repositorySelection: repositorySelection2
6918169196
} = result;
6918269197
return toTokenAuthentication({
69183-
installationId,
69198+
installationId: options.installationId,
6918469199
token: token22,
6918569200
createdAt: createdAt2,
6918669201
expiresAt: expiresAt2,
@@ -69193,9 +69208,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
6919369208
}
6919469209
}
6919569210
const appAuthentication = await getAppAuthentication(state);
69196-
const request2 = customRequest || state.request;
6919769211
const payload = {
69198-
installation_id: installationId,
69212+
installation_id: options.installationId,
6919969213
mediaType: {
6920069214
previews: ["machine-man"]
6920169215
},
@@ -69244,9 +69258,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
6924469258
if (singleFileName) {
6924569259
Object.assign(payload, { singleFileName });
6924669260
}
69247-
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
69261+
await set(state.cache, options, cacheOptions);
6924869262
const cacheData = {
69249-
installationId,
69263+
installationId: options.installationId,
6925069264
token: token2,
6925169265
createdAt,
6925269266
expiresAt,
@@ -69396,7 +69410,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
6939669410
return sendRequestWithRetries(state, request2, options, createdAt, retries);
6939769411
}
6939869412
}
69399-
var VERSION12 = "7.1.5";
69413+
var VERSION12 = "7.2.0";
6940069414
function createAppAuth(options) {
6940169415
if (!options.appId) {
6940269416
throw new Error("[@octokit/auth-app] appId option is required");

.github/local-actions/labels-sync/main.js

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47768,15 +47768,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
4776847768
};
4776947769
return factory(factoryAuthOptions);
4777047770
}
47771-
const optionsWithInstallationTokenFromState = Object.assign(
47772-
{ installationId },
47773-
options
47771+
const request2 = customRequest || state.request;
47772+
return getInstallationAuthenticationConcurrently(
47773+
state,
47774+
{ ...options, installationId },
47775+
request2
4777447776
);
47777+
}
47778+
var pendingPromises = /* @__PURE__ */ new Map();
47779+
function getInstallationAuthenticationConcurrently(state, options, request2) {
47780+
const cacheKey = optionsToCacheKey(options);
47781+
if (pendingPromises.has(cacheKey)) {
47782+
return pendingPromises.get(cacheKey);
47783+
}
47784+
const promise = getInstallationAuthenticationImpl(
47785+
state,
47786+
options,
47787+
request2
47788+
).finally(() => pendingPromises.delete(cacheKey));
47789+
pendingPromises.set(cacheKey, promise);
47790+
return promise;
47791+
}
47792+
async function getInstallationAuthenticationImpl(state, options, request2) {
4777547793
if (!options.refresh) {
47776-
const result = await get(
47777-
state.cache,
47778-
optionsWithInstallationTokenFromState
47779-
);
47794+
const result = await get(state.cache, options);
4778047795
if (result) {
4778147796
const {
4778247797
token: token2,
@@ -47789,7 +47804,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
4778947804
repositorySelection: repositorySelection2
4779047805
} = result;
4779147806
return toTokenAuthentication({
47792-
installationId,
47807+
installationId: options.installationId,
4779347808
token: token2,
4779447809
createdAt: createdAt2,
4779547810
expiresAt: expiresAt2,
@@ -47802,9 +47817,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
4780247817
}
4780347818
}
4780447819
const appAuthentication = await getAppAuthentication(state);
47805-
const request2 = customRequest || state.request;
4780647820
const payload = {
47807-
installation_id: installationId,
47821+
installation_id: options.installationId,
4780847822
mediaType: {
4780947823
previews: ["machine-man"]
4781047824
},
@@ -47853,9 +47867,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
4785347867
if (singleFileName) {
4785447868
Object.assign(payload, { singleFileName });
4785547869
}
47856-
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
47870+
await set(state.cache, options, cacheOptions);
4785747871
const cacheData = {
47858-
installationId,
47872+
installationId: options.installationId,
4785947873
token,
4786047874
createdAt,
4786147875
expiresAt,
@@ -48005,7 +48019,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
4800548019
return sendRequestWithRetries(state, request2, options, createdAt, retries);
4800648020
}
4800748021
}
48008-
var VERSION12 = "7.1.5";
48022+
var VERSION12 = "7.2.0";
4800948023
function createAppAuth(options) {
4801048024
if (!options.appId) {
4801148025
throw new Error("[@octokit/auth-app] appId option is required");

.github/local-actions/lock-closed/main.js

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47505,15 +47505,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
4750547505
};
4750647506
return factory(factoryAuthOptions);
4750747507
}
47508-
const optionsWithInstallationTokenFromState = Object.assign(
47509-
{ installationId },
47510-
options
47508+
const request2 = customRequest || state.request;
47509+
return getInstallationAuthenticationConcurrently(
47510+
state,
47511+
{ ...options, installationId },
47512+
request2
4751147513
);
47514+
}
47515+
var pendingPromises = /* @__PURE__ */ new Map();
47516+
function getInstallationAuthenticationConcurrently(state, options, request2) {
47517+
const cacheKey = optionsToCacheKey(options);
47518+
if (pendingPromises.has(cacheKey)) {
47519+
return pendingPromises.get(cacheKey);
47520+
}
47521+
const promise = getInstallationAuthenticationImpl(
47522+
state,
47523+
options,
47524+
request2
47525+
).finally(() => pendingPromises.delete(cacheKey));
47526+
pendingPromises.set(cacheKey, promise);
47527+
return promise;
47528+
}
47529+
async function getInstallationAuthenticationImpl(state, options, request2) {
4751247530
if (!options.refresh) {
47513-
const result = await get(
47514-
state.cache,
47515-
optionsWithInstallationTokenFromState
47516-
);
47531+
const result = await get(state.cache, options);
4751747532
if (result) {
4751847533
const {
4751947534
token: token2,
@@ -47526,7 +47541,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
4752647541
repositorySelection: repositorySelection2
4752747542
} = result;
4752847543
return toTokenAuthentication({
47529-
installationId,
47544+
installationId: options.installationId,
4753047545
token: token2,
4753147546
createdAt: createdAt2,
4753247547
expiresAt: expiresAt2,
@@ -47539,9 +47554,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
4753947554
}
4754047555
}
4754147556
const appAuthentication = await getAppAuthentication(state);
47542-
const request2 = customRequest || state.request;
4754347557
const payload = {
47544-
installation_id: installationId,
47558+
installation_id: options.installationId,
4754547559
mediaType: {
4754647560
previews: ["machine-man"]
4754747561
},
@@ -47590,9 +47604,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
4759047604
if (singleFileName) {
4759147605
Object.assign(payload, { singleFileName });
4759247606
}
47593-
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
47607+
await set(state.cache, options, cacheOptions);
4759447608
const cacheData = {
47595-
installationId,
47609+
installationId: options.installationId,
4759647610
token,
4759747611
createdAt,
4759847612
expiresAt,
@@ -47742,7 +47756,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
4774247756
return sendRequestWithRetries(state, request2, options, createdAt, retries);
4774347757
}
4774447758
}
47745-
var VERSION12 = "7.1.5";
47759+
var VERSION12 = "7.2.0";
4774647760
function createAppAuth(options) {
4774747761
if (!options.appId) {
4774847762
throw new Error("[@octokit/auth-app] appId option is required");

github-actions/branch-manager/main.js

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47768,15 +47768,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
4776847768
};
4776947769
return factory(factoryAuthOptions);
4777047770
}
47771-
const optionsWithInstallationTokenFromState = Object.assign(
47772-
{ installationId },
47773-
options
47771+
const request2 = customRequest || state.request;
47772+
return getInstallationAuthenticationConcurrently(
47773+
state,
47774+
{ ...options, installationId },
47775+
request2
4777447776
);
47777+
}
47778+
var pendingPromises = /* @__PURE__ */ new Map();
47779+
function getInstallationAuthenticationConcurrently(state, options, request2) {
47780+
const cacheKey = optionsToCacheKey(options);
47781+
if (pendingPromises.has(cacheKey)) {
47782+
return pendingPromises.get(cacheKey);
47783+
}
47784+
const promise = getInstallationAuthenticationImpl(
47785+
state,
47786+
options,
47787+
request2
47788+
).finally(() => pendingPromises.delete(cacheKey));
47789+
pendingPromises.set(cacheKey, promise);
47790+
return promise;
47791+
}
47792+
async function getInstallationAuthenticationImpl(state, options, request2) {
4777547793
if (!options.refresh) {
47776-
const result = await get(
47777-
state.cache,
47778-
optionsWithInstallationTokenFromState
47779-
);
47794+
const result = await get(state.cache, options);
4778047795
if (result) {
4778147796
const {
4778247797
token: token2,
@@ -47789,7 +47804,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
4778947804
repositorySelection: repositorySelection2
4779047805
} = result;
4779147806
return toTokenAuthentication({
47792-
installationId,
47807+
installationId: options.installationId,
4779347808
token: token2,
4779447809
createdAt: createdAt2,
4779547810
expiresAt: expiresAt2,
@@ -47802,9 +47817,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
4780247817
}
4780347818
}
4780447819
const appAuthentication = await getAppAuthentication(state);
47805-
const request2 = customRequest || state.request;
4780647820
const payload = {
47807-
installation_id: installationId,
47821+
installation_id: options.installationId,
4780847822
mediaType: {
4780947823
previews: ["machine-man"]
4781047824
},
@@ -47853,9 +47867,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
4785347867
if (singleFileName) {
4785447868
Object.assign(payload, { singleFileName });
4785547869
}
47856-
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
47870+
await set(state.cache, options, cacheOptions);
4785747871
const cacheData = {
47858-
installationId,
47872+
installationId: options.installationId,
4785947873
token,
4786047874
createdAt,
4786147875
expiresAt,
@@ -48005,7 +48019,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
4800548019
return sendRequestWithRetries(state, request2, options, createdAt, retries);
4800648020
}
4800748021
}
48008-
var VERSION12 = "7.1.5";
48022+
var VERSION12 = "7.2.0";
4800948023
function createAppAuth(options) {
4801048024
if (!options.appId) {
4801148025
throw new Error("[@octokit/auth-app] appId option is required");

github-actions/commit-message-based-labels/main.js

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48233,15 +48233,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
4823348233
};
4823448234
return factory(factoryAuthOptions);
4823548235
}
48236-
const optionsWithInstallationTokenFromState = Object.assign(
48237-
{ installationId },
48238-
options
48236+
const request2 = customRequest || state.request;
48237+
return getInstallationAuthenticationConcurrently(
48238+
state,
48239+
{ ...options, installationId },
48240+
request2
4823948241
);
48242+
}
48243+
var pendingPromises = /* @__PURE__ */ new Map();
48244+
function getInstallationAuthenticationConcurrently(state, options, request2) {
48245+
const cacheKey = optionsToCacheKey(options);
48246+
if (pendingPromises.has(cacheKey)) {
48247+
return pendingPromises.get(cacheKey);
48248+
}
48249+
const promise = getInstallationAuthenticationImpl(
48250+
state,
48251+
options,
48252+
request2
48253+
).finally(() => pendingPromises.delete(cacheKey));
48254+
pendingPromises.set(cacheKey, promise);
48255+
return promise;
48256+
}
48257+
async function getInstallationAuthenticationImpl(state, options, request2) {
4824048258
if (!options.refresh) {
48241-
const result = await get(
48242-
state.cache,
48243-
optionsWithInstallationTokenFromState
48244-
);
48259+
const result = await get(state.cache, options);
4824548260
if (result) {
4824648261
const {
4824748262
token: token2,
@@ -48254,7 +48269,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
4825448269
repositorySelection: repositorySelection2
4825548270
} = result;
4825648271
return toTokenAuthentication({
48257-
installationId,
48272+
installationId: options.installationId,
4825848273
token: token2,
4825948274
createdAt: createdAt2,
4826048275
expiresAt: expiresAt2,
@@ -48267,9 +48282,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
4826748282
}
4826848283
}
4826948284
const appAuthentication = await getAppAuthentication(state);
48270-
const request2 = customRequest || state.request;
4827148285
const payload = {
48272-
installation_id: installationId,
48286+
installation_id: options.installationId,
4827348287
mediaType: {
4827448288
previews: ["machine-man"]
4827548289
},
@@ -48318,9 +48332,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
4831848332
if (singleFileName) {
4831948333
Object.assign(payload, { singleFileName });
4832048334
}
48321-
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
48335+
await set(state.cache, options, cacheOptions);
4832248336
const cacheData = {
48323-
installationId,
48337+
installationId: options.installationId,
4832448338
token,
4832548339
createdAt,
4832648340
expiresAt,
@@ -48470,7 +48484,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
4847048484
return sendRequestWithRetries(state, request2, options, createdAt, retries);
4847148485
}
4847248486
}
48473-
var VERSION12 = "7.1.5";
48487+
var VERSION12 = "7.2.0";
4847448488
function createAppAuth(options) {
4847548489
if (!options.appId) {
4847648490
throw new Error("[@octokit/auth-app] appId option is required");

0 commit comments

Comments
 (0)