feat: include repository name in push notifications
All checks were successful
CI / build (push) Successful in 55s

This commit is contained in:
Space-Banane
2026-03-18 16:06:07 +01:00
parent a6e9a45d43
commit 73beef93c4
2 changed files with 3 additions and 2 deletions

View File

@@ -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(

View File

@@ -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(