diff --git a/app/routes/api.bugReport.tsx b/app/routes/api.bugReport.tsx index d678cd3d..355943cd 100644 --- a/app/routes/api.bugReport.tsx +++ b/app/routes/api.bugReport.tsx @@ -49,7 +49,7 @@ export const action = async ({ request, context }: ActionFunctionArgs) => { card: { header: { title: `Feedback from ${identity?.name ?? ''}`, - subtitle: `Environment: ${hostname} commit: ${RELEASE}`, + subtitle: `Time: ${new Date().toISOString()} Environment: ${hostname} commit: ${RELEASE}`, imageUrl: 'https://developers.google.com/chat/images/quickstart-app-avatar.png', imageType: 'CIRCLE', diff --git a/app/routes/api.deadTrack.tsx b/app/routes/api.deadTrack.tsx index 4c80cca9..19dbb8cc 100644 --- a/app/routes/api.deadTrack.tsx +++ b/app/routes/api.deadTrack.tsx @@ -1,6 +1,7 @@ import type { ActionFunctionArgs } from '@remix-run/cloudflare' import { json } from '@remix-run/cloudflare' import type { ChatCard } from '~/types/GoogleChatApi' +import { RELEASE } from '~/utils/constants' export type DeadTrackInfo = { pullSessionTrace: string @@ -23,14 +24,16 @@ export const action = async ({ request, context }: ActionFunctionArgs) => { pushingUser, } = info + const { hostname } = new URL(request.url) + const chatCard: ChatCard = { cardsV2: [ { cardId: 'orange-meets-dead-track-card', card: { header: { - title: `💀 Dead track detected`, - subtitle: `${pullingUser} had issue pulling from ${pushingUser}`, + title: `💀 Dead track: ${pullingUser} had issue pulling from ${pushingUser}`, + subtitle: `Time: ${new Date().toISOString()} Environment: ${hostname} commit: ${RELEASE}`, imageUrl: 'https://developers.google.com/chat/images/quickstart-app-avatar.png', imageType: 'CIRCLE',