From f9a77c5c27aede4e5978eb55d9b7af781b680a1d Mon Sep 17 00:00:00 2001 From: João Augusto Costa Branco Marado Torres Date: Tue, 24 Jun 2025 12:08:41 -0300 Subject: feat!: initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Augusto Costa Branco Marado Torres --- src/components/Commit.astro | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/components/Commit.astro (limited to 'src/components/Commit.astro') diff --git a/src/components/Commit.astro b/src/components/Commit.astro new file mode 100644 index 0000000..3ee284a --- /dev/null +++ b/src/components/Commit.astro @@ -0,0 +1,49 @@ +--- +import type { Commit } from "@lib/git/types"; +import { gitDir } from "@lib/git"; + +type Props = Commit; + +const { hash, files, author, signature } = Astro.props; + +const git = await gitDir; +--- +

Git commit info:

+
+
Hash
+
{hash}
+
Files
+ {files.map((file) =>
{file.pathname.replace(git, "")}
)} +
Author
+
{author.name} <{author.email}>
+ { + signature && ( +
Commit Signature
+
+
+
Type
+
{signature.type}
+
Signer
+
{signature.signerName}
+
Key fingerprint
+
{signature.keyFingerPrint}
+
+
+ ) + } +
+ + -- cgit v1.2.3