add arm64 title check to autolabeler (#15235)

This commit is contained in:
Sam Heinz 2026-06-21 08:48:19 +10:00 committed by GitHub
parent 59b560a402
commit 610a3d56b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

8
.github/workflows/autolabeler.yml generated vendored
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",