Oops, forgot to rebuild

This commit is contained in:
anthonylaye
2022-06-17 14:05:32 +02:00
parent a0fa063143
commit c05fcc9dfb
2 changed files with 7 additions and 7 deletions

12
dist/index.js generated vendored
View File

@@ -67,18 +67,18 @@ function addToProject() {
return;
}
}
else if (labelOperator === 'or') {
if (labeled.length > 0 && !issueLabels.some(l => labeled.includes(l))) {
core.info(`Skipping issue ${issue === null || issue === void 0 ? void 0 : issue.number} because it does not have one of the labels: ${labeled.join(', ')}`);
return;
}
}
else if (labelOperator === 'not') {
if (labeled.length > 0 && issueLabels.some(l => labeled.includes(l))) {
core.info(`Skipping issue ${issue === null || issue === void 0 ? void 0 : issue.number} because it contains one of the labels: ${labeled.join(', ')}`);
return;
}
}
else {
if (labeled.length > 0 && !issueLabels.some(l => labeled.includes(l))) {
core.info(`Skipping issue ${issue === null || issue === void 0 ? void 0 : issue.number} because it does not have one of the labels: ${labeled.join(', ')}`);
return;
}
}
core.debug(`Project URL: ${projectUrl}`);
if (!urlMatch) {
throw new Error(`Invalid project URL: ${projectUrl}. Project URL should match the format https://github.com/<orgs-or-users>/<ownerName>/projects/<projectNumber>`);