📦 deps(thirdparty): update snapshots

This commit is contained in:
ci[bot]
2026-07-22 10:09:47 +00:00
parent 316c012df0
commit 60364c6660
353 changed files with 24740 additions and 1264 deletions
@@ -96,19 +96,36 @@ function remoteTagTarget(projectRoot, tagName) {
return output ? output.split(/\s+/u)[0] : null;
}
function selectMergedReleaseCandidate(pullRequests, version) {
function selectMergedReleaseCandidate(pullRequests, version, identity = {}) {
const branch = `release/v${version}`;
const repoSlug = String(identity.repoSlug || "").toLowerCase();
const ownerLogin = String(identity.ownerLogin || "").toLowerCase();
if (!repoSlug || !ownerLogin) {
throw new Error("Release PR repository and owner identity are required.");
}
const matches = pullRequests.filter((pr) => (
pr.headRefName === branch && pr.baseRefName === "main" && /^[0-9a-f]{40}$/u.test(String(pr.mergeCommit?.oid || ""))
pr.headRefName === branch
&& pr.baseRefName === "main"
&& String(pr.headRepository?.nameWithOwner || "").toLowerCase() === repoSlug
&& String(pr.author?.login || "").toLowerCase() === ownerLogin
&& pr.title === `chore: release v${version}`
&& /^[0-9a-f]{40}$/u.test(String(pr.mergeCommit?.oid || ""))
&& Number.isFinite(Date.parse(String(pr.mergedAt || "")))
));
if (matches.length !== 1) {
throw new Error(`Expected exactly one merged protected release PR for ${branch}.`);
throw new Error(`Expected exactly one owner-authored same-repository protected release PR for ${branch}; found ${matches.length}.`);
}
return matches[0];
}
function mergedReleaseCandidate(projectRoot, version) {
const branch = `release/v${version}`;
const repository = JSON.parse(runCommand(
"gh",
["repo", "view", "--json", "nameWithOwner,owner"],
projectRoot,
{ capture: true },
));
const payload = runCommand(
"gh",
[
@@ -121,12 +138,15 @@ function mergedReleaseCandidate(projectRoot, version) {
"--limit",
"10",
"--json",
"number,headRefName,baseRefName,mergeCommit",
"number,title,author,headRefName,headRepository,baseRefName,mergeCommit,mergedAt",
],
projectRoot,
{ capture: true },
);
return selectMergedReleaseCandidate(JSON.parse(payload || "[]"), version);
return selectMergedReleaseCandidate(JSON.parse(payload || "[]"), version, {
repoSlug: repository.nameWithOwner,
ownerLogin: repository.owner?.login,
});
}
function validateReleaseSuccessors(projectRoot, releaseCommit, headCommit, dependencies = {}) {