forgejo/models
Lunny Xiao b06b9a056c
Move organization related structs into sub package (#18518)
* Move organization related structs into sub package

* Fix test

* Fix lint

* Move more functions into sub packages

* Fix bug

* Fix test

* Update models/organization/team_repo.go

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>

* Apply suggestions from code review

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>

* Fix fmt

* Follow suggestion from @Gusted

* Fix test

* Fix test

* Fix bug

* Use ctx but db.DefaultContext on routers

* Fix bug

* Fix bug

* fix bug

* Update models/organization/team_user.go

* Fix bug

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-03-29 14:29:02 +08:00
..
admin New cron task: delete old system notices (#19219) 2022-03-28 13:54:59 +01:00
appstate
asymkey Fix the bug: deploy key with write access can not push (#19010) 2022-03-22 17:29:07 +08:00
auth
avatars
db
fixtures Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
foreignreference Store the foreign ID of issues during migration (#18446) 2022-03-17 18:08:35 +01:00
issues
migrations nit fix (#19116) 2022-03-17 20:04:36 +02:00
organization Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
perm
repo Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
unit
unittest
user Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
webhook Only send webhook events to active system webhooks and only deliver to active hooks (#19234) 2022-03-28 11:17:21 +08:00
access.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
access_test.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
action.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
action_list.go RSS/Atom support for Repos (#19055) 2022-03-13 17:40:47 +01:00
action_test.go RSS/Atom support for Repos (#19055) 2022-03-13 17:40:47 +01:00
branches.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
branches_test.go
commit.go
commit_status.go
commit_status_test.go
consistency.go
consistency_test.go
engine_test.go
error.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
fixture_generation.go
fixture_test.go
helper.go
helper_directory.go
helper_environment.go Fix the bug: deploy key with write access can not push (#19010) 2022-03-22 17:29:07 +08:00
issue.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
issue_assignees.go
issue_assignees_test.go
issue_comment.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
issue_comment_list.go
issue_comment_test.go
issue_dependency.go
issue_dependency_test.go
issue_label.go
issue_label_test.go
issue_list.go
issue_list_test.go
issue_lock.go
issue_milestone.go
issue_milestone_test.go
issue_reaction.go
issue_reaction_test.go
issue_stopwatch.go
issue_stopwatch_test.go
issue_test.go Store the foreign ID of issues during migration (#18446) 2022-03-17 18:08:35 +01:00
issue_tracked_time.go
issue_tracked_time_test.go
issue_user.go
issue_user_test.go
issue_watch.go
issue_watch_test.go
issue_xref.go
issue_xref_test.go
lfs.go Improve SyncMirrors logging (#19045) 2022-03-10 10:09:48 +00:00
lfs_lock.go
main_test.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
migrate.go Store the foreign ID of issues during migration (#18446) 2022-03-17 18:08:35 +01:00
migrate_test.go Store the foreign ID of issues during migration (#18446) 2022-03-17 18:08:35 +01:00
notification.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
notification_test.go
org.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
org_team.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
org_team_test.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
org_test.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
project.go
project_board.go
project_issue.go
project_test.go
protected_tag.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
protected_tag_test.go
pull.go
pull_list.go
pull_test.go
release.go
repo.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
repo_activity.go
repo_collaboration.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
repo_collaboration_test.go
repo_generate.go Set the default branch for repositories generated from templates (#19136) 2022-03-27 03:56:28 +01:00
repo_generate_test.go
repo_list.go
repo_list_test.go
repo_permission.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
repo_permission_test.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
repo_test.go
repo_transfer.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
repo_transfer_test.go
review.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
review_test.go
statistic.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
task.go
token.go
token_test.go
upload.go
user.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
user_heatmap.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
user_heatmap_test.go RSS/Atom support for Repos (#19055) 2022-03-13 17:40:47 +01:00
user_test.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
userlist.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
userlist_test.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00