~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/knotless

git that lives in your Atmosphere account

Forked from chadtmiller.com/knotless

0
0
12 lines · 514 B Raw History
import type * as getRepoSettings from '#lib/lexicons/dev/knotless/getRepoSettings.ts';
import type { PageLoad } from './$types';
import { branches, repoPage } from '#lib/data.ts';

/** A repository's settings, with its branches, the default first. */
export const load: PageLoad = async (event) => {
	const [{ repo, answer }, names] = await Promise.all([
		repoPage<typeof getRepoSettings.main>(event, 'dev.knotless.getRepoSettings'),
		branches(event)
	]);
	return { repo, settings: answer, branches: names };
};