From 34cce040e5d3e437c3f1a79b3b279485e2a1e660 Mon Sep 17 00:00:00 2001 From: Zhang ZeHua Date: Fri, 8 May 2026 19:23:43 +0800 Subject: [PATCH] Fix multi-sync skill tag bug --- component/multi_sync.go | 4 ++-- component/multi_sync_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/component/multi_sync.go b/component/multi_sync.go index ae632dd8e..e41a6e1a1 100644 --- a/component/multi_sync.go +++ b/component/multi_sync.go @@ -1056,8 +1056,8 @@ func (c *multiSyncComponentImpl) createLocalSkill(ctx context.Context, m *types. Category: tag.Category, Group: tag.Group, BuiltIn: tag.BuiltIn, - I18nKey: tag.ShowName, // ShowName: tag.ShowName, - Scope: types.CodeTagScope, + I18nKey: tag.I18nKey, + Scope: types.SkillTagScope, } t, err := c.tagStore.FindOrCreate(ctx, dbTag) if err != nil { diff --git a/component/multi_sync_test.go b/component/multi_sync_test.go index 599a560c0..993708dcd 100644 --- a/component/multi_sync_test.go +++ b/component/multi_sync_test.go @@ -270,7 +270,7 @@ func TestMultiSyncComponent_SyncAsClient(t *testing.T) { mc.mocks.stores.RepoMock().EXPECT().UpdateOrCreateRepo(ctx, *dbrepo).Return(dbrepo, nil) dbrepo.ID = 3 mc.mocks.stores.TagMock().EXPECT().FindOrCreate(ctx, database.Tag{ - Name: "t3", Scope: types.CodeTagScope, + Name: "t3", Scope: types.SkillTagScope, }).Return( &database.Tag{Name: "t3", ID: 13}, nil, )