Skip to content

Commit 5aa9082

Browse files
Maffoochclaude
andcommitted
chore(ci): migrate release-drafter categories to when and build OAS from the tag
release-drafter v7 deprecated the top-level `categories[*].label` / `categories[*].labels` fields; move each into the category's `when` condition to clear the deprecation warning (removal is planned upstream). Also generate the OpenAPI schema from the release tag instead of the `release/x.y.z` branch, so the OAS matches the exact ref the release docker images are built from (release-x-manual-docker-containers.yml already checks out the tag). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0b1a2fe commit 5aa9082

2 files changed

Lines changed: 45 additions & 30 deletions

File tree

.github/release-drafter.yml

Lines changed: 44 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,50 +6,65 @@ branches:
66

77
categories:
88
- title: '💣 Breaking changes'
9-
labels:
10-
- 'Breaking Changes'
9+
when:
10+
labels:
11+
- 'Breaking Changes'
1112
- title: '🚩 Changes to `settings.dist.py` / `local_settings.py`'
12-
labels:
13-
- 'settings_changes'
13+
when:
14+
labels:
15+
- 'settings_changes'
1416
- title: '🚩 Database migration'
15-
labels:
16-
- 'New Migration'
17+
when:
18+
labels:
19+
- 'New Migration'
1720
- title: '🚩 Requires hash code recomputation'
18-
labels:
19-
- 'hashcode-update-needed'
21+
when:
22+
labels:
23+
- 'hashcode-update-needed'
2024
- title: '🚩 Security'
21-
labels:
22-
- 'security'
25+
when:
26+
labels:
27+
- 'security'
2328
- title: '🚀 New importers'
24-
labels:
25-
- 'Import Scans'
29+
when:
30+
labels:
31+
- 'Import Scans'
2632
- title: '🚀 General features and enhancements'
27-
labels:
28-
- 'feature'
29-
- 'enhancement'
30-
- 'performance'
33+
when:
34+
labels:
35+
- 'feature'
36+
- 'enhancement'
37+
- 'performance'
3138
- title: '🚀 API features and enhancements'
32-
label: 'apiv2'
39+
when:
40+
label: 'apiv2'
3341
- title: '🐛 Bug Fixes'
34-
labels:
35-
- 'fix'
36-
- 'bugfix'
37-
- 'bug'
42+
when:
43+
labels:
44+
- 'fix'
45+
- 'bugfix'
46+
- 'bug'
3847
- title: 📝 Documentation updates
39-
label: 'documentation'
48+
when:
49+
label: 'documentation'
4050
- title: '🖌 Updates in UI'
41-
label: 'ui'
51+
when:
52+
label: 'ui'
4253
- title: '🗣 Updates in localization'
43-
label: 'localization'
54+
when:
55+
label: 'localization'
4456
- title: '🔧 Improved code quality with linters'
45-
label: 'lint'
57+
when:
58+
label: 'lint'
4659
- title: '⚙️ Improvemets of GitHub Actions'
47-
label: 'gha'
60+
when:
61+
label: 'gha'
4862
- title: '🧰 Maintenance'
4963
collapse-after: 3
50-
labels:
51-
- 'dependencies'
52-
- 'maintenance'
64+
when:
65+
labels:
66+
- 'dependencies'
67+
- 'maintenance'
5368
exclude-labels:
5469
- 'skip-changelog'
5570

.github/workflows/fetch-oas.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Checkout
2525
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2626
with:
27-
ref: release/${{ env.release_version }}
27+
ref: ${{ env.release_version }}
2828

2929
- name: Load docker images
3030
run: |-

0 commit comments

Comments
 (0)