diff options
author | Joe Chen <jc@unknwon.io> | 2022-06-25 18:07:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 18:07:39 +0800 |
commit | 083c3ee659c6c5542687f3bafae68cbc24dbc90f (patch) | |
tree | 0103bf3b5c5ebfccd368a7cb6a425a521fd669d9 /internal/db/wiki.go | |
parent | 9df4e3ae3c555a86f691f0d78a43834842e77d8b (diff) |
db: refactor "action" table to use GORM (#7054)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/db/wiki.go')
-rw-r--r-- | internal/db/wiki.go | 5 |
1 files changed, 4 insertions, 1 deletions
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) } |