gitea/models
Lunny Xiao 6410c34b7f
Refactor ref type (#33242)
Major changes:

1. do not sync ".keep" file during tests
2. fix incorrect route handler and empty repo handling (backported as #33253 with tests)
3. do not use `RepoRef`: most of the calls are abuses.
4. Use `git.RefType` instead of a new type definition `RepoRefType` on `context`.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-14 15:35:34 +08:00
..
actions Refactor RefName (#33234) 2025-01-13 14:01:53 +08:00
activities Refactor RefName (#33234) 2025-01-13 14:01:53 +08:00
admin Fix javascript error when an anonymous user visiting migration page (#32144) 2024-10-02 04:37:16 +00:00
asymkey Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
auth Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
avatars Replace 10 more gt- classes with tw- (#29945) 2024-03-22 13:45:10 +00:00
db Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
dbfs Enable `unparam` linter (#31277) 2024-06-11 18:47:45 +00:00
fixtures Let API create and edit system webhooks, attempt 2 (#33180) 2025-01-13 17:17:39 +00:00
git Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
issues Fix unpin hint on the pinned pull requests (#33207) 2025-01-12 00:05:33 +00:00
migrations Automerge supports deleting branch automatically after merging (#32343) 2025-01-10 03:51:03 +08:00
organization Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
packages Refactor maven package registry (#33049) 2024-12-31 05:30:52 +00:00
perm Support public code/issue access for private repositories (#33127) 2025-01-14 01:53:34 +00:00
project Use project's redirect url instead of composing url (#33058) 2024-12-31 19:19:53 +08:00
pull Automerge supports deleting branch automatically after merging (#32343) 2025-01-10 03:51:03 +08:00
renderhelper Refactor render system (orgmode) (#32671) 2024-11-29 16:08:29 +08:00
repo Fix missing license when sync mirror (#33255) 2025-01-14 05:44:12 +00:00
secret Clarify Actions resources ownership (#31724) 2024-08-01 09:04:04 +00:00
shared/types Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
system Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
unit Add `DEFAULT_MIRROR_REPO_UNITS` and `DEFAULT_TEMPLATE_REPO_UNITS` options (#32416) 2024-11-11 00:11:00 +00:00
unittest Refactor ref type (#33242) 2025-01-14 15:35:34 +08:00
user Some small refactors (#33144) 2025-01-10 06:00:06 +00:00
webhook Let API create and edit system webhooks, attempt 2 (#33180) 2025-01-13 17:17:39 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
repo.go Fix issue comment number (#30556) 2024-12-30 14:35:46 -08:00
repo_test.go Fix issue comment number (#30556) 2024-12-30 14:35:46 -08:00