Skip to content

Commit 34b9006

Browse files
fix: update version.txt and version.go to 1.24.2
The changelog skill missed updating these files because it derived the version from the unreleased header (1.25.0-beta.1) instead of using the version specified in the issue (1.24.2). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5875472 commit 34b9006

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/skills/changelog-generation/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Auto-detect scope from the current working directory:
5050

5151
For version derivation rules, see [references/scope-rules.md](references/scope-rules.md) § Version Files.
5252

53-
- **Core**: derive version from the existing unreleased header (strip `-beta.*` and `(Unreleased)`), use today's date. Update `cli/version.txt` and `cli/azd/pkg/azdext/version.go` (`Version` constant) to the released version.
53+
- **Core**: use the version specified in the triggering issue or user request if explicit (e.g., "Create changelog for 1.24.2"); otherwise derive from the existing unreleased header (strip `-beta.*` and `(Unreleased)`), use today's date. Update `cli/version.txt` and `cli/azd/pkg/azdext/version.go` (`Version` constant) to the released version.
5454
- **Extension**: ask the user for the new version number via `ask_user`. Update both `version.txt` and `extension.yaml` — they must match exactly.
5555

5656
Present the version and date to the user for confirmation before writing any files.

.github/skills/changelog-generation/references/scope-rules.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ Files to update:
1111
- `.vscode/cspell-github-user-aliases.txt` — if spell check additions needed
1212

1313
**Version derivation:**
14-
1. Find the top-most section in `cli/azd/CHANGELOG.md` (e.g., `## X.Y.Z-beta.N (Unreleased)`).
15-
2. Strip the `-beta.N` suffix and `(Unreleased)` marker.
16-
3. Format as: `## X.Y.Z (YYYY-MM-DD)` using **today's date** (the date the changelog is being authored/committed, not a future planned ship date).
17-
4. Set `cli/version.txt` to `X.Y.Z`.
18-
5. Set the `Version` constant in `cli/azd/pkg/azdext/version.go` to `X.Y.Z`.
19-
6. If no unreleased header is found in the changelog, ask the user for the release version number via `ask_user`.
14+
1. Check if the triggering issue or user request specifies an explicit version (e.g., "Create changelog for 1.24.2"). If yes, use that version — skip to step 4.
15+
2. Find the top-most section in `cli/azd/CHANGELOG.md` (e.g., `## X.Y.Z-beta.N (Unreleased)`).
16+
3. Strip the `-beta.N` suffix and `(Unreleased)` marker.
17+
4. Format as: `## X.Y.Z (YYYY-MM-DD)` using **today's date** (the date the changelog is being authored/committed, not a future planned ship date).
18+
5. Set `cli/version.txt` to `X.Y.Z`.
19+
6. Set the `Version` constant in `cli/azd/pkg/azdext/version.go` to `X.Y.Z`.
20+
7. If no version can be determined (no explicit version requested and no unreleased header found), ask the user for the release version number via `ask_user`.
2021

2122
**Unreleased placeholder after release:**
2223

cli/azd/pkg/azdext/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ package azdext
66
// Version is the semantic version of the azdext SDK package.
77
// This value mirrors the CLI version in cli/version.txt and is
88
// automatically updated by eng/scripts/Update-CliVersion.ps1.
9-
const Version = "1.25.0-beta.1"
9+
const Version = "1.24.2"

cli/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.25.0-beta.1
1+
1.24.2

0 commit comments

Comments
 (0)