Skip to content

Commit c525938

Browse files
seto77claude
andcommitted
Anchor the release-notes extraction on the version number, and keep the keyword out of the comment above History
The regex took the first 'ver' in Version.cs, so the warning comment added on 2026-08-05 (which itself contained the word) became the v.4.947 release notes. The notes were corrected by hand; this prevents a repeat. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 9153ef2 commit c525938

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,12 @@ jobs:
133133
# }
134134
135135
# History の先頭行をリリースノートに使う (release job が notes を組む)
136-
$historyLine = ([regex]::Match($content, 'ver[^\r\n"]+').Value).Trim()
136+
# 260820Cl 変更: 旧 'ver[^\r\n"]+' はファイル中で最初に現れる "ver" を拾うため、History より上のコメントに
137+
# その 3 文字が入った途端にコメント文がリリースノートになった (v.4.947 で実際に発生し、手で直した)。
138+
# 版番の数字まで含めて History の行頭 (ver4.947 (2026/08/20) …) に固定する。
139+
# 旧: $historyLine = ([regex]::Match($content, 'ver[^\r\n"]+').Value).Trim()
140+
$historyLine = ([regex]::Match($content, 'ver\d+\.\d+ ?\([^\r\n"]+').Value).Trim()
141+
if (-not $historyLine) { throw "Could not extract the History line from Version.cs." }
137142
138143
# AssemblyVersion / FileVersion 用のタイムスタンプ (yyyy.M.d.HHmm UTC)
139144
# 260613Cl ビルド時刻 → release commit (GITHUB_SHA) の commit 時刻に変更 (決定論化、Phase C)。

ReciPro/Version.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ internal static class Version
55
public const string Software = "ReciPro";
66
public const string Author = "Y. Seto && M. Ohtsuka";
77

8-
//260805Cl 表記統一: 版番と日付括弧の間にスペースを1つ入れる。⚠この行より上の行(このコメント含む)に半角スペース直後の『ver』を書かない (CI と旧版の更新チェックが History 先頭行より先に拾う)
8+
//260805Cl 表記統一: 版番と日付括弧の間にスペースを1つ入れる。⚠この行より上の行(このコメント含む)に版番キーワード (v-e-r の 3 文字) を書かない (CI と旧版の更新チェックが History 先頭行より先に拾う。260820Cl: このコメント自身がそれを含んでいて v.4.947 のリリースノートがコメント文になった。CI 側は版番の数字まで見るよう修正済み)
99
public const string History =
1010
"History" +
1111
"\r\n ver4.947 (2026/08/20) Added an ALCHEMI simulator (preview): site-resolved ionization rocking curves along a systematic row by the Bloch-wave method, with angular-spread convolution, provenance-tagged CSV export and a manual page in 11 languages. Added dynamical Kikuchi bands to the diffraction simulator, Temari scattering factors and an integral absorptive factor to Beam Interaction, saving of EBSD patterns and a CITATION.cff, and fixed the R(%) round-trip in Spot ID." + // 260820Cl 追加

0 commit comments

Comments
 (0)