From 083c3ee659c6c5542687f3bafae68cbc24dbc90f Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sat, 25 Jun 2022 18:07:39 +0800 Subject: db: refactor "action" table to use GORM (#7054) Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- internal/db/wiki.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal/db/wiki.go') diff --git a/internal/db/wiki.go b/internal/db/wiki.go index 5bcdd3f1..9f184929 100644 --- a/internal/db/wiki.go +++ b/internal/db/wiki.go @@ -18,6 +18,7 @@ import ( "github.com/gogs/git-module" "gogs.io/gogs/internal/conf" + "gogs.io/gogs/internal/repoutil" "gogs.io/gogs/internal/sync" ) @@ -37,7 +38,9 @@ func ToWikiPageName(urlString string) string { } // WikiCloneLink returns clone URLs of repository wiki. -func (repo *Repository) WikiCloneLink() (cl *CloneLink) { +// +// Deprecated: Use repoutil.NewCloneLink instead. +func (repo *Repository) WikiCloneLink() (cl *repoutil.CloneLink) { return repo.cloneLink(true) } -- cgit v1.2.3