From 529f35fc2c6565581c25373a59e2242b33b49254 Mon Sep 17 00:00:00 2001 From: Sam Heinz Date: Sat, 20 Jun 2026 19:39:22 +1000 Subject: [PATCH] add arm64 title check to autolabeler --- .github/workflows/autolabeler.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autolabeler.yml b/.github/workflows/autolabeler.yml index 899a8d3c3..78695b181 100644 --- a/.github/workflows/autolabeler.yml +++ b/.github/workflows/autolabeler.yml @@ -21,7 +21,7 @@ jobs: - name: Install dependencies run: npm install minimatch - - name: Label PR based on file changes and PR template + - name: Label PR based on file changes, title, and PR template uses: actions/github-script@v7 with: script: | @@ -35,6 +35,7 @@ jobs: const prNumber = context.payload.pull_request.number; const prBody = context.payload.pull_request.body || ""; + const prTitle = context.payload.pull_request.title || ""; let labelsToAdd = new Set(); @@ -68,6 +69,11 @@ jobs: } } + // Add arm64 label if PR title contains "arm64" + if (/arm64/i.test(prTitle)) { + labelsToAdd.add("arm64"); + } + // Always parse template checkboxes to add content-type labels (bugfix, feature, etc.) const templateLabelMappings = { "🐞 **Bug fix**": "bugfix",