]> source.dussan.org Git - gitea.git/commit
More `db.DefaultContext` refactor (#27265) (#27347)
authorGiteabot <teabot@gitea.io>
Fri, 29 Sep 2023 13:35:01 +0000 (21:35 +0800)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 13:35:01 +0000 (13:35 +0000)
commitf13a294b47e901e22ec02d9b9d92ddd835155f53
tree87bbe9736cda387bdcc129aca62db660849ff9f8
parent84ee02faa7086504f45cb1dc3ae01c4937653936
More `db.DefaultContext` refactor (#27265) (#27347)

Backport #27265 by @JakobDev

Part of #27065

This PR touches functions used in templates. As templates are not static
typed, errors are harder to find, but I hope I catch it all. I think
some tests from other persons do not hurt.

Co-authored-by: JakobDev <jakobdev@gmx.de>
66 files changed:
models/activities/action.go
models/activities/action_test.go
models/activities/notification.go
models/activities/notification_test.go
models/activities/user_heatmap.go
models/git/commit_status.go
models/issues/comment.go
models/issues/comment_code.go
models/issues/comment_test.go
models/issues/issue_test.go
models/issues/issue_update.go
models/issues/issue_xref.go
models/issues/review.go
models/issues/review_test.go
models/project/board.go
models/project/issue.go
models/project/project.go
models/project/project_test.go
models/repo/collaboration.go
models/repo/collaboration_test.go
models/repo/mirror.go
modules/eventsource/manager_run.go
modules/gitgraph/graph_models.go
modules/templates/util_misc.go
routers/api/v1/misc/nodeinfo.go
routers/api/v1/notify/repo.go
routers/api/v1/notify/threads.go
routers/api/v1/notify/user.go
routers/api/v1/repo/collaborators.go
routers/api/v1/repo/issue.go
routers/api/v1/repo/issue_comment.go
routers/api/v1/repo/pull.go
routers/api/v1/repo/pull_review.go
routers/web/feed/convert.go
routers/web/org/projects.go
routers/web/repo/commit.go
routers/web/repo/issue.go
routers/web/repo/projects.go
routers/web/repo/pull.go
routers/web/repo/pull_review.go
routers/web/repo/setting/setting.go
routers/web/repo/view.go
services/convert/issue_comment.go
services/convert/notification.go
services/convert/pull_review.go
services/cron/tasks_extended.go
services/externalaccount/user.go
services/feed/action.go
services/issue/comments.go
services/issue/content.go
services/issue/issue.go
services/migrations/gitea_uploader.go
services/mirror/mirror.go
services/mirror/mirror_pull.go
services/pull/pull.go
services/pull/review.go
services/uinotification/notify.go
templates/projects/list.tmpl
templates/projects/view.tmpl
templates/repo/actions/list.tmpl
templates/repo/issue/view_content/comments.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/shared/issuelist.tmpl
templates/user/dashboard/feeds.tmpl
templates/user/notification/notification_div.tmpl
tests/integration/api_pull_review_test.go