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

johnandersen777.bsky.social/knotless

git that lives in your Atmosphere account

Forked from chadtmiller.com/knotless

0
0
15 lines · 577 B Raw History
<script lang="ts">
	import type * as getFeed from '#lib/lexicons/dev/knotless/getFeed.ts';
	import { subject } from '#lib/format.ts';
	/** The first few of the commits a push brought, each linked by its hash. */
	let { commits, repo }: { commits: getFeed.CommitView[]; repo: string } = $props();
	const LISTED = 5;
</script>

{#if commits.length}<ul class="commits">
		{#each commits.slice(0, LISTED) as c (c.sha)}<li>
				<a class="hash" href="{repo}/commit/{c.sha}">{c.sha.slice(0, 7)}</a><span class="clip"
					>{subject(c.message)}</span
				>
			</li>{/each}
	</ul>{/if}