fix: dotenv will coerce boolean from string (#10)
This commit is contained in:
committed by
Randell Dawson
parent
6cfbff556b
commit
78a87ad7ce
@ -45,7 +45,7 @@ const prPropsToGet = ['number', 'labels', 'user'];
|
||||
const guideFolderErrorsComment = guideFolderChecks(prFiles, username);
|
||||
if (guideFolderErrorsComment) {
|
||||
log.update(number, 'comment', guideFolderErrorsComment);
|
||||
if (process.env.PRODUCTION_RUN) {
|
||||
if (process.env.PRODUCTION_RUN === 'true') {
|
||||
const result = await addComment(number, guideFolderErrorsComment);
|
||||
}
|
||||
await rateLimiter(process.env.RATELIMIT_INTERVAL | 1500);
|
||||
@ -75,7 +75,7 @@ const prPropsToGet = ['number', 'labels', 'user'];
|
||||
const newLabels = Object.keys(labelsToAdd).filter(label => !existingLabels.includes(label));
|
||||
if (newLabels.length) {
|
||||
log.update(number, 'labels', newLabels);
|
||||
if (process.env.PRODUCTION_RUN) {
|
||||
if (process.env.PRODUCTION_RUN === 'true') {
|
||||
addLabels(number, newLabels, log);
|
||||
}
|
||||
await rateLimiter(process.env.RATELIMIT_INTERVAL | 1500);
|
||||
|
Reference in New Issue
Block a user