code: func (m *GormCodebaseRepository) LoadByRepo(ctx context.Context, spaceID uuid.UUID, repository string) (*Codebase, error) {
  	defer goa.MeasureSince([]string{"goa", "db", "codebase", "loadbyrepository"}, time.Now())
  	var obj Codebase
  
  	tx := m.db.Where("url=? and space_id=?", repository, spaceID.String()).First(&obj)
  	if tx.RecordNotFound() {
  		return nil, errors.NewNotFoundError("codebase url", repository)
  	}
  	if tx.Error != nil {
  		return nil, errors.NewInternalError(ctx, tx.Error)
  	}
  	return &obj, nil
  }
docs: // LoadByRepo returns a single codebase found for input repository url