Skip to content

Commit 9236964

Browse files
Merge pull request #133 from WarehouseFinds/fix/refine_labeling
Refine GitHub labeler and release configuration for improved clarity and organization
2 parents bff3032 + cf94321 commit 9236964

File tree

3 files changed

+114
-78
lines changed

3 files changed

+114
-78
lines changed

.github/labeler.yml

Lines changed: 87 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,119 @@
22
# Automatically labels pull requests based on file paths changed
33
# https://github.com/actions/labeler
44

5-
# Path-based labels
5+
# ── Semantic labels (drive changelog categories) ──────────────────────────────
6+
7+
feat:
8+
- head-branch: ['^feat/', '^feature/', '^add/']
9+
10+
fix:
11+
- head-branch: ['^fix/', '^bugfix/', '^hotfix/', '^patch/', '^security/', '^sec/']
12+
13+
breaking:
14+
- head-branch: ['^breaking/', '^major/']
15+
16+
docs:
17+
- head-branch: ['^docs/', '^doc/']
18+
- changed-files:
19+
- any-glob-to-any-file:
20+
- 'docs/**/*.md'
21+
- 'README.md'
22+
- 'CONTRIBUTING.md'
23+
- 'AGENTS.md'
24+
- '.github/copilot-instructions.md'
25+
26+
chore:
27+
- head-branch: ['^chore/']
28+
- changed-files:
29+
- any-glob-to-any-file:
30+
- '.github/workflows/**/*'
31+
- '.github/actions/**/*'
32+
- '.github/CODEOWNERS'
33+
- '.github/ISSUE_TEMPLATE/**/*'
34+
- '.github/PULL_REQUEST_TEMPLATE.md'
35+
- '.github/CODE_OF_CONDUCT.md'
36+
- '.github/SECURITY.md'
37+
- '.github/SUPPORT.md'
38+
- '.github/FUNDING.yml'
39+
- '.github/labeler.yml'
40+
- '.github/release.yml'
41+
- '.github/DOCS_TEMPLATE/**/*'
42+
- '.vscode/**/*'
43+
- '.devcontainer/**/*'
44+
- '*.build.ps1'
45+
- 'GitVersion.yml'
46+
- 'tests/**/*'
47+
- '.gitignore'
48+
49+
refactor:
50+
- head-branch: ['^refactor/', '^refac/', '^cleanup/']
51+
52+
dependencies:
53+
- changed-files:
54+
- any-glob-to-any-file:
55+
- 'requirements.psd1'
56+
- '.github/dependabot.yml'
57+
58+
# ── Visual signal labels (reviewer context, not in changelog) ─────────────────
59+
60+
agents:
61+
- changed-files:
62+
- any-glob-to-any-file:
63+
- 'AGENTS.md'
64+
- '.github/copilot-instructions.md'
65+
666
cmdlets:
767
- changed-files:
868
- any-glob-to-any-file:
969
- 'src/**/*.ps1'
1070
- 'src/**/*.psd1'
71+
- '!src/**/*.Tests.ps1'
1172

1273
tests:
1374
- changed-files:
1475
- any-glob-to-any-file:
15-
- 'tests/**/*.Tests.ps1'
1676
- 'src/**/*.Tests.ps1'
77+
- 'tests/Integration/**/*'
1778

18-
docs:
79+
lint:
1980
- changed-files:
2081
- any-glob-to-any-file:
21-
- 'docs/**/*.md'
22-
- '*.md'
82+
- 'tests/PSScriptAnalyzer/**/*'
83+
84+
security:
85+
- changed-files:
86+
- any-glob-to-any-file:
87+
- 'tests/InjectionHunter/**/*'
2388

2489
build:
2590
- changed-files:
2691
- any-glob-to-any-file:
2792
- '*.build.ps1'
93+
- 'GitVersion.yml'
2894

29-
ci-cd:
95+
ci:
3096
- changed-files:
3197
- any-glob-to-any-file:
3298
- '.github/workflows/**/*'
3399
- '.github/actions/**/*'
34100

35101
github:
36102
- changed-files:
37-
- any-glob-to-any-file: '.github/**/*'
103+
- any-glob-to-any-file:
104+
- '.github/CODEOWNERS'
105+
- '.github/ISSUE_TEMPLATE/**/*'
106+
- '.github/PULL_REQUEST_TEMPLATE.md'
107+
- '.github/CODE_OF_CONDUCT.md'
108+
- '.github/SECURITY.md'
109+
- '.github/SUPPORT.md'
110+
- '.github/FUNDING.yml'
111+
- '.github/labeler.yml'
112+
- '.github/release.yml'
113+
114+
template:
115+
- changed-files:
116+
- any-glob-to-any-file:
117+
- '.github/DOCS_TEMPLATE/**/*'
38118

