diff --git a/src/add-to-project.ts b/src/add-to-project.ts index d57165d..e5355dc 100644 --- a/src/add-to-project.ts +++ b/src/add-to-project.ts @@ -35,14 +35,14 @@ export async function addToProject(): Promise { core .getInput('labeled') .split(',') - .map(l => l.trim()) + .map(l => l.trim().toLowerCase()) .filter(l => l.length > 0) ?? [] const labelOperator = core.getInput('label-operator').trim().toLocaleLowerCase() const octokit = github.getOctokit(ghToken) const urlMatch = projectUrl.match(urlParse) const issue = github.context.payload.issue ?? github.context.payload.pull_request - const issueLabels: string[] = (issue?.labels ?? []).map((l: {name: string}) => l.name) + const issueLabels: string[] = (issue?.labels ?? []).map((l: { name: string }) => l.name.toLowerCase()) // Ensure the issue matches our `labeled` filter based on the label-operator. if (labelOperator === 'and') {