fix: corrected guide error logic
This commit is contained in:
committed by
mrugesh mohapatra
parent
f4b7223b05
commit
98d9e7874f
@ -59,15 +59,15 @@ const prPropsToGet = ['number', 'labels', 'user'];
|
||||
const [ _, first, second ] = filenameReplacement.match(regex) || []; // need an array to pass to labelsAdder
|
||||
if (first && validLabels[first]) { labelsToAdd[validLabels[first]] = 1 }
|
||||
if (second && validLabels[second]) { labelsToAdd[validLabels[second]] = 1 }
|
||||
|
||||
const guideFolderErrorsComment = guideFolderChecks(filename, username);
|
||||
|
||||
if (guideFolderErrorsComment) {
|
||||
addComment(number, guideFolderErrorsComment);
|
||||
labelsToAdd['status: needs update'] = 1;
|
||||
}
|
||||
})
|
||||
|
||||
const guideFolderErrorsComment = guideFolderChecks(filename, username);
|
||||
|
||||
if (guideFolderErrors) {
|
||||
addComment(number, guideFolderErrorsComment);
|
||||
labelsToAdd['status: needs update'] = 1;
|
||||
}
|
||||
|
||||
labelsAdder(number, existingLabels, labelsToAdd, log);
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user