Skip to content

[E] PullRequestList.InvalidateCodeComments: find code comments: needs a pointer to a slice or a map #23110

Closed
@wxiaoguang

Description

@wxiaoguang

Description

...ervices/pull/pull.go:245:func1() [E] PullRequestList.InvalidateCodeComments: find code comments: needs a pointer to a slice or a map

It seems cause by incorrect generic call:

InvalidateCodeComments:

var codeComments []*issues_model.Comment
db.Find(ctx, ..., &codeComments)

Gitea Version

1.18/main

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

N/A

Database

None

Metadata

Metadata

Assignees

Labels

skip-changelogThis PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.type/bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions