cleanup and checkbox addition

This commit is contained in:
Chris Titus Tech
2026-02-05 13:52:27 -06:00
parent 68ab69a19c
commit 0b78970dc7
10 changed files with 42 additions and 21 deletions

View File

@@ -19,4 +19,4 @@
## Checklist
- [ ] My code adheres to the coding and style guidelines of the project.
- [ ] I have commented my code, particularly in hard-to-understand areas.
- [ ] I have made corresponding changes to the documentation.
- [ ] I have made corresponding changes to the documentation.

View File

@@ -18,7 +18,7 @@ jobs:
script: |
const prBody = context.payload.pull_request.body || '';
const labelsToAdd = [];
if (/\[x\]\s*New feature/i.test(prBody)) {
labelsToAdd.push('new feature');
}
@@ -34,7 +34,7 @@ jobs:
if (/\[x\]\s*UI\/UX improvement/i.test(prBody)) {
labelsToAdd.push('ui update');
}
if (labelsToAdd.length > 0) {
await github.rest.issues.addLabels({
owner: context.repo.owner,
@@ -42,4 +42,4 @@ jobs:
issue_number: context.payload.pull_request.number,
labels: labelsToAdd
});
}
}