This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user