Add Optimization Review Rating in Slack Notification (#1936)

<img width="749" height="1090" alt="Screenshot 2025-10-28 at 15 09 17"
src="https://github.com/user-attachments/assets/eed303a5-f150-448b-939c-4bab76f8e594"
/>
This commit is contained in:
Aseem Saxena 2025-10-29 00:20:36 -07:00 committed by GitHub
parent cb2a7dab39
commit 843e667218
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -14,6 +14,7 @@ export const APPROVAL_CONFIG = {
Dashverse: true,
pydantic: true,
"Skyvern-AI": true,
// "aseembits93/my-best-repo": true,
stackai: true,
"Unstructured-IO": true,
// Example: "organization/specific-repo": true,
@ -26,6 +27,7 @@ export const APPROVAL_CONFIG = {
// Add repositories here that need quality monitoring
// Example: "organization": true,
// Example: "organization/specific-repo": true,
// "aseembits93/my-best-repo": true,
} as Record<string, boolean>,
} as const

View file

@ -111,6 +111,10 @@ export async function sendQualityMonitoringNotification(
fields: [
{ type: "mrkdwn", text: `*User ID:*\n👤 ${userId}` },
{ type: "mrkdwn", text: `*Trace ID:*\n🏷 \`${traceId}\`` },
{
type: "mrkdwn",
text: `*Optimization Review Rating:*\n🎯 \`${requestData.optimizationReview}\``,
},
],
},
]
@ -261,6 +265,10 @@ export async function requestApproval(
fields: [
{ type: "mrkdwn", text: `*User ID:*\n👤 ${userId}` },
{ type: "mrkdwn", text: `*Trace ID:*\n🏷 \`${traceId}\`` }, // Changed emoji
{
type: "mrkdwn",
text: `*Optimization Review Rating:*\n🎯 \`${requestData.optimizationReview}\``,
},
],
},
]