From 8c201c304244773da9c84d6a268f53245570f1b7 Mon Sep 17 00:00:00 2001 From: "Chang, Hui-Tang" Date: Mon, 23 Dec 2024 17:54:44 +0800 Subject: [PATCH] fix test case --- .../application/github/v0/mock_issue_service.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/component/application/github/v0/mock_issue_service.go b/pkg/component/application/github/v0/mock_issue_service.go index 05f1ab3d9..fb43c2b72 100644 --- a/pkg/component/application/github/v0/mock_issue_service.go +++ b/pkg/component/application/github/v0/mock_issue_service.go @@ -28,14 +28,14 @@ func (m *MockIssuesService) ListByRepo(ctx context.Context, owner, repo string, Body: github.String("Issue Body"), State: github.String("open"), Assignee: &github.User{ - Name: github.String("assignee"), + Login: github.String("assignee"), }, Assignees: []*github.User{ { - Name: github.String("assignee1"), + Login: github.String("assignee1"), }, { - Name: github.String("assignee2"), + Login: github.String("assignee2"), }, }, Labels: []*github.Label{ @@ -68,14 +68,14 @@ func (m *MockIssuesService) Get(ctx context.Context, owner, repo string, number Body: github.String("Issue Body"), State: github.String("open"), Assignee: &github.User{ - Name: github.String("assignee"), + Login: github.String("assignee"), }, Assignees: []*github.User{ { - Name: github.String("assignee1"), + Login: github.String("assignee1"), }, { - Name: github.String("assignee2"), + Login: github.String("assignee2"), }, }, Labels: []*github.Label{