Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Fix GetProjectApprovalRules pagination
Browse files Browse the repository at this point in the history
As pointed out by @bmendric, the new `GetProjectApprovalRulesListsOptions`
parameter introduced in #1641 wasn't used in the
`GetProjectApprovalRules` function. The parameter is now used in the
`NewRequest` function as expected.
  • Loading branch information
gravis committed Feb 17, 2023
1 parent b91e64b commit 3641c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,7 @@ func (s *ProjectsService) GetProjectApprovalRules(pid interface{}, opt *GetProje
}
u := fmt.Sprintf("projects/%s/approval_rules", PathEscape(project))

req, err := s.client.NewRequest(http.MethodGet, u, nil, options)
req, err := s.client.NewRequest(http.MethodGet, u, opt, options)
if err != nil {
return nil, nil, err
}
Expand Down

0 comments on commit 3641c6b

Please sign in to comment.