Skip to content

Commit

Permalink
Merge pull request #483 from zakisk/add-pagination-in-pr-changes
Browse files Browse the repository at this point in the history
Add Pagination in Pull Request Changes List Changes on Bitbucket Server (stash)
  • Loading branch information
jenkins-x-bot authored Feb 4, 2025
2 parents 76ca270 + d1510b2 commit 560abea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scm/driver/stash/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (s *pullService) List(ctx context.Context, repo string, opts *scm.PullReque

func (s *pullService) ListChanges(ctx context.Context, repo string, number int, opts *scm.ListOptions) ([]*scm.Change, *scm.Response, error) {
namespace, name := scm.Split(repo)
path := fmt.Sprintf("rest/api/1.0/projects/%s/repos/%s/pull-requests/%d/changes", namespace, name, number)
path := fmt.Sprintf("rest/api/1.0/projects/%s/repos/%s/pull-requests/%d/changes?%s", namespace, name, number, encodeListOptions(opts))
out := new(diffstats)
res, err := s.client.do(ctx, "GET", path, nil, out)
if !out.pagination.LastPage.Bool {
Expand Down

0 comments on commit 560abea

Please sign in to comment.