Skip to content

Commit 83608f7

Browse files
authored
Merge pull request xanzy#1653 from gravis/project-approval-rules
Fix GetProjectApprovalRules pagination
2 parents b91e64b + 3641c6b commit 83608f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,7 @@ func (s *ProjectsService) GetProjectApprovalRules(pid interface{}, opt *GetProje
17881788
}
17891789
u := fmt.Sprintf("projects/%s/approval_rules", PathEscape(project))
17901790

1791-
req, err := s.client.NewRequest(http.MethodGet, u, nil, options)
1791+
req, err := s.client.NewRequest(http.MethodGet, u, opt, options)
17921792
if err != nil {
17931793
return nil, nil, err
17941794
}

0 commit comments

Comments
 (0)