forked from NYANDEV/forgejo
* Fix bug when migrate from API (#8631) * fix bug when migrate from API * fix test * fix test * improve * fix error message * Update routers/api/v1/repo/repo.go * remove unrelated Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
c63a80138a
commit
cb3fe4cbf1
4 changed files with 31 additions and 10 deletions
|
@ -2811,3 +2811,9 @@ func (repo *Repository) GetOriginalURLHostname() string {
|
|||
|
||||
return u.Host
|
||||
}
|
||||
|
||||
// UpdateRepositoryCols updates repository's columns
|
||||
func UpdateRepositoryCols(repo *Repository, cols ...string) error {
|
||||
_, err := x.ID(repo.ID).Cols(cols...).Update(repo)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue