Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: missed title zh (#10553)

p0ny5f1ccb3b0557
diff --git a/backend/api/v1/project_service.go b/backend/api/v1/project_service.go
index 04136b4b7f..f08ce5afed 100644
--- a/backend/api/v1/project_service.go
+++ b/backend/api/v1/project_service.go
@@ -1003,6 +1003,7 @@ func (s *ProjectService) TestWebhook(ctx context.Context, request *v1pb.TestWebh
Level: webhookplugin.WebhookInfo,
ActivityType: string(api.ActivityIssueCreate),
Title: fmt.Sprintf("Test webhook %q", webhook.Title),
+ TitleZh: fmt.Sprintf("测试 webhook %q", webhook.Title),
Description: "This is a test",
Link: fmt.Sprintf("%s/project/%s/webhook/%s", setting.ExternalUrl, fmt.Sprintf("%s-%d", slug.Make(project.Title), project.UID), fmt.Sprintf("%s-%d", slug.Make(webhook.Title), webhook.ID)),
CreatorID: api.SystemBotID,
diff --git a/backend/component/activity/manager.go b/backend/component/activity/manager.go
index 3b80770cc5..5e2a1711f2 100644
--- a/backend/component/activity/manager.go
+++ b/backend/component/activity/manager.go
@@ -106,6 +106,7 @@ func (m *Manager) BatchCreateActivitiesForRunTasks(ctx context.Context, tasks []
Level: webhook.WebhookInfo,
ActivityType: string(activityType),
Title: fmt.Sprintf("Issue task runs start - %s", issue.Title),
+ TitleZh: fmt.Sprintf("工单任务发布 - %s", issue.Title),
Issue: &webhook.Issue{
ID: issue.UID,
Name: issue.Title,
@@ -190,6 +191,7 @@ func (m *Manager) BatchCreateActivitiesForSkipTasks(ctx context.Context, tasks [
Level: webhook.WebhookInfo,
ActivityType: string(activityType),
Title: fmt.Sprintf("Issue tasks skipped - %s", issue.Title),
+ TitleZh: fmt.Sprintf("工单任务跳过 - %s", issue.Title),
Issue: &webhook.Issue{
ID: issue.UID,
Name: issue.Title,
@@ -274,7 +276,8 @@ func (m *Manager) BatchCreateActivitiesForCancelTaskRuns(ctx context.Context, ta
webhookCtx := webhook.Context{
Level: webhook.WebhookInfo,
ActivityType: string(activityType),
- Title: fmt.Sprintf("Issue task runs start - %s", issue.Title),
+ Title: fmt.Sprintf("Issue task runs cancelled - %s", issue.Title),
+ TitleZh: fmt.Sprintf("工单任务取消 - %s", issue.Title),
Issue: &webhook.Issue{
ID: issue.UID,
Name: issue.Title,