mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Add create, list, view issue
This commit is contained in:
@@ -372,6 +372,13 @@ func RepoPath(userName, repoName string) string {
|
||||
}
|
||||
|
||||
func UpdateRepository(repo *Repository) error {
|
||||
if len(repo.Description) > 255 {
|
||||
repo.Description = repo.Description[:255]
|
||||
}
|
||||
if len(repo.Website) > 255 {
|
||||
repo.Website = repo.Website[:255]
|
||||
}
|
||||
|
||||
_, err := orm.Id(repo.Id).UseBool().Cols("description", "website").Update(repo)
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user