@@ -122,7 +122,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
122
122
"user-agent" : userAgent ,
123
123
authorization : `bearer ${ BEARER } ` ,
124
124
} ,
125
- }
125
+ } ,
126
126
)
127
127
. postOnce (
128
128
"https://api.github.com/repos/octocat/hello-world/issues" ,
@@ -133,7 +133,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
133
133
"user-agent" : userAgent ,
134
134
authorization : `token secret123` ,
135
135
} ,
136
- }
136
+ } ,
137
137
) ;
138
138
const auth = createAppAuth ( {
139
139
appId : APP_ID ,
@@ -238,7 +238,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
238
238
239
239
return request (
240
240
`HEAD /repos/{owner}/{repo}/pulls/{number}` ,
241
- Object . assign ( options , { number : 2 } )
241
+ Object . assign ( options , { number : 2 } ) ,
242
242
) ;
243
243
} )
244
244
@@ -260,13 +260,13 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
260
260
status : 200 ,
261
261
body : Buffer . from (
262
262
"1f8b0800000000000003cb4f2ec9cfce2cd14dcbac28292d4ad5cd2f4ad74d4f2dd14d2c4acec82c4bd53580007d060a0050bfb9b9a90203c428741ac2313436343307222320dbc010a8dc5c81c194124b8905a5c525894540a714e5e797e05347481edd734304e41319ff41ae8e2ebeae7ab92964d801d46f66668227fe0d4d51e3dfc8d0c8d808284f75df6201233cfe951590627ba01d330a46c1281805a3806e000024cb59d6000a0000" ,
263
- "hex"
263
+ "hex" ,
264
264
) ,
265
265
headers : {
266
266
"content-type" : "application/x-gzip" ,
267
267
"content-length" : "172" ,
268
268
} ,
269
- }
269
+ } ,
270
270
) ;
271
271
272
272
return request ( "GET /repos/{owner}/{repo}/{archive_format}/{ref}" , {
@@ -295,13 +295,13 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
295
295
// body: Buffer.from('1f8b0800000000000003cb4f2ec9cfce2cd14dcbac28292d4ad5cd2f4ad74d4f2dd14d2c4acec82c4bd53580007d060a0050bfb9b9a90203c428741ac2313436343307222320dbc010a8dc5c81c194124b8905a5c525894540a714e5e797e05347481edd734304e41319ff41ae8e2ebeae7ab92964d801d46f66668227fe0d4d51e3dfc8d0c8d808284f75df6201233cfe951590627ba01d330a46c1281805a3806e000024cb59d6000a0000', 'hex'),
296
296
body : Buffer . from (
297
297
"1f8b0800000000000003cb4f2ec9cfce2cd14dcbac28292d4ad5cd2f4ad74d4f2dd14d2c4acec82c4bd53580007d060a0050bfb9b9a90203c428741ac2313436343307222320dbc010a8dc5c81c194124b8905a5c525894540a714e5e797e05347481edd734304e41319ff41ae8e2ebeae7ab92964d801d46f66668227fe0d4d51e3dfc8d0c8d808284f75df6201233cfe951590627ba01d330a46c1281805a3806e000024cb59d6000a0000" ,
298
- "hex"
298
+ "hex" ,
299
299
) ,
300
300
headers : {
301
301
"content-type" : "application/x-gzip" ,
302
302
"content-length" : "172" ,
303
303
} ,
304
- }
304
+ } ,
305
305
) ;
306
306
307
307
return request (
@@ -310,7 +310,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
310
310
request : {
311
311
fetch : mock ,
312
312
} ,
313
- }
313
+ } ,
314
314
) ;
315
315
} ) ;
316
316
@@ -396,7 +396,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
396
396
}
397
397
globalThis . fetch = originalFetch ;
398
398
expect ( error ?. message ) . toEqual (
399
- 'Global "fetch" not found. Please provide `options.request.fetch` to octokit or upgrade to node@18 or newer.'
399
+ 'Global "fetch" not found. Please provide `options.request.fetch` to octokit or upgrade to node@18 or newer.' ,
400
400
) ;
401
401
} ) ;
402
402
@@ -445,7 +445,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
445
445
. get (
446
446
( _url , { headers } ) =>
447
447
( headers as ResponseHeaders ) [ "user-agent" ] === "funky boom boom pow" ,
448
- 200
448
+ 200 ,
449
449
) ;
450
450
451
451
return request ( "GET /" , {
@@ -491,7 +491,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
491
491
expect ( error . status ) . toEqual ( 422 ) ;
492
492
expect ( error . response . headers [ "x-foo" ] ) . toEqual ( "bar" ) ;
493
493
expect ( error . response . data . documentation_url ) . toEqual (
494
- "https://developer.github.com/v3/issues/labels/#create-a-label"
494
+ "https://developer.github.com/v3/issues/labels/#create-a-label" ,
495
495
) ;
496
496
expect ( error . response . data . errors ) . toEqual ( [
497
497
{ resource : "Label" , code : "invalid" , field : "color" } ,
@@ -531,7 +531,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
531
531
} ,
532
532
} ) . catch ( ( error ) => {
533
533
expect ( error . request . url ) . toEqual (
534
- "https://api.github.com/?client_id=123&client_secret=[REDACTED]"
534
+ "https://api.github.com/?client_id=123&client_secret=[REDACTED]" ,
535
535
) ;
536
536
} ) ;
537
537
} ) ;
@@ -557,7 +557,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
557
557
return request ( "https://www.githubstatus.com/api/v2/status.json" ) . then (
558
558
( { url } ) => {
559
559
expect ( url ) . toEqual ( "https://www.githubstatus.com/api/v2/status.json" ) ;
560
- }
560
+ } ,
561
561
) ;
562
562
} ) ;
563
563
@@ -608,7 +608,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
608
608
headers : {
609
609
"x-foo" : "bar" ,
610
610
} ,
611
- }
611
+ } ,
612
612
) ;
613
613
614
614
const hook = ( request : RequestInterface , options : EndpointOptions ) => {
@@ -728,7 +728,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
728
728
accept : "application/vnd.github.v3+json" ,
729
729
authorization : "token secret123" ,
730
730
} ,
731
- }
731
+ } ,
732
732
) ;
733
733
734
734
return request ( "PUT /repos/{owner}/{repo}/branches/{branch}/protection" , {
@@ -758,7 +758,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
758
758
. catch ( ( error ) => {
759
759
expect ( error ) . toHaveProperty (
760
760
"message" ,
761
- `Validation failed: "Only organization repositories can have users and team restrictions", {"resource":"Search","field":"q","code":"invalid"}`
761
+ `Validation failed: "Only organization repositories can have users and team restrictions", {"resource":"Search","field":"q","code":"invalid"}` ,
762
762
) ;
763
763
} ) ;
764
764
} ) ;
@@ -782,7 +782,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
782
782
authorization : "token 0000000000000000000000000000000000000001" ,
783
783
"user-agent" : userAgent ,
784
784
} ,
785
- }
785
+ } ,
786
786
) ;
787
787
788
788
const warn = jest . fn ( ) ;
@@ -797,7 +797,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
797
797
expect ( response . data ) . toEqual ( { id : 123 } ) ;
798
798
expect ( warn ) . toHaveBeenCalledTimes ( 1 ) ;
799
799
expect ( warn ) . toHaveBeenCalledWith (
800
- '[@octokit/request] "GET https://api.github.com/teams/123" is deprecated. It is scheduled to be removed on Mon, 01 Feb 2021 00:00:00 GMT. See https://developer.github.com/changes/2020-01-21-moving-the-team-api-endpoints/'
800
+ '[@octokit/request] "GET https://api.github.com/teams/123" is deprecated. It is scheduled to be removed on Mon, 01 Feb 2021 00:00:00 GMT. See https://developer.github.com/changes/2020-01-21-moving-the-team-api-endpoints/' ,
801
801
) ;
802
802
} ) ;
803
803
} ) ;
@@ -820,7 +820,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
820
820
authorization : "token 0000000000000000000000000000000000000001" ,
821
821
"user-agent" : userAgent ,
822
822
} ,
823
- }
823
+ } ,
824
824
) ;
825
825
826
826
const warn = jest . fn ( ) ;
@@ -835,7 +835,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
835
835
expect ( response . data ) . toEqual ( { id : 123 } ) ;
836
836
expect ( warn ) . toHaveBeenCalledTimes ( 1 ) ;
837
837
expect ( warn ) . toHaveBeenCalledWith (
838
- '[@octokit/request] "GET https://api.github.com/teams/123" is deprecated. It is scheduled to be removed on Mon, 01 Feb 2021 00:00:00 GMT'
838
+ '[@octokit/request] "GET https://api.github.com/teams/123" is deprecated. It is scheduled to be removed on Mon, 01 Feb 2021 00:00:00 GMT' ,
839
839
) ;
840
840
} ) ;
841
841
} ) ;
@@ -861,7 +861,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
861
861
expect ( error . status ) . toEqual ( 404 ) ;
862
862
expect ( error . response . data . message ) . toEqual ( "Not Found" ) ;
863
863
expect ( error . response . data . documentation_url ) . toEqual (
864
- "https://docs.github.com/en/rest/reference/repos#get-a-repository"
864
+ "https://docs.github.com/en/rest/reference/repos#get-a-repository" ,
865
865
) ;
866
866
} ) ;
867
867
} ) ;
@@ -908,7 +908,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
908
908
"https://api.github.com/repos/octokit-fixture-org/release-assets/releases/v1.0.0/assets" ,
909
909
{
910
910
status : 200 ,
911
- }
911
+ } ,
912
912
) ;
913
913
914
914
return request ( "POST /repos/{owner}/{repo}/releases/{release_id}/assets" , {
@@ -939,7 +939,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
939
939
"https://api.github.com/repos/octokit-fixture-org/release-assets/releases/tags/v1.0.0" ,
940
940
{
941
941
status : 200 ,
942
- }
942
+ } ,
943
943
) ;
944
944
945
945
return request ( "POST /repos/{owner}/{repo}/releases/tags/{tag}" , {
@@ -969,7 +969,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
969
969
"https://api.github.com/repos/octokit-fixture-org/release-assets/releases/tags/v1.0.0" ,
970
970
{
971
971
status : 200 ,
972
- }
972
+ } ,
973
973
) ;
974
974
975
975
return request ( "POST /repos/{owner}/{repo}/releases/tags/{tag}" , {
@@ -988,7 +988,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
988
988
} ) . then ( ( response ) => {
989
989
expect ( response . status ) . toEqual ( 200 ) ;
990
990
expect ( mock . lastOptions ( ) ?. body ) . toEqual (
991
- stringToArrayBuffer ( "Hello, world!\n" )
991
+ stringToArrayBuffer ( "Hello, world!\n" ) ,
992
992
) ;
993
993
expect ( mock . done ( ) ) . toBe ( true ) ;
994
994
} ) ;
@@ -1019,7 +1019,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
1019
1019
"https://api.github.com/repos/octokit-fixture-org/release-assets/releases/tags/v1.0.0" ,
1020
1020
new Promise ( ( ) => {
1021
1021
abortController . abort ( ) ;
1022
- } )
1022
+ } ) ,
1023
1023
) ;
1024
1024
1025
1025
return request ( "POST /repos/{owner}/{repo}/releases/tags/{tag}" , {
0 commit comments