in index.js [512:546]
function checkDoc(content, commentText, addLabelList, removeLabelList) {
if (isMissingDocInfo(content)) {
if (!content.includes(text.PR_DOC_LATER)) {
commentText += '\n\n' + text.PR_DOC_LEGACY;
}
else {
commentText += text.PR_MISSING_DOC_INFO;
}
}
else {
if (isOptionChecked(content, text.PR_DOC_READY)) {
addLabelList.push(labelText.PR_DOC_READY);
removeLabelList.push(
labelText.PR_DOC_UNCHANGED,
labelText.PR_AWAITING_DOC
);
}
else if (isOptionChecked(content, text.PR_DOC_UNCHANGED)) {
addLabelList.push(labelText.PR_DOC_UNCHANGED);
removeLabelList.push(
labelText.PR_DOC_READY,
labelText.PR_AWAITING_DOC
);
}
else if (isOptionChecked(content, text.PR_DOC_LATER)) {
addLabelList.push(labelText.PR_AWAITING_DOC);
removeLabelList.push(
labelText.PR_DOC_UNCHANGED,
labelText.PR_DOC_READY
);
commentText += text.PR_AWAITING_DOC;
}
}
return commentText;
}