code: func (s *RepositoriesService) ListReleases(ctx context.Context, owner, repo string, opt *ListOptions) ([]*RepositoryRelease, *Response, error) {
  	u := fmt.Sprintf("repos/%s/%s/releases", owner, repo)
  	u, err := addOptions(u, opt)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	req, err := s.client.NewRequest("GET", u, nil)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	var releases []*RepositoryRelease
  	resp, err := s.client.Do(ctx, req, &releases)
  	if err != nil {
  		return nil, resp, err
  	}
  	return releases, resp, nil
  }
docs: // ListReleases lists the releases for a repository.
  //
  // GitHub API docs: https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository