johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
import type * as listCommits from '#lib/lexicons/dev/knotless/listCommits.ts';
import type { PageLoad } from './$types';
import { branches, repoPage, tags } from '#lib/data.ts';
export const load: PageLoad = async (event) => {
const cursor = event.url.searchParams.get('cursor') ?? undefined;
const [{ repo, answer }, names, tagged] = await Promise.all([
repoPage<typeof listCommits.main>(event, 'dev.knotless.listCommits', {
ref: event.params.rest,
cursor,
subjectOnly: true
}),
branches(event),
tags(event)
]);
return { repo, history: answer, branches: names, tags: tagged };
};