Created
April 18, 2022 03:39
-
-
Save xiaozhu2007/77763f796cb4582bc69190d8f5770ebd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { request } from "@octokit/request"; | |
// Following GitHub docs formatting: | |
// https://developer.github.com/v3/repos/#list-organization-repositories | |
const result = await request('GET /gists', { | |
headers: { | |
authorization: "token 0000000000000000000000000000000000000001", | |
}, | |
type: "private", | |
}); | |
console.log(`${result.data.length} gists found.`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment