Edit readme and run build

This commit is contained in:
anthonylaye
2022-06-16 18:18:27 +02:00
parent 0f1ba59d26
commit d0b7876408
3 changed files with 10 additions and 4 deletions

8
dist/index.js generated vendored
View File

@@ -67,12 +67,18 @@ function addToProject() {
return;
}
}
else {
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;
}
}
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>`);

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long