gitforge/models/repo
Gusted 6c85dffb78 fix: load repo language for converting to api struct (#12737)
Load the primary language of the repository when it's converted to a API struct. This is simpler than adding `LoadAttributes` to a lot of places.

Resolves forgejo/forgejo#12729

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12737
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
2026-05-28 17:00:40 +02:00
..
fixtures/TestFindRepoAttachmentsByUUID chore: add unit test 2026-03-06 11:21:07 -07:00
TestGetUserForkLax fix: reduce deadlocks merging PRs by using caching for repo issue count stats (#9922) 2025-10-31 23:50:05 +01:00
TestGetUserForkLaxWithTwoChoices fix: reduce deadlocks merging PRs by using caching for repo issue count stats (#9922) 2025-10-31 23:50:05 +01:00
TestSearchRepositoryIDsByCondition fix: reduce deadlocks merging PRs by using caching for repo issue count stats (#9922) 2025-10-31 23:50:05 +01:00
archive_download_count.go
archive_download_count_test.go
archiver.go
attachment.go fix: check that attachments belong to correct resource 2026-03-06 11:21:07 -07:00
attachment_test.go chore: add unit test 2026-03-06 11:21:07 -07:00
authz.go refactor: split AuthorizationReducer into a base RepositoryAuthorizationReducer interface 2026-03-01 17:05:53 +01:00
avatar.go feat: serve downsized versions of avatars (#11242) 2026-05-16 12:04:05 +02:00
collaboration.go feat: add foreign keys to table collaboration (#9724) 2025-10-18 02:50:50 +02:00
collaboration_test.go
following_repo.go
following_repo_test.go
fork.go feat: allow PRs between common forks of the same base repository (#9045) 2025-10-01 04:58:12 +02:00
fork_test.go feat: allow PRs between common forks of the same base repository (#9045) 2025-10-01 04:58:12 +02:00
git.go
issue.go
language_stats.go fix: load repo language for converting to api struct (#12737) 2026-05-28 17:00:40 +02:00
language_stats_test.go
main_test.go chore: move all test blank imports in a single package (#10662) 2026-01-02 05:32:32 +01:00
mirror.go fix: store pull mirror creds encrypted with keying (#11909) 2026-04-04 13:53:22 +02:00
moderation.go feat: render a link to poster profile next to the ID within shadow copy details (#10194) 2025-12-09 15:19:10 +01:00
moderation_test.go
pushmirror.go feat: cache derived keys for faster keying (#10114) 2025-11-16 14:29:14 +01:00
pushmirror_test.go
redirect.go
redirect_test.go
release.go fix: set repo_id for migrated attachment (#12357) 2026-05-01 01:24:32 +02:00
release_list.go
release_list_test.go
release_test.go fix: set repo_id for migrated attachment (#12357) 2026-05-01 01:24:32 +02:00
repo.go fix: load repo language for converting to api struct (#12737) 2026-05-28 17:00:40 +02:00
repo_flags.go
repo_flags_test.go
repo_indexer.go
repo_list.go feat: add "Forgejo Actions (Local)" authorized integration UI (#12672) 2026-05-23 16:26:28 +02:00
repo_list_test.go feat: add "Forgejo Actions (Local)" authorized integration UI (#12672) 2026-05-23 16:26:28 +02:00
repo_repository.go
repo_test.go
repo_unit.go chore: upgrade to https://code.forgejo.org/xorm/xorm v1.4.0 (#12639) 2026-05-20 20:20:08 +02:00
repo_unit_test.go
search.go
star.go
star_test.go
topic.go chore: tidy up uploading migration code (#12577) 2026-05-16 11:46:14 +02:00
topic_test.go
update.go chore: remove redundant code (#9378) 2025-09-22 09:18:19 +02:00
update_test.go chore: remove redundant code (#9378) 2025-09-22 09:18:19 +02:00
upload.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
user_repo.go feat: implement fine-grained access tokens in /user/subscriptions & /users/{username}/subscriptions 2026-03-01 17:05:53 +01:00
user_repo_test.go
watch.go fix: decrease watch count when blocking user (#10882) 2026-01-26 22:58:22 +01:00
watch_test.go chore: remove dead code in WatchIfAuto and general model documentation (#10880) 2026-01-26 12:03:08 +01:00
wiki.go
wiki_test.go