From 51d730b8bef2a532074dc799f2ba3fcbb89100fe Mon Sep 17 00:00:00 2001 From: Larry Wu Date: Wed, 23 Jul 2025 00:28:01 -0700 Subject: [PATCH] Support "CuTe DSL" auto-labeling in workflow --- .github/workflows/auto-label-issues.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-label-issues.yml b/.github/workflows/auto-label-issues.yml index 8fa5e66f..09450d1c 100644 --- a/.github/workflows/auto-label-issues.yml +++ b/.github/workflows/auto-label-issues.yml @@ -18,8 +18,12 @@ jobs: const body = issue.body || ''; // Parse the issue body to find the component selection - // GitHub renders dropdown selections as "### Which component has the problem?\n\n{selection}" - const componentMatch = body.match(/### Which component has the problem\?\s*\n\s*\n\s*(.+?)(?:\n|$)/); + // GitHub renders dropdown selections as "### {label}\n\n{selection}" + // Check for both bug report and feature request dropdown labels + const bugComponentMatch = body.match(/### Which component has the problem\?\s*\n\s*\n\s*(.+?)(?:\n|$)/); + const featureComponentMatch = body.match(/### Which component requires the feature\?\s*\n\s*\n\s*(.+?)(?:\n|$)/); + + const componentMatch = bugComponentMatch || featureComponentMatch; if (componentMatch) { const component = componentMatch[1].trim();