Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/skills/changelog-generation/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ Auto-detect scope from the current working directory:

### Step 2 — Determine Version & Update Files

**Files to update (core):** `cli/azd/CHANGELOG.md`, `cli/version.txt`
**Files to update (core):** `cli/azd/CHANGELOG.md`, `cli/version.txt`, `cli/azd/pkg/azdext/version.go`
**Files to update (extension):** `<extension>/CHANGELOG.md`, `<extension>/version.txt`, `<extension>/extension.yaml`

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

- **Core**: derive version from the existing unreleased header (strip `-beta.*` and `(Unreleased)`), use today's date. Update `cli/version.txt` to the released version.
- **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.
- **Extension**: ask the user for the new version number via `ask_user`. Update both `version.txt` and `extension.yaml` — they must match exactly.

Present the version and date to the user for confirmation before writing any files.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
Files to update:
- `cli/azd/CHANGELOG.md` — add release entry
- `cli/version.txt` — set to released version
- `cli/azd/pkg/azdext/version.go` — update `Version` constant to match `cli/version.txt`
- `.vscode/cspell-github-user-aliases.txt` — if spell check additions needed

**Version derivation:**
1. Find the top-most section in `cli/azd/CHANGELOG.md` (e.g., `## X.Y.Z-beta.N (Unreleased)`).
2. Strip the `-beta.N` suffix and `(Unreleased)` marker.
3. Format as: `## X.Y.Z (YYYY-MM-DD)` using today's date.
4. Set `cli/version.txt` to `X.Y.Z`.
5. If no unreleased header is found in the changelog, ask the user for the release version number via `ask_user`.
5. Set the `Version` constant in `cli/azd/pkg/azdext/version.go` to `X.Y.Z`.
6. If no unreleased header is found in the changelog, ask the user for the release version number via `ask_user`.

**Do NOT** update any extension files.

Expand Down
Loading