39119
vscode:
40120
- changed-files:
@@ -43,43 +123,3 @@ vscode:
43123
devcontainer:
44124
- changed-files:
45125
- any-glob-to-any-file: '.devcontainer/**/*'
46-
47-
dependencies:
48-
- changed-files:
49-
- any-glob-to-any-file:
50-
- 'requirements.psd1'
51-
- '.github/dependabot.yml'
52-
53-
# Branch-based labels
54-
breaking:
55-
- head-branch: ['^breaking', 'breaking', 'major']
56-
57-
feature:
58-
- head-branch: ['^feature', 'feature', 'enhancement', 'feat', 'add', 'minor']
59-
60-
bugfix:
61-
- head-branch: ['^bugfix', 'bugfix', 'fix', 'patch', 'hotfix']
62-
63-
# Conventional Commit-based labels
64-
conventional-commits:
65-
- type: 'bugfix'
66-
nouns: ['bugfix', 'fix', 'patch', 'hotfix']
67-
labels: ['bugfix']
68-
- type: 'feature'
69-
nouns: ['feature', 'enhancement', 'feat', 'add', 'minor']
70-
labels: ['feature']
71-
- type: 'breaking'
72-
nouns: ['breaking', 'major']
73-
labels: ['breaking']
74-
- type: 'docs'
75-
nouns: ['document','documentation']
76-
labels: ['docs']
77-
- type: 'build'
78-
nouns: ['build','rebuild']
79-
labels: ['build']
80-
- type: 'performance'
81-
nouns: ['performance', 'optimize', 'optimization']
82-
labels: ['performance']
83-
- type: 'config'
84-
nouns: ['config', 'conf', 'cofiguration', 'configure']
85-
labels: ['config']

.github/release.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,21 @@ changelog:
77
- title: 💥 Breaking Changes
88
labels:
99
- breaking
10-
- major
1110
- title: 🚀 Features
1211
labels:
13-
- feature
14-
- enhancement
15-
- title: 🐛 Bugfixes
12+
- feat
13+
- title: 🐛 Bug Fixes
1614
labels:
17-
- bugfix
1815
- fix
19-
- title: ⚡ Performance Improvements
16+
- title: ♻️ Refactoring
2017
labels:
21-
- performance
22-
- title: 🧑‍💻 Developer Experience
23-
labels:
24-
- vscode
25-
- devcontainer
26-
- title: 🧪 Tests
27-
labels:
28-
- tests
29-
- title: 🛠️ Build and CI
18+
- refactor
19+
- title: 📚 Documentation
3020
labels:
31-
- build
32-
- ci-cd
21+
- docs
3322
- title: 📦 Dependencies
3423
labels:
3524
- dependencies
36-
- title: 📚 Documentation
25+
- title: 🔧 Chore
3726
labels:
38-
- docs
27+
- chore

.github/workflows/bootstrap.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,25 @@ jobs:
6060
env:
6161
LABELS_JSON: |
6262
[
63-
{"name": "dependencies", "color": "ededed", "description": "Dependency updates"},
64-
{"name": "documentation", "color": "0075ca", "description": "Improvements or additions to documentation"},
65-
{"name": "tests", "color": "d876e3", "description": "Related to tests"},
66-
{"name": "devcontainer", "color": "0e8a16", "description": "Related to development container"},
67-
{"name": "vscode", "color": "1d76db", "description": "Related to Visual Studio Code settings"},
68-
{"name": "ci-cd", "color": "bfdadc", "description": "Related to GitHub Actions CI"},
69-
{"name": "build", "color": "5319e7", "description": "Build related changes"},
70-
{"name": "github", "color": "6e5494", "description": "GitHub configuration changes"},
71-
{"name": "breaking", "color": "ff0000", "description": "Breaking changes"},
72-
{"name": "feature", "color": "0e8a16", "description": "New feature or enhancement"},
73-
{"name": "bugfix", "color": "d73a4a", "description": "Bug fix"},
74-
{"name": "performance", "color": "5319e7", "description": "Performance improvements"}
63+
{"name": "breaking", "color": "ff0000", "description": "Breaking change"},
64+
{"name": "chore", "color": "ededed", "description": "Maintenance, tooling, or housekeeping"},
65+
{"name": "dependencies", "color": "bfd4f2", "description": "Dependency updates"},
66+
{"name": "docs", "color": "0075ca", "description": "Documentation changes"},
67+
{"name": "feat", "color": "0e8a16", "description": "New feature or enhancement"},
68+
{"name": "fix", "color": "d73a4a", "description": "Bug fix"},
69+
{"name": "ignore", "color": "ededed", "description": "Exclude this PR from the release changelog"},
70+
{"name": "refactor", "color": "5319e7", "description": "Code refactoring without behavior change"},
71+
{"name": "agents", "color": "e4e669", "description": "AI agent guidelines changed"},
72+
{"name": "build", "color": "5319e7", "description": "Build script or versioning changed"},
73+
{"name": "ci", "color": "bfdadc", "description": "CI/CD workflows or actions changed"},
74+
{"name": "cmdlets", "color": "c5def5", "description": "Source functions changed"},
75+
{"name": "devcontainer", "color": "006b75", "description": "Dev container changed"},
76+
{"name": "github", "color": "6e5494", "description": "GitHub config files changed"},
77+
{"name": "lint", "color": "f9d0c4", "description": "PSScriptAnalyzer config changed"},
78+
{"name": "security", "color": "e36209", "description": "InjectionHunter config changed"},
79+
{"name": "template", "color": "f9d0c4", "description": "Bootstrap template files changed"},
80+
{"name": "tests", "color": "d876e3", "description": "Test files changed"},
81+
{"name": "vscode", "color": "1d76db", "description": "VS Code settings changed"}
7582
]
7683
7784
steps:

0 commit comments

Comments
 (0)