We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9af34d5 commit bf5c3a6Copy full SHA for bf5c3a6
1 file changed
generate.js
@@ -16,6 +16,10 @@ function escape(str) {
16
17
function json(url) {
18
return new Promise((resolve, reject) => {
19
+ if (!process.env['GITHUB_TOKEN']) {
20
+ return reject(new Error('GITHUB_TOKEN is not defined'))
21
+ }
22
+
23
const req = request(url, {
24
headers: {
25
'User-Agent': `nodejs ${process.version}`,
0 commit comments