You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/api/v1
Hugo Hoitink 5579345549
Update object repo with the migrated repository (#18684)
When migrating a repository (from GitHub) using the API (**POST** `repos/migrate`), the Code Indexer is not updated. Searching in the user interface will not return any results.

When migrating the same repository using **+/New Migration** in the web interface, the search index is updated and searching works as expected.

Caused by the fact that object `repo` is never updated with the migrated repo so `setting.Indexer.RepoIndexerEnabled && !repo.IsEmpty` in `modules/notification/indexer/indexer.go:NotifyMigrateRepository` always evaluates to `false`.

Tested with gitea:1.16.1, MariaDB:10, Breve in `Run Mode: Dev`.
3 years ago
..
admin format with gofumpt (#18184) 3 years ago
misc format with gofumpt (#18184) 3 years ago
notify Simplify parameter types (#18006) 3 years ago
org Add `GetUserTeams` (#18499) 3 years ago
repo Update object repo with the migrated repository (#18684) 3 years ago
settings Make mirror feature more configurable (#16957) 4 years ago
swagger Add API to get issue/pull comments and events (timeline) (#17403) 3 years ago
user API: Return primary language and repository language stats API URL (#18396) 3 years ago
utils format with gofumpt (#18184) 3 years ago
api.go format with gofumpt (#18184) 3 years ago