render the owners' user pages before the repos
Signed-off-by: dawn <90008@klbr.net>
177 unmodified linesExpand all178179180181182182183183184185186187188160 unmodified linesExpand all177 unmodified linesExpand all }
await saveKnot();
// user pages first, they are few and cheap and every repo page links its owner's. then the // biggest first, so the last worker to finish isn't the one holding ghostty plans.sort((a, b) => b.weight - a.weight); // biggest repos, so the last worker to finish isn't the one holding ghostty plans.sort((a, b) => !!b.owner - !!a.owner || b.weight - a.weight);
const workers = Math.min(Number(opts.workers), plans.length); const queue = [...plans]; const familyOf = (plan) => (plan.repo?.name ?? plan.owner.prefix).toLowerCase().replace(/(-fork|\d+)$/, "");160 unmodified linesExpand all