gitforge/models/repo
forgejo-backport-action 727d4a09dc [v15.0/forgejo] fix: load repo language for converting to api struct (#12789)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/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

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12789
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2026-05-28 18:02:09 +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 refactor: split AuthorizationReducer into a base RepositoryAuthorizationReducer interface 2026-03-01 17:05:53 +01:00
avatar.go
collaboration.go
collaboration_test.go
following_repo.go
following_repo_test.go
fork.go
fork_test.go
git.go
issue.go
language_stats.go [v15.0/forgejo] fix: load repo language for converting to api struct (#12789) 2026-05-28 18:02:09 +02:00
language_stats_test.go
main_test.go
mirror.go [v15.0/forgejo] fix: store pull mirror creds encrypted with keying (#11984) 2026-04-04 14:47:05 +02:00
moderation.go
moderation_test.go
pushmirror.go
pushmirror_test.go
redirect.go
redirect_test.go
release.go [v15.0/forgejo] fix: set repo_id for migrated attachment (#12362) 2026-05-01 03:42:32 +02:00
release_list.go
release_list_test.go
release_test.go [v15.0/forgejo] fix: set repo_id for migrated attachment (#12362) 2026-05-01 03:42:32 +02:00
repo.go [v15.0/forgejo] fix: load repo language for converting to api struct (#12789) 2026-05-28 18:02:09 +02:00
repo_flags.go
repo_flags_test.go
repo_indexer.go
repo_list.go [v15.0/forgejo] fix: make /repos/search?uid=-2 return zero results, no repos with that owner (#12150) 2026-04-16 21:00:50 +02:00
repo_list_test.go feat(ui): create repo-specific access tokens (#11696) 2026-03-23 15:29:08 +01:00
repo_repository.go
repo_test.go
repo_unit.go [v15.0/forgejo]: chore: add modernizer linter (#11949) 2026-04-02 16:54:46 +02:00
repo_unit_test.go
search.go
star.go
star_test.go
topic.go [v15.0/forgejo] chore: tidy up uploading migration code (#12593) 2026-05-16 12:33:08 +02:00
topic_test.go
update.go
update_test.go
upload.go [v15.0/forgejo]: chore: add modernizer linter (#11949) 2026-04-02 16:54:46 +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
watch_test.go
wiki.go
wiki_test.go