forgejo/routers/api/v1/repo
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
..
blob.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
branch.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
collaborators.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
commits.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
file.go Allow API to create file on empty repo (#19224) 2022-03-28 21:48:41 +02:00
fork.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
git_hook.go
git_ref.go
hook.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
hook_test.go
issue.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
issue_comment.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
issue_label.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
issue_reaction.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
issue_stopwatch.go Use ctx instead of db.DefaultContext in some packages(routers/services/modules) (#19163) 2022-03-22 16:22:54 +01:00
issue_subscription.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
issue_tracked_time.go Update HTTP status codes to modern codes (#18063) 2022-03-23 12:54:07 +08:00
key.go Use ctx instead of db.DefaultContext in some packages(routers/services/modules) (#19163) 2022-03-22 16:22:54 +01:00
label.go
language.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
main_test.go
migrate.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
milestone.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
mirror.go
notes.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
patch.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
pull.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
pull_review.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
release.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
release_attachment.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
release_tags.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
repo.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
repo_test.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
star.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
status.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
subscriber.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
tag.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00
teams.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
topic.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
transfer.go Move organization related structs into sub package (#18518) 2022-03-29 14:29:02 +08:00
tree.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
wiki.go Renamed ctx.User to ctx.Doer. (#19161) 2022-03-22 15:03:22 +08:00