From 4b5c044272d236bba01311bcc2ecbd8d04a578c6 Mon Sep 17 00:00:00 2001 From: Bryan Morgan Date: Tue, 6 Jan 2026 17:48:08 -0500 Subject: [PATCH] Fix label-backlog-child-issues workflow logic --- .github/workflows/label-backlog-child-issues.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/label-backlog-child-issues.yml b/.github/workflows/label-backlog-child-issues.yml index d1c085218d..120b3e37e7 100644 --- a/.github/workflows/label-backlog-child-issues.yml +++ b/.github/workflows/label-backlog-child-issues.yml @@ -18,10 +18,10 @@ jobs: // Define the parent workstream issue numbers const parentWorkstreamNumbers = [15374, 15456, 15324]; // Define the label to add - const labelToAdd = "workstream-rollup"; + const labelToAdd = 'workstream-rollup'; - // Check if the issue has a body and a parent, and if that parent is in our list - if (issue && issue.body && issue.parent && parentWorkstreamNumbers.includes(issue.parent.number)) { + // Check if the issue has a parent and if that parent is in our list + if (issue.parent && parentWorkstreamNumbers.includes(issue.parent.number)) { console.log(`Issue #${issue.number} is a child of a target workstream. Adding label.`); await github.rest.issues.addLabels({ owner: context.repo.owner, @@ -30,5 +30,5 @@ jobs: labels: [labelToAdd] }); } else { - console.log(`Issue #${issue.number} is not a valid child of a target workstream or has no body. No action taken.`); + console.log(`Issue #${issue.number} is not a child of a target workstream. No action taken.`); }