From 80f0d05ba003335c2ba4055658be90710c437ec3 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 4 Dec 2025 20:10:57 -0800 Subject: [PATCH] Fix lint and checks --- services/pull/comment.go | 4 ++-- tests/integration/pull_comment_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/pull/comment.go b/services/pull/comment.go index c34a3cb719..c0561c03a0 100644 --- a/services/pull/comment.go +++ b/services/pull/comment.go @@ -105,7 +105,7 @@ type CachedCommit struct { TrustStatus string } -func convertCachedCommitsToGitCommits(cachedCommits []CachedCommit, repo *repo_model.Repository) []*asymkey_model.SignCommit { +func convertCachedCommitsToGitCommits(cachedCommits []CachedCommit) []*asymkey_model.SignCommit { var gitCommits []*asymkey_model.SignCommit for _, cc := range cachedCommits { objectID := git.MustIDFromString(cc.CommitID) @@ -280,7 +280,7 @@ func LoadCommentPushCommits(ctx context.Context, c *issues_model.Comment) error defer closer.Close() if data.CachedCommits != nil { - convertedCommits := convertCachedCommitsToGitCommits(data.CachedCommits, c.Issue.Repo) + convertedCommits := convertCachedCommitsToGitCommits(data.CachedCommits) c.Commits, err = git_service.ParseCommitsWithStatus(ctx, convertedCommits, c.Issue.Repo) } else { c.Commits, err = git_service.ConvertFromGitCommit(ctx, gitRepo.GetCommitsFromIDs(data.CommitIDs), c.Issue.Repo) diff --git a/tests/integration/pull_comment_test.go b/tests/integration/pull_comment_test.go index 43dd3897b5..9e8d6f88e8 100644 --- a/tests/integration/pull_comment_test.go +++ b/tests/integration/pull_comment_test.go @@ -13,8 +13,8 @@ import ( issues_model "code.gitea.io/gitea/models/issues" "code.gitea.io/gitea/models/unittest" - pull_service "code.gitea.io/gitea/services/pull" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" )