Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18818c1bd4 | ||
|
|
d644c97dd9 | ||
|
|
0a724142ff | ||
|
|
18aa63e3e6 | ||
|
|
dd3dd48969 |
No files matched your search
@@ -3,6 +3,21 @@
|
|||||||
All notable changes to CodeCraft. Versions follow [Semantic Versioning](https://semver.org/);
|
All notable changes to CodeCraft. Versions follow [Semantic Versioning](https://semver.org/);
|
||||||
until 1.0, minor versions may contain breaking changes.
|
until 1.0, minor versions may contain breaking changes.
|
||||||
|
|
||||||
|
## [v202611-00053] – 2026-11-17
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- **Factory versioning.** The current version is read from the tags on the forge, not from the checkout
|
||||||
|
(which kept tags that were deleted there and so counted from a stale version).
|
||||||
|
|
||||||
|
## [v202611-00052] – 2026-11-17
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- **Factory versioning.** Open issues of the forge were never seen (Gitea sends `"pull_request": null`), so every
|
||||||
|
deliverable counted as the last of its milestone and raised the minor version. Now only the last open issue of a
|
||||||
|
milestone raises the minor version; all others raise the patch version.
|
||||||
|
|
||||||
## [v202611-00051] – 2026-11-16
|
## [v202611-00051] – 2026-11-16
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img alt="Version v202611-00051" src="https://img.shields.io/badge/version-v202611--00051-d69e2e?style=flat-square">
|
<img alt="Version v202611-00053" src="https://img.shields.io/badge/version-v202611--00053-d69e2e?style=flat-square">
|
||||||
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-689d6a?style=flat-square">
|
<img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-689d6a?style=flat-square">
|
||||||
<img alt="Rust backend" src="https://img.shields.io/badge/backend-Rust-b7410e?style=flat-square&logo=rust">
|
<img alt="Rust backend" src="https://img.shields.io/badge/backend-Rust-b7410e?style=flat-square&logo=rust">
|
||||||
<img alt="React PWA" src="https://img.shields.io/badge/frontend-React%20PWA-2d81ff?style=flat-square&logo=react">
|
<img alt="React PWA" src="https://img.shields.io/badge/frontend-React%20PWA-2d81ff?style=flat-square&logo=react">
|
||||||
|
|||||||
@@ -540,7 +540,7 @@ impl Forge {
|
|||||||
let a = v.as_array().cloned().unwrap_or_default();
|
let a = v.as_array().cloned().unwrap_or_default();
|
||||||
let n = a.len();
|
let n = a.len();
|
||||||
for i in a {
|
for i in a {
|
||||||
if i.get("pull_request").is_some() {
|
if !i.get("pull_request").map_or(true, |p| p.is_null()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
out.push((i[key].as_i64().unwrap_or(0), i["title"].as_str().unwrap_or("").to_string()));
|
out.push((i[key].as_i64().unwrap_or(0), i["title"].as_str().unwrap_or("").to_string()));
|
||||||
|
|||||||
@@ -80,8 +80,16 @@ pub fn next_version(cur: Ver, b: Bump) -> Ver {
|
|||||||
|
|
||||||
/// Highest `vX.Y.Z` tag of the remote (0.0.0 when there is none).
|
/// Highest `vX.Y.Z` tag of the remote (0.0.0 when there is none).
|
||||||
async fn tags_version(cfg: &RepoCfg, dir: &Path) -> Ver {
|
async fn tags_version(cfg: &RepoCfg, dir: &Path) -> Ver {
|
||||||
let _ = git(cfg, dir, &["fetch", "--tags", "--force", "origin"]).await;
|
// The remote is the truth: a local checkout keeps tags that were deleted on the forge.
|
||||||
git(cfg, dir, &["tag", "-l", "v[0-9]*"]).await.unwrap_or_default().lines().filter_map(parse_version).max().unwrap_or((0, 0, 0))
|
let remote = git(cfg, dir, &["ls-remote", "--tags", "--refs", "origin", "v[0-9]*"]).await;
|
||||||
|
let names: Vec<String> = match remote {
|
||||||
|
Ok(out) => out.lines().filter_map(|l| l.split("refs/tags/").nth(1)).map(str::to_string).collect(),
|
||||||
|
Err(_) => {
|
||||||
|
let _ = git(cfg, dir, &["fetch", "--tags", "--force", "origin"]).await;
|
||||||
|
git(cfg, dir, &["tag", "-l", "v[0-9]*"]).await.unwrap_or_default().lines().map(str::to_string).collect()
|
||||||
|
}
|
||||||
|
};
|
||||||
|
names.iter().filter_map(|t| parse_version(t)).max().unwrap_or((0, 0, 0))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// `git pull --ff-only` of the default branch in the main checkout, so everything that was merged
|
/// `git pull --ff-only` of the default branch in the main checkout, so everything that was merged
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
* under "unreleased"; scripts/release.sh renames the key to the release version.
|
* under "unreleased"; scripts/release.sh renames the key to the release version.
|
||||||
*/
|
*/
|
||||||
export const WHATS_NEW: Record<string, { en: string[]; de: string[] }> = {
|
export const WHATS_NEW: Record<string, { en: string[]; de: string[] }> = {
|
||||||
|
"202611-00053": {
|
||||||
|
en: ["Factory: the current version is read from the tags on the forge"],
|
||||||
|
de: ["Factory: die aktuelle Version wird aus den Tags im Forge gelesen"],
|
||||||
|
},
|
||||||
|
"202611-00052": {
|
||||||
|
en: ["Factory: fixed versioning – deliverables raise the patch version, only the last one of a milestone raises the minor version"],
|
||||||
|
de: ["Factory: Versionierung korrigiert – Deliverables erhöhen die Patch-Version, nur das letzte eines Meilensteins die Minor-Version"],
|
||||||
|
},
|
||||||
"202611-00051": {
|
"202611-00051": {
|
||||||
en: ["Factory: close finished issues with a comment; the Done column moved to the right"],
|
en: ["Factory: close finished issues with a comment; the Done column moved to the right"],
|
||||||
de: ["Factory: fertige Issues mit Kommentar schließen; die Spalte Fertig steht jetzt ganz rechts"],
|
de: ["Factory: fertige Issues mit Kommentar schließen; die Spalte Fertig steht jetzt ganz rechts"],
|
||||||
|
|||||||
Reference in new issue
Block a user