code: func parseWireRepoType(s string) config.RepoType {
  	if s == string(config.GitilesRepo) {
  		return config.GitilesRepo
  	}
  
  	return config.UnknownRepo
  }
docs: // parseWireRepoType parses the string received over the wire from
  // the luci-config service that represents the repo type.