File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -205,9 +205,7 @@ const TOKEN = "ghp_PersonalAccessToken01245678900000000";
205
205
const auth = createTokenAuth (TOKEN );
206
206
const authentication = await auth ();
207
207
208
- const response = await request (" HEAD /" , {
209
- headers: authentication .headers ,
210
- });
208
+ const response = await request (" HEAD /" );
211
209
const scopes = response .headers [" x-oauth-scopes" ].split (/ ,\s + / );
212
210
213
211
if (scopes .length ) {
@@ -227,9 +225,7 @@ const TOKEN = "ghp_PersonalAccessToken01245678900000000";
227
225
const auth = createTokenAuth (TOKEN );
228
226
const authentication = await auth ();
229
227
230
- const response = await request (" HEAD /" , {
231
- headers: authentication .headers ,
232
- });
228
+ const response = await request (" HEAD /" );
233
229
const clientId = response .headers [" x-oauth-client-id" ];
234
230
235
231
if (clientId) {
@@ -252,12 +248,11 @@ const auth = createTokenAuth(TOKEN);
252
248
const authentication = await auth ();
253
249
254
250
const response = await request (" GET /repos/{owner}/{repo}" , {
255
- owner: ' octocat' ,
256
- repo: ' hello-world'
257
- headers: authentication .headers
251
+ owner: " octocat" ,
252
+ repo: " hello-world" ,
258
253
});
259
254
260
- console .log (response .data .permissions )
255
+ console .log (response .data .permissions );
261
256
// {
262
257
// admin: true,
263
258
// push: true,
You can’t perform that action at this time.
0 commit comments