code: func (s *ReleaseServer) GetHistory(ctx context.Context, req *tpb.GetHistoryRequest) (*tpb.GetHistoryResponse, error) {
  	if err := validateReleaseName(req.Name); err != nil {
  		s.Log("getHistory: Release name is invalid: %s", req.Name)
  		return nil, err
  	}
  
  	s.Log("getting history for release %s", req.Name)
  	h, err := s.env.Releases.History(req.Name)
  	if err != nil {
  		return nil, err
  	}
  
  	relutil.Reverse(h, relutil.SortByRevision)
  
  	var resp tpb.GetHistoryResponse
  	for i := 0; i < min(len(h), int(req.Max)); i++ {
  		resp.Releases = append(resp.Releases, h[i])
  	}
  
  	return &resp, nil
  }
docs: // GetHistory gets the history for a given release.