From 3641c6b1e064b2ea4011cd5a767591f3c3039900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Lafoucrie=CC=80re?= Date: Thu, 16 Feb 2023 19:32:55 -0500 Subject: [PATCH] Fix GetProjectApprovalRules pagination 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. --- projects.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects.go b/projects.go index c630209ee..cf695e8ce 100644 --- a/projects.go +++ b/projects.go @@ -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 }