1
0
mirror of synced 2025-12-20 02:19:14 -05:00

automate github apps docs (#35530)

Co-authored-by: Sarah Edwards <skedwards88@github.com>
This commit is contained in:
Rachael Sewell
2023-06-16 12:23:05 -07:00
committed by GitHub
parent b0ea5f518f
commit cb37f22ef0
89 changed files with 224473 additions and 21362 deletions

View File

@@ -6,6 +6,13 @@ if (!process.env.GITHUB_TOKEN) {
dotenv.config()
}
// check for required PAT
if (!process.env.GITHUB_TOKEN) {
throw new Error(
'Error! You must have a GITHUB_TOKEN set in an .env file to use the GitHub REST API.'
)
}
// this module needs to work in development, production, and GitHub Actions
//
// GITHUB_TOKEN comes from one of the following sources: