gitea/models
Lunny Xiao 26095115f4
Move some repository related code into sub package ()
* Move some repository related code into sub package

* Move more repository functions out of models

* Fix lint

* Some performance optimization for webhooks and others

* some refactors

* Fix lint

* Fix

* Update modules/repository/delete.go

Co-authored-by: delvh <dev.lh@web.de>

* Fix test

* Merge

* Fix test

* Fix test

* Fix test

* Fix test

Co-authored-by: delvh <dev.lh@web.de>
..
admin Use a struct as test options ()
appstate Sync gitea app path for git hooks and authorized keys when starting ()
asymkey Move some repository related code into sub package ()
auth Move almost all functions' parameter db.Engine to context.Context ()
avatars format with gofumpt ()
db Move some repository related code into sub package ()
fixtures Exclude Archived repos from Dashboard Milestones ()
foreignreference Store the foreign ID of issues during migration ()
issues Move almost all functions' parameter db.Engine to context.Context ()
migrations Fix typo ()
organization Move almost all functions' parameter db.Engine to context.Context ()
packages Add Helm Chart registry ()
perm Move almost all functions' parameter db.Engine to context.Context ()
project Move almost all functions' parameter db.Engine to context.Context ()
pull Delete related PullAutoMerge and ReviewState on User/Repo Deletion ()
repo Move some repository related code into sub package ()
unit Fix incorrect translation key ()
unittest Use better message for consistency check ()
user Move almost all functions' parameter db.Engine to context.Context ()
webhook Move some repository related code into sub package ()
action.go Move some repository related code into sub package ()
action_list.go Move almost all functions' parameter db.Engine to context.Context ()
action_test.go GetFeeds must always discard actions with dangling repo_id ()
branches.go Move almost all functions' parameter db.Engine to context.Context ()
branches_test.go more context for models ()
commit.go Collaborator trust model should trust collaborators ()
commit_status.go Move almost all functions' parameter db.Engine to context.Context ()
commit_status_test.go Move repository model into models/repo ()
consistency.go Fix order by parameter ()
consistency_test.go [doctor] Add check/fix for bogus action rows ()
engine_test.go Refactor install page (db type) ()
error.go Delete related PullAutoMerge and ReviewState on User/Repo Deletion ()
fixture_generation.go Move access and repo permission to models/perm/access ()
fixture_test.go Decouple unit test code from business code ()
issue.go Move some repository related code into sub package ()
issue_assignees.go Move almost all functions' parameter db.Engine to context.Context ()
issue_assignees_test.go Move almost all functions' parameter db.Engine to context.Context ()
issue_comment.go Move almost all functions' parameter db.Engine to context.Context ()
issue_comment_list.go Move almost all functions' parameter db.Engine to context.Context ()
issue_comment_test.go Propagate context and ensure git commands run in request context ()
issue_dependency.go Move almost all functions' parameter db.Engine to context.Context ()
issue_dependency_test.go Use for a repo action one database transaction ()
issue_label.go Move almost all functions' parameter db.Engine to context.Context ()
issue_label_test.go Move almost all functions' parameter db.Engine to context.Context ()
issue_list.go Move some repository related code into sub package ()
issue_list_test.go Decouple unit test, remove intermediate `unittestbridge` package ()
issue_lock.go Move milestone to models/issues/ ()
issue_project.go Move almost all functions' parameter db.Engine to context.Context ()
issue_stopwatch.go Only return valid stopwatches ()
issue_stopwatch_test.go Move almost all functions' parameter db.Engine to context.Context ()
issue_test.go Move almost all functions' parameter db.Engine to context.Context ()
issue_tracked_time.go Move almost all functions' parameter db.Engine to context.Context ()
issue_tracked_time_test.go Move almost all functions' parameter db.Engine to context.Context ()
issue_user.go Move some repository related code into sub package ()
issue_user_test.go Move repository model into models/repo ()
issue_watch.go Move almost all functions' parameter db.Engine to context.Context ()
issue_watch_test.go Move almost all functions' parameter db.Engine to context.Context ()
issue_xref.go Move almost all functions' parameter db.Engine to context.Context ()
issue_xref_test.go Move almost all functions' parameter db.Engine to context.Context ()
lfs.go Move some repository related code into sub package ()
lfs_lock.go Move access and repo permission to models/perm/access ()
main_test.go Use a struct as test options ()
migrate.go Move milestone to models/issues/ ()
migrate_test.go Move milestone to models/issues/ ()
notification.go Move some repository related code into sub package ()
notification_test.go Move almost all functions' parameter db.Engine to context.Context ()
org.go Move some repository related code into sub package ()
org_team.go Move almost all functions' parameter db.Engine to context.Context ()
org_team_test.go Move access and repo permission to models/perm/access ()
org_test.go Move organization related structs into sub package ()
protected_tag.go Move organization related structs into sub package ()
protected_tag_test.go Move repository model into models/repo ()
pull.go Make WIP prefixes case insensitive, e.g. allow `Draft` as a WIP prefix ()
pull_list.go Move almost all functions' parameter db.Engine to context.Context ()
pull_test.go Move almost all functions' parameter db.Engine to context.Context ()
release.go improvement some release related code ()
repo.go Move some repository related code into sub package ()
repo_activity.go Fix some slice problems (incorrect slice length) ()
repo_collaboration.go Fix order by parameter ()
repo_collaboration_test.go Move access and repo permission to models/perm/access ()
repo_permission_test.go Move access and repo permission to models/perm/access ()
repo_test.go Move some repository related code into sub package ()
repo_transfer.go Move almost all functions' parameter db.Engine to context.Context ()
repo_transfer_test.go Move repository model into models/repo ()
review.go Move almost all functions' parameter db.Engine to context.Context ()
review_test.go Move almost all functions' parameter db.Engine to context.Context ()
statistic.go Estimate Action Count in Statistics ()
task.go Move almost all functions' parameter db.Engine to context.Context ()
token.go Use base32 for 2FA scratch token ()
token_test.go A better go code formatter, and now `make fmt` can run in Windows ()
upload.go Remove NewSession method from db.Engine interface ()
user.go Move almost all functions' parameter db.Engine to context.Context ()
user_heatmap.go Move organization related structs into sub package ()
user_heatmap_test.go RSS/Atom support for Repos ()
user_test.go Move organization related structs into sub package ()