Skip to content

Commit 6ea8dc7

Browse files
clean up changelog and couple release script fixes
1 parent 4bc0092 commit 6ea8dc7

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Changelog
22

3-
## [0.6.1](https://github.com/delta-io/delta-kernel-rs/tree/0.6.1/) (2025-01-10)
3+
## [v0.6.1](https://github.com/delta-io/delta-kernel-rs/tree/v0.6.1/) (2025-01-10)
44

5-
[Full Changelog](https://github.com/delta-io/delta-kernel-rs/compare/v0.6.0...0.6.1)
5+
[Full Changelog](https://github.com/delta-io/delta-kernel-rs/compare/v0.6.0...v0.6.1)
66

77

88
### 🚀 Features / new APIs
@@ -17,12 +17,12 @@
1717
### ⚙️ Chores/CI
1818

1919
1. Expand the arrow version range to allow arrow v54 ([#616])
20+
2. Update to CodeCov @v5 ([#608])
2021

2122
### Other
2223

2324
1. Fix msrv check by pinning `home` dependency ([#605])
24-
2. Update to CodeCov @v5 ([#608])
25-
3. Add release script ([#636])
25+
2. Add release script ([#636])
2626

2727

2828
[#605]: https://github.com/delta-io/delta-kernel-rs/pull/605

cliff.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ header = """
66
"""
77
# Tera template
88
body = """
9-
## [{{ version }}](https://github.com/delta-io/delta-kernel-rs/tree/{{ version }}/) ({{ timestamp | date(format="%Y-%m-%d") }})
9+
## [v{{ version }}](https://github.com/delta-io/delta-kernel-rs/tree/v{{ version }}/) ({{ timestamp | date(format="%Y-%m-%d") }})
1010
11-
[Full Changelog](https://github.com/delta-io/delta-kernel-rs/compare/{{ previous.version }}...{{ version }})
11+
[Full Changelog](https://github.com/delta-io/delta-kernel-rs/compare/{{ previous.version }}...v{{ version }})
1212
1313
{% for group, commits in commits | group_by(attribute="group") %}
1414
### {{ group | striptags | trim | upper_first }}

release.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
###################################################################################################
44
# USAGE:
5-
# 1. on a release branch: ./release.sh <version>
5+
# 1. on a release branch: ./release.sh <version> (example: ./release.sh 0.1.0)
66
# 2. on main branch (after merging release branch): ./release.sh
77
###################################################################################################
88

@@ -155,6 +155,15 @@ publish() {
155155
fi
156156
}
157157

158+
159+
validate_version() {
160+
local version=$1
161+
# Check if version starts with a number
162+
if [[ ! $version =~ ^[0-9] ]]; then
163+
log_error "Version must start with a number (e.g., '0.1.1'). Got: '$version'"
164+
fi
165+
}
166+
158167
check_requirements
159168

160169
if is_main_branch; then
@@ -166,5 +175,6 @@ else
166175
if [[ $# -ne 1 ]]; then
167176
log_error "Version argument required when on release branch\nUsage: $0 <version>"
168177
fi
178+
validate_version "$1"
169179
handle_release_branch "$1"
170180
fi

0 commit comments

Comments
 (0)