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
TestGetUserForkLaxWithTwoChoices
TestSearchRepositoryIDsByCondition
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
avatar.go feat: serve downsized versions of avatars (#11242) 2026-05-16 12:04:05 +02:00
collaboration.go
collaboration_test.go
following_repo.go
following_repo_test.go
fork.go
fork_test.go
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
mirror.go fix: store pull mirror creds encrypted with keying (#11909) 2026-04-04 13:53:22 +02:00
moderation.go
moderation_test.go
pushmirror.go
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
update_test.go
upload.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
user_repo.go
user_repo_test.go
watch.go
watch_test.go
wiki.go
wiki_test.go