diff --git a/src/web/gitCommit.ts b/src/web/gitCommit.ts index 274d663..3f668df 100644 --- a/src/web/gitCommit.ts +++ b/src/web/gitCommit.ts @@ -78,7 +78,7 @@ export default async function gitCommitPOST(app: Express) { new SectionBuilder() .addTextDisplayComponents( new TextDisplayBuilder().setContent( - `## ${forced ? "⚠️ Force Push" : "📦 New Push"} to \`${branch}\``, + `## ${forced ? "⚠️ Force Push" : "📦 New Push"} to \`${repo.full_name}\` on \`${branch}\``, ), ) .setThumbnailAccessory( diff --git a/src/web/gitJob.ts b/src/web/gitJob.ts index 27bed58..88356ab 100644 --- a/src/web/gitJob.ts +++ b/src/web/gitJob.ts @@ -45,6 +45,7 @@ function getStatusEmoji(status: string, conclusion: string | null): string { */ function buildContainer(doc: any): ContainerBuilder { const { + repository, pusher, branch, compareUrl, @@ -64,7 +65,7 @@ function buildContainer(doc: any): ContainerBuilder { new SectionBuilder() .addTextDisplayComponents( new TextDisplayBuilder().setContent( - `## ${forced ? "⚠️ Force Push" : "📦 New Push"} to \`${branch}\``, + `## ${forced ? "⚠️ Force Push" : "📦 New Push"} to \`${repository ?? "unknown-repo"}\` on \`${branch}\``, ), ) .setThumbnailAccessory(