Skip to content

Commit 45704bc

Browse files
committed
feat: automate release status in schedule
Convert release schedule from static HTML to data-driven Liquid templating. Status now automatically changes from "Planned" to "Released" when a release YAML file appears in _data/release/, eliminating manual updates when releases are published. Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Robert Young <robertyoungnz@gmail.com>
1 parent f0e33fc commit 45704bc

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

_data/release-schedule.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
releases:
2+
- version: 0.21.0
3+
plannedDate: May 15, 2026
4+
milestoneUrl: https://github.com/kroxylicious/kroxylicious/milestone/27
5+
- version: 0.22.0
6+
plannedDate: July 3, 2026
7+
milestoneUrl: https://github.com/kroxylicious/kroxylicious/milestone/10

release-schedule.markdown

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,21 @@ permalink: /release-schedule/
2121
</tr>
2222
</thead>
2323
<tbody>
24+
{%- for release in site.data.release-schedule.releases -%}
25+
{%- assign underscored_version = release.version | replace: '.', '_' -%}
2426
<tr>
25-
<td>Kroxylicious 0.21.0</td>
26-
<td>May 15, 2026</td>
27-
<td><a href="https://github.com/kroxylicious/kroxylicious/milestone/27">0.21.0</a></td>
28-
<td><span class="badge bg-primary">Planned</span></td>
29-
</tr>
30-
<tr>
31-
<td>Kroxylicious 0.22.0</td>
32-
<td>July 3, 2026</td>
33-
<td><a href="https://github.com/kroxylicious/kroxylicious/milestone/10">0.22.0</a></td>
34-
<td><span class="badge bg-primary">Planned</span></td>
27+
<td>Kroxylicious {{ release.version }}</td>
28+
<td>{{ release.plannedDate }}</td>
29+
<td><a href="{{ release.milestoneUrl }}">{{ release.version }}</a></td>
30+
<td>
31+
{%- if site.data.release[underscored_version] -%}
32+
<span class="badge bg-success">Released</span>
33+
{%- else -%}
34+
<span class="badge bg-info">Planned</span>
35+
{%- endif -%}
36+
</td>
3537
</tr>
38+
{%- endfor -%}
3639
</tbody>
3740
</table>
3841
</div>

0 commit comments

Comments
 (0)