-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Move organization related structs into sub package #18518
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
cc424f2
to
41d2afa
Compare
41d2afa
to
81c5d94
Compare
727033b
to
0dd262a
Compare
Codecov Report
@@ Coverage Diff @@
## main #18518 +/- ##
==========================================
- Coverage 46.58% 46.47% -0.11%
==========================================
Files 855 863 +8
Lines 122953 122950 -3
==========================================
- Hits 57276 57146 -130
- Misses 58764 58879 +115
- Partials 6913 6925 +12
Continue to review full report at Codecov.
|
Maybe these kinds of refactors should be done in batches. 93 files? it's quite a lot to go trough and not to miss anything, it has happen before that these refactors changed a little aspect of code and broke something(templates NPE). |
What did you mean in batches? Although there are 93 files changed, but more of them are |
Yeah NVM about that comment, misread the code. But to note, while most of these are automated changes with simple copy & paste, the generated diff still show the raw changes and can be hard to skim trough. |
@lunny |
dc29e80
to
abf24f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 nitpicks and 1 general question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per: #18518 (comment) replace db.DefaultContext
-> ctx
where possible.
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
make L-G-T-M work. |
* giteaoffical/main: (31 commits) Add Package Registry (go-gitea#16510) Show messages for users if the ROOT_URL is wrong, show JavaScript errors (go-gitea#18971) [skip ci] Updated translations via Crowdin Make git.OpenRepository accept Context (go-gitea#19260) Use full output of git show-ref --tags to get tags for PushUpdateAddTag (go-gitea#19235) When conflicts have been previously detected ensure that they can be resolved (go-gitea#19247) More commit info from API (go-gitea#19252) Move some issue methods as functions (go-gitea#19255) Move project files into models/project sub package (go-gitea#17704) Granular webhook events in editHook (go-gitea#19251) Provide configuration to allow camo-media proxying (go-gitea#12802) Move init repository related functions to modules (go-gitea#19159) Move organization related structs into sub package (go-gitea#18518) Refactor repo clone button and repo clone links, fix JS error on empty repo page (go-gitea#19208) Show last cron messages on monitor page (go-gitea#19223) Allow API to create file on empty repo (go-gitea#19224) Use goproxy.io instead of goproxy.cn (go-gitea#19242) New cron task: delete old system notices (go-gitea#19219) Let web and API routes have different auth methods group (go-gitea#19168) Only send webhook events to active system webhooks and only deliver to active hooks (go-gitea#19234) ...
regression from go-gitea#18518
This PR creates a new sub package
models/organization
and move most organization related code there.