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

johnandersen777.bsky.social/knotless

git that lives in your Atmosphere account

Forked from chadtmiller.com/knotless

0
0
13 lines · 510 B Raw History
import type * as getCommit from '#lib/lexicons/dev/knotless/getCommit.ts';
import type { PageLoad } from './$types';
import { repoPage } from '#lib/data.ts';

export const load: PageLoad = async (event) => {
	// The first of a commit's files come with their rows, in the same
	// answer; the rest as the reader comes to them.
	const { repo, answer } = await repoPage<typeof getCommit.main>(event, 'dev.knotless.getCommit', {
		sha: event.params.rev,
		firstRows: true
	});
	return { repo, change: answer };
};