fix: scope labeler trigger to reduce rate limiting and fix bugfix typo (#5020)

This commit is contained in:
James Rich 2026-04-09 12:25:51 -05:00 committed by GitHub
parent 750c4ea928
commit 2ce110dffe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 49 additions and 40 deletions

View file

@ -18,7 +18,7 @@ jobs:
script: |
// Extract labels from the payload directly to avoid extra API calls
const latestLabels = context.payload.pull_request.labels.map(label => label.name);
const requiredLabels = ['bugpost', 'enhancement', 'automation', 'dependencies', 'repo', 'release', 'refactor'];
const requiredLabels = ['bugfix', 'enhancement', 'automation', 'dependencies', 'repo', 'release', 'refactor'];
console.log('Labels from payload:', latestLabels);
const hasRequiredLabel = latestLabels.some(label => requiredLabels.includes(label));
if (!hasRequiredLabel) {