mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
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:
parent
cb2a7dab39
commit
843e667218
2 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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}\``,
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue