Azure / Azure/azure-sdk-tools

For data-plane, `azsdk pkg update-version` fails to update version/date when CHANGELOG.md contains (Unreleased)

Open
#14,985 0 comments 0 reactions 0 assignees View on GitHub
needs-triage
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
144

Description

After [autorest.typescript#3880](https://github.com/Azure/autorest.typescript/pull/3880) merges, the TypeSpec emitter will scaffold a `CHANGELOG.md` for new packages with the following format:
```
# Release History

## 1.0.0-beta.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
```

uses `azsdk_package_update_version` to update version and date in an existing `CHANGELOG.md` from autorest. the tool internally updates the version and release date in `CHANGELOG.md` by matching a **YYYY-MM-DD** date format in the version heading. When the file contains (**Unreleased**), the match fails and neither the version nor the date is updated — **no error is thrown and no warning is surfaced**.

Affected scenario: Management-plane packages that are newly scaffolded after PR #3880 merges, where the emitter creates a `CHANGELOG.md` with (**Unreleased**), and `azsdk pkg update-version` is used to stamp in a version and date before publishing.

Contributor guide

Open the contributing guide

Research direction

Start with the implementation and tests for the `azsdk pkg update-version` command, then trace how it matches the version heading in `CHANGELOG.md`. Reproduce the issue using the `(Unreleased)` heading shown here and verify that the command updates both the package version and release date before publishing.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, release, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.