@@ -32,14 +32,16 @@ func TestIssuesService_List_all(t *testing.T) {
32
32
"since" : "2002-02-10T15:30:00Z" ,
33
33
"page" : "1" ,
34
34
"per_page" : "2" ,
35
+ "before" : "foo" ,
36
+ "after" : "bar" ,
35
37
})
36
38
fmt .Fprint (w , `[{"number":1}]` )
37
39
})
38
40
39
41
opt := & IssueListOptions {
40
42
"all" , "closed" , []string {"a" , "b" }, "updated" , "asc" ,
41
43
time .Date (2002 , time .February , 10 , 15 , 30 , 0 , 0 , time .UTC ),
42
- ListOptions {Page : 1 , PerPage : 2 },
44
+ ListCursorOptions { Before : "foo" , After : "bar" }, ListOptions {Page : 1 , PerPage : 2 },
43
45
}
44
46
ctx := context .Background ()
45
47
issues , _ , err := client .Issues .List (ctx , true , opt )
@@ -155,14 +157,17 @@ func TestIssuesService_ListByRepo(t *testing.T) {
155
157
"sort" : "updated" ,
156
158
"direction" : "asc" ,
157
159
"since" : "2002-02-10T15:30:00Z" ,
160
+ "per_page" : "1" ,
161
+ "before" : "foo" ,
162
+ "after" : "bar" ,
158
163
})
159
164
fmt .Fprint (w , `[{"number":1}]` )
160
165
})
161
166
162
167
opt := & IssueListByRepoOptions {
163
168
"*" , "closed" , "a" , "c" , "m" , []string {"a" , "b" }, "updated" , "asc" ,
164
169
time .Date (2002 , time .February , 10 , 15 , 30 , 0 , 0 , time .UTC ),
165
- ListOptions {0 , 0 },
170
+ ListCursorOptions { PerPage : 1 , Before : "foo" , After : "bar" }, ListOptions {0 , 0 },
166
171
}
167
172
ctx := context .Background ()
168
173
issues , _ , err := client .Issues .ListByRepo (ctx , "o" , "r" , opt )
0 commit comments