From de3e015252a2e1253e521a72e469754abb3beb7c Mon Sep 17 00:00:00 2001 From: EvgrafovMichail Date: Sun, 25 Oct 2026 18:08:10 +0300 Subject: [PATCH] Add 'unckecked' label support into CI --- .github/workflows/label-by-group.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/label-by-group.yml b/.github/workflows/label-by-group.yml index 97d8e60d..c27a3559 100644 --- a/.github/workflows/label-by-group.yml +++ b/.github/workflows/label-by-group.yml @@ -37,16 +37,20 @@ jobs: repo: context.repo.repo, }); + // The title matches the template, so the PR is waiting for a check + const labelsToAdd = ["unchecked"]; + const matchingLabel = labels.find((label) => label.name === groupNumber); - if (!matchingLabel) { - console.log(`No label named "${groupNumber}" found, skipping.`); - return; + if (matchingLabel) { + labelsToAdd.push(matchingLabel.name); + } else { + console.log(`No label named "${groupNumber}" found, adding only the unchecked label.`); } await github.rest.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.pull_request.number, - labels: [matchingLabel.name], + labels: labelsToAdd, });