Skip to content

Commit

Permalink
Merge pull request #190 from aman-harness/patch-4
Browse files Browse the repository at this point in the history
remove redundant slash from list commits api
  • Loading branch information
bradrydzewski authored Jun 5, 2022
2 parents d1b4495 + 74701d0 commit b5cf3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scm/driver/github/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (s *pullService) ListChanges(ctx context.Context, repo string, number int,
}

func (s *pullService) ListCommits(ctx context.Context, repo string, number int, opts scm.ListOptions) ([]*scm.Commit, *scm.Response, error) {
path := fmt.Sprintf("/repos/%s/pulls/%d/commits?%s", repo, number, encodeListOptions(opts))
path := fmt.Sprintf("repos/%s/pulls/%d/commits?%s", repo, number, encodeListOptions(opts))
out := []*commit{}
res, err := s.client.do(ctx, "GET", path, nil, &out)
return convertCommitList(out), res, err
Expand Down

0 comments on commit b5cf3d3

Please sign in to comment.