add arm64 title check to autolabeler

This commit is contained in:
Sam Heinz
2026-06-20 19:39:22 +10:00
committed by Sam Heinz
parent 6c55f61efc
commit 529f35fc2c
+7 -1
View File
@@ -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",