Commit 219a4a8b authored by SHAWNA MONERO's avatar SHAWNA MONERO
Browse files

change names again

No related merge requests found
Showing with 3 additions and 3 deletions
+3 -3
......@@ -366,10 +366,10 @@ func (s *svc) CompareCommits(ctx context.Context, ref *RemoteRef, compareSHA str
* of commits, rather than calling GetCommit() multiple times.
* compareSHA is the base (parent) while the ref.ref is the head
*/
func (s *svc) CommitRange(ctx context.Context, compareSHA string, ref *RemoteRef) ([]*githubv3.RepositoryCommit, error) {
comp, _, err := s.rest.Repositories.CompareCommits(ctx, ref.RepoOwner, ref.RepoName, compareSHA, ref.Ref)
func (s *svc) CommitRange(ctx context.Context, baseSHA string, ref *RemoteRef) ([]*githubv3.RepositoryCommit, error) {
comp, _, err := s.rest.Repositories.CompareCommits(ctx, ref.RepoOwner, ref.RepoName, baseSHA, ref.Ref)
if err != nil {
return nil, fmt.Errorf("could not get commits from comparison for %s and %s in %s/%s. %+v", ref.Ref, compareSHA, ref.RepoOwner, ref.RepoName, err)
return nil, fmt.Errorf("could not get commits from comparison for %s and %s in %s/%s. %+v", baseSHA, ref.Ref, ref.RepoOwner, ref.RepoName, err)
}
return comp.Commits, nil
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment