Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 27 additions & 13 deletions .github/local-actions/branch-manager/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -69159,15 +69159,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
};
return factory(factoryAuthOptions);
}
const optionsWithInstallationTokenFromState = Object.assign(
{ installationId },
options
const request2 = customRequest || state.request;
return getInstallationAuthenticationConcurrently(
state,
{ ...options, installationId },
request2
);
}
var pendingPromises = /* @__PURE__ */ new Map();
function getInstallationAuthenticationConcurrently(state, options, request2) {
const cacheKey = optionsToCacheKey(options);
if (pendingPromises.has(cacheKey)) {
return pendingPromises.get(cacheKey);
}
const promise = getInstallationAuthenticationImpl(
state,
options,
request2
).finally(() => pendingPromises.delete(cacheKey));
pendingPromises.set(cacheKey, promise);
return promise;
}
async function getInstallationAuthenticationImpl(state, options, request2) {
if (!options.refresh) {
const result = await get(
state.cache,
optionsWithInstallationTokenFromState
);
const result = await get(state.cache, options);
if (result) {
const {
token: token22,
Expand All @@ -69180,7 +69195,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
repositorySelection: repositorySelection2
} = result;
return toTokenAuthentication({
installationId,
installationId: options.installationId,
token: token22,
createdAt: createdAt2,
expiresAt: expiresAt2,
Expand All @@ -69193,9 +69208,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
}
}
const appAuthentication = await getAppAuthentication(state);
const request2 = customRequest || state.request;
const payload = {
installation_id: installationId,
installation_id: options.installationId,
mediaType: {
previews: ["machine-man"]
},
Expand Down Expand Up @@ -69244,9 +69258,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
if (singleFileName) {
Object.assign(payload, { singleFileName });
}
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
await set(state.cache, options, cacheOptions);
const cacheData = {
installationId,
installationId: options.installationId,
token: token2,
createdAt,
expiresAt,
Expand Down Expand Up @@ -69396,7 +69410,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
return sendRequestWithRetries(state, request2, options, createdAt, retries);
}
}
var VERSION12 = "7.1.5";
var VERSION12 = "7.2.0";
function createAppAuth(options) {
if (!options.appId) {
throw new Error("[@octokit/auth-app] appId option is required");
Expand Down
40 changes: 27 additions & 13 deletions .github/local-actions/labels-sync/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47768,15 +47768,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
};
return factory(factoryAuthOptions);
}
const optionsWithInstallationTokenFromState = Object.assign(
{ installationId },
options
const request2 = customRequest || state.request;
return getInstallationAuthenticationConcurrently(
state,
{ ...options, installationId },
request2
);
}
var pendingPromises = /* @__PURE__ */ new Map();
function getInstallationAuthenticationConcurrently(state, options, request2) {
const cacheKey = optionsToCacheKey(options);
if (pendingPromises.has(cacheKey)) {
return pendingPromises.get(cacheKey);
}
const promise = getInstallationAuthenticationImpl(
state,
options,
request2
).finally(() => pendingPromises.delete(cacheKey));
pendingPromises.set(cacheKey, promise);
return promise;
}
async function getInstallationAuthenticationImpl(state, options, request2) {
if (!options.refresh) {
const result = await get(
state.cache,
optionsWithInstallationTokenFromState
);
const result = await get(state.cache, options);
if (result) {
const {
token: token2,
Expand All @@ -47789,7 +47804,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
repositorySelection: repositorySelection2
} = result;
return toTokenAuthentication({
installationId,
installationId: options.installationId,
token: token2,
createdAt: createdAt2,
expiresAt: expiresAt2,
Expand All @@ -47802,9 +47817,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
}
}
const appAuthentication = await getAppAuthentication(state);
const request2 = customRequest || state.request;
const payload = {
installation_id: installationId,
installation_id: options.installationId,
mediaType: {
previews: ["machine-man"]
},
Expand Down Expand Up @@ -47853,9 +47867,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
if (singleFileName) {
Object.assign(payload, { singleFileName });
}
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
await set(state.cache, options, cacheOptions);
const cacheData = {
installationId,
installationId: options.installationId,
token,
createdAt,
expiresAt,
Expand Down Expand Up @@ -48005,7 +48019,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
return sendRequestWithRetries(state, request2, options, createdAt, retries);
}
}
var VERSION12 = "7.1.5";
var VERSION12 = "7.2.0";
function createAppAuth(options) {
if (!options.appId) {
throw new Error("[@octokit/auth-app] appId option is required");
Expand Down
40 changes: 27 additions & 13 deletions .github/local-actions/lock-closed/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47505,15 +47505,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
};
return factory(factoryAuthOptions);
}
const optionsWithInstallationTokenFromState = Object.assign(
{ installationId },
options
const request2 = customRequest || state.request;
return getInstallationAuthenticationConcurrently(
state,
{ ...options, installationId },
request2
);
}
var pendingPromises = /* @__PURE__ */ new Map();
function getInstallationAuthenticationConcurrently(state, options, request2) {
const cacheKey = optionsToCacheKey(options);
if (pendingPromises.has(cacheKey)) {
return pendingPromises.get(cacheKey);
}
const promise = getInstallationAuthenticationImpl(
state,
options,
request2
).finally(() => pendingPromises.delete(cacheKey));
pendingPromises.set(cacheKey, promise);
return promise;
}
async function getInstallationAuthenticationImpl(state, options, request2) {
if (!options.refresh) {
const result = await get(
state.cache,
optionsWithInstallationTokenFromState
);
const result = await get(state.cache, options);
if (result) {
const {
token: token2,
Expand All @@ -47526,7 +47541,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
repositorySelection: repositorySelection2
} = result;
return toTokenAuthentication({
installationId,
installationId: options.installationId,
token: token2,
createdAt: createdAt2,
expiresAt: expiresAt2,
Expand All @@ -47539,9 +47554,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
}
}
const appAuthentication = await getAppAuthentication(state);
const request2 = customRequest || state.request;
const payload = {
installation_id: installationId,
installation_id: options.installationId,
mediaType: {
previews: ["machine-man"]
},
Expand Down Expand Up @@ -47590,9 +47604,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
if (singleFileName) {
Object.assign(payload, { singleFileName });
}
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
await set(state.cache, options, cacheOptions);
const cacheData = {
installationId,
installationId: options.installationId,
token,
createdAt,
expiresAt,
Expand Down Expand Up @@ -47742,7 +47756,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
return sendRequestWithRetries(state, request2, options, createdAt, retries);
}
}
var VERSION12 = "7.1.5";
var VERSION12 = "7.2.0";
function createAppAuth(options) {
if (!options.appId) {
throw new Error("[@octokit/auth-app] appId option is required");
Expand Down
40 changes: 27 additions & 13 deletions github-actions/branch-manager/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47768,15 +47768,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
};
return factory(factoryAuthOptions);
}
const optionsWithInstallationTokenFromState = Object.assign(
{ installationId },
options
const request2 = customRequest || state.request;
return getInstallationAuthenticationConcurrently(
state,
{ ...options, installationId },
request2
);
}
var pendingPromises = /* @__PURE__ */ new Map();
function getInstallationAuthenticationConcurrently(state, options, request2) {
const cacheKey = optionsToCacheKey(options);
if (pendingPromises.has(cacheKey)) {
return pendingPromises.get(cacheKey);
}
const promise = getInstallationAuthenticationImpl(
state,
options,
request2
).finally(() => pendingPromises.delete(cacheKey));
pendingPromises.set(cacheKey, promise);
return promise;
}
async function getInstallationAuthenticationImpl(state, options, request2) {
if (!options.refresh) {
const result = await get(
state.cache,
optionsWithInstallationTokenFromState
);
const result = await get(state.cache, options);
if (result) {
const {
token: token2,
Expand All @@ -47789,7 +47804,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
repositorySelection: repositorySelection2
} = result;
return toTokenAuthentication({
installationId,
installationId: options.installationId,
token: token2,
createdAt: createdAt2,
expiresAt: expiresAt2,
Expand All @@ -47802,9 +47817,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
}
}
const appAuthentication = await getAppAuthentication(state);
const request2 = customRequest || state.request;
const payload = {
installation_id: installationId,
installation_id: options.installationId,
mediaType: {
previews: ["machine-man"]
},
Expand Down Expand Up @@ -47853,9 +47867,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
if (singleFileName) {
Object.assign(payload, { singleFileName });
}
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
await set(state.cache, options, cacheOptions);
const cacheData = {
installationId,
installationId: options.installationId,
token,
createdAt,
expiresAt,
Expand Down Expand Up @@ -48005,7 +48019,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
return sendRequestWithRetries(state, request2, options, createdAt, retries);
}
}
var VERSION12 = "7.1.5";
var VERSION12 = "7.2.0";
function createAppAuth(options) {
if (!options.appId) {
throw new Error("[@octokit/auth-app] appId option is required");
Expand Down
40 changes: 27 additions & 13 deletions github-actions/commit-message-based-labels/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48233,15 +48233,30 @@ async function getInstallationAuthentication(state, options, customRequest) {
};
return factory(factoryAuthOptions);
}
const optionsWithInstallationTokenFromState = Object.assign(
{ installationId },
options
const request2 = customRequest || state.request;
return getInstallationAuthenticationConcurrently(
state,
{ ...options, installationId },
request2
);
}
var pendingPromises = /* @__PURE__ */ new Map();
function getInstallationAuthenticationConcurrently(state, options, request2) {
const cacheKey = optionsToCacheKey(options);
if (pendingPromises.has(cacheKey)) {
return pendingPromises.get(cacheKey);
}
const promise = getInstallationAuthenticationImpl(
state,
options,
request2
).finally(() => pendingPromises.delete(cacheKey));
pendingPromises.set(cacheKey, promise);
return promise;
}
async function getInstallationAuthenticationImpl(state, options, request2) {
if (!options.refresh) {
const result = await get(
state.cache,
optionsWithInstallationTokenFromState
);
const result = await get(state.cache, options);
if (result) {
const {
token: token2,
Expand All @@ -48254,7 +48269,7 @@ async function getInstallationAuthentication(state, options, customRequest) {
repositorySelection: repositorySelection2
} = result;
return toTokenAuthentication({
installationId,
installationId: options.installationId,
token: token2,
createdAt: createdAt2,
expiresAt: expiresAt2,
Expand All @@ -48267,9 +48282,8 @@ async function getInstallationAuthentication(state, options, customRequest) {
}
}
const appAuthentication = await getAppAuthentication(state);
const request2 = customRequest || state.request;
const payload = {
installation_id: installationId,
installation_id: options.installationId,
mediaType: {
previews: ["machine-man"]
},
Expand Down Expand Up @@ -48318,9 +48332,9 @@ async function getInstallationAuthentication(state, options, customRequest) {
if (singleFileName) {
Object.assign(payload, { singleFileName });
}
await set(state.cache, optionsWithInstallationTokenFromState, cacheOptions);
await set(state.cache, options, cacheOptions);
const cacheData = {
installationId,
installationId: options.installationId,
token,
createdAt,
expiresAt,
Expand Down Expand Up @@ -48470,7 +48484,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
return sendRequestWithRetries(state, request2, options, createdAt, retries);
}
}
var VERSION12 = "7.1.5";
var VERSION12 = "7.2.0";
function createAppAuth(options) {
if (!options.appId) {
throw new Error("[@octokit/auth-app] appId option is required");
Expand Down
Loading