chore: improve label matching rules in labeler config (#3779)

# Description of Changes

- Improved file pattern matching by replacing glob (`**/*`) with
regex-style (`.*`) to ensure better compatibility and matching in
GitHub's `labeler` action.
- Added a missing `Documentation` label rule based on PR titles
(`^docs:.*`).
- Aligned `Documentation` file-matching rule to use regex pattern
(`.*.md`).
- Fixed capitalization inconsistency in the auto-labeler workflow:
`licenses` → `Licenses`.

---

## Checklist

### General

- [x] I have read the [Contribution
Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md)
- [x] I have read the [Stirling-PDF Developer
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md)
(if applicable)
- [ ] I have read the [How to add new languages to
Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md)
(if applicable)
- [x] I have performed a self-review of my own code
- [x] My changes generate no new warnings

### Documentation

- [ ] I have updated relevant docs on [Stirling-PDF's doc
repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/)
(if functionality has heavily changed)
- [ ] I have read the section [Add New Translation
Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags)
(for new translation tags only)

### UI Changes (if applicable)

- [ ] Screenshots or videos demonstrating the UI changes are attached
(e.g., as comments or direct attachments in the PR)

### Testing (if applicable)

- [ ] I have tested my changes locally. Refer to the [Testing
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing)
for more details.
This commit is contained in:
Ludy 2025-06-19 19:44:01 +02:00 committed by GitHub
parent 9923411ade
commit bbaadc1822
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 25 deletions

View File

@ -28,6 +28,9 @@ labels:
- label: "style" - label: "style"
title: '^style:.*' title: '^style:.*'
- label: "Documentation"
title: '^docs:.*'
- label: 'API' - label: 'API'
title: '.*openapi.*' title: '.*openapi.*'
@ -40,32 +43,33 @@ labels:
- label: 'Front End' - label: 'Front End'
files: files:
- 'stirling-pdf/src/main/resources/templates/**/*' - 'stirling-pdf/src/main/resources/templates/.*'
- 'proprietary/src/main/resources/templates/**/*' - 'proprietary/src/main/resources/templates/.*'
- 'stirling-pdf/src/main/resources/static/**/*' - 'stirling-pdf/src/main/resources/static/.*'
- 'proprietary/src/main/resources/static/**/*' - 'proprietary/src/main/resources/static/.*'
- 'stirling-pdf/src/main/java/stirling/software/SPDF/controller/web/**/*' - 'stirling-pdf/src/main/java/stirling/software/SPDF/controller/web/.*'
- 'stirling-pdf/src/main/java/stirling/software/SPDF/UI/**/*' - 'stirling-pdf/src/main/java/stirling/software/SPDF/UI/.*'
- label: 'Java' - label: 'Java'
files: files:
- 'common/src/main/java/**/*.java' - 'common/src/main/java/.*.java'
- 'proprietary/src/main/java/**/*.java' - 'proprietary/src/main/java/.*.java'
- 'stirling-pdf/src/main/java/**/*.java' - 'stirling-pdf/src/main/java/.*.java'
- label: 'Back End' - label: 'Back End'
files: files:
- 'stirling-pdf/src/main/java/stirling/software/SPDF/config/**/*' - 'stirling-pdf/src/main/java/stirling/software/SPDF/config/.*'
- 'stirling-pdf/src/main/java/stirling/software/SPDF/controller/**/*' - 'stirling-pdf/src/main/java/stirling/software/SPDF/controller/.*'
- 'stirling-pdf/src/main/resources/settings.yml.template' - 'stirling-pdf/src/main/resources/settings.yml.template'
- 'stirling-pdf/src/main/resources/application.properties' - 'stirling-pdf/src/main/resources/application.properties'
- 'stirling-pdf/src/main/resources/banner.txt' - 'stirling-pdf/src/main/resources/banner.txt'
- 'scripts/png_to_webp.py' - 'scripts/png_to_webp.py'
- 'split_photos.py' - 'split_photos.py'
- 'application.properties'
- label: 'Security' - label: 'Security'
files: files:
- 'proprietary/src/main/java/stirling/software/proprietary/security/**/*' - 'proprietary/src/main/java/stirling/software/proprietary/security/.*'
- 'scripts/download-security-jar.sh' - 'scripts/download-security-jar.sh'
- '.github/workflows/dependency-review.yml' - '.github/workflows/dependency-review.yml'
- '.github/workflows/scorecards.yml' - '.github/workflows/scorecards.yml'
@ -74,18 +78,17 @@ labels:
files: files:
- 'stirling-pdf/src/main/java/stirling/software/SPDF/config/OpenApiConfig.java' - 'stirling-pdf/src/main/java/stirling/software/SPDF/config/OpenApiConfig.java'
- 'stirling-pdf/src/main/java/stirling/software/SPDF/controller/web/MetricsController.java' - 'stirling-pdf/src/main/java/stirling/software/SPDF/controller/web/MetricsController.java'
- 'stirling-pdf/src/main/java/stirling/software/SPDF/controller/api/**/*' - 'stirling-pdf/src/main/java/stirling/software/SPDF/controller/api/.*'
- 'stirling-pdf/src/main/java/stirling/software/SPDF/model/api/**/*' - 'stirling-pdf/src/main/java/stirling/software/SPDF/model/api/.*'
- 'scripts/png_to_webp.py' - 'scripts/png_to_webp.py'
- 'split_photos.py' - 'split_photos.py'
- '.github/workflows/swagger.yml' - '.github/workflows/swagger.yml'
- label: 'Documentation' - label: 'Documentation'
files: files:
- '**/*.md' - '.*.md'
- 'scripts/counter_translation.py' - 'scripts/counter_translation.py'
- 'scripts/ignore_translation.toml' - 'scripts/ignore_translation.toml'
title: '^docs:.*'
- label: 'Docker' - label: 'Docker'
files: files:
@ -104,9 +107,9 @@ labels:
- label: 'Devtools' - label: 'Devtools'
files: files:
- '.devcontainer/**/*' - '.devcontainer/.*'
- 'Dockerfile.dev' - 'Dockerfile.dev'
- '.vscode/**/*' - '.vscode/.*'
- '.editorconfig' - '.editorconfig'
- '.pre-commit-config' - '.pre-commit-config'
- '.github/workflows/pre_commit.yml' - '.github/workflows/pre_commit.yml'
@ -114,19 +117,19 @@ labels:
- label: 'Test' - label: 'Test'
files: files:
- 'common/src/test/**/*' - 'common/src/test/.*'
- 'proprietary/src/test/**/*' - 'proprietary/src/test/.*'
- 'stirling-pdf/src/test/**/*' - 'stirling-pdf/src/test/.*'
- 'testing/**/*' - 'testing/.*'
- '.github/workflows/scorecards.yml' - '.github/workflows/scorecards.yml'
- label: 'Github' - label: 'Github'
files: files:
- '.github/**/*' - '.github/.*'
- label: 'Gradle' - label: 'Gradle'
files: files:
- 'gradle/**/*' - 'gradle/.*'
- 'gradlew' - 'gradlew'
- 'gradlew.bat' - 'gradlew.bat'
- 'settings.gradle' - 'settings.gradle'

View File

@ -78,7 +78,7 @@ jobs:
title: "Update 3rd Party Licenses" title: "Update 3rd Party Licenses"
body: | body: |
Auto-generated by ${{ steps.setup-bot.outputs.app-slug }}[bot] Auto-generated by ${{ steps.setup-bot.outputs.app-slug }}[bot]
labels: licenses,github-actions labels: Licenses,github-actions
draft: false draft: false
delete-branch: true delete-branch: true
sign-commits: true sign-commits: true