code: func appsEnsureRepo(db *gorm.DB, app *App, repo string) error {
  	if app.Repo != nil {
  		return nil
  	}
  
  	app.Repo = &repo
  
  	return appsUpdate(db, app)
  }
docs: // appsEnsureRepo will set the repo if it's not set.