feat. Display Commit Workflow Status
All checks were successful
CI / build (push) Successful in 9s

This commit is contained in:
Space-Banane
2026-02-22 18:13:04 +01:00
parent 1e4a83c0a5
commit 59dace529d
3 changed files with 321 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ export default async function gitCommitPOST(app: Express) {
const body = req.body;
const repo = body.repository;
const pusher = body.pusher;
const head_sha = body.after;
const commits: any[] = body.commits ?? [];
const headCommit = body.head_commit;
const ref: string = body.ref ?? "";
@@ -173,9 +174,16 @@ export default async function gitCommitPOST(app: Express) {
pusher: pusher.name,
branch,
commitCount: commits.length,
commitLines,
compareUrl,
forced,
deliveryId: req.headers["x-github-delivery"] ?? "unknown",
timestamp: new Date(),
messageId: message.id,
head_sha: head_sha,
jobs: {},
lastEditedAt: new Date(),
pendingUpdate: false,
});
return res.status(200).json({ success: true });