Skip to content

Commit

Permalink
clean up changelog and couple release script fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zachschuermann committed Jan 10, 2025
1 parent 4bc0092 commit 6ea8dc7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Changelog

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

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


### 🚀 Features / new APIs
Expand All @@ -17,12 +17,12 @@
### ⚙️ Chores/CI

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

### Other

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


[#605]: https://github.com/delta-io/delta-kernel-rs/pull/605
Expand Down
4 changes: 2 additions & 2 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ header = """
"""
# Tera template
body = """
## [{{ version }}](https://github.com/delta-io/delta-kernel-rs/tree/{{ version }}/) ({{ timestamp | date(format="%Y-%m-%d") }})
## [v{{ version }}](https://github.com/delta-io/delta-kernel-rs/tree/v{{ version }}/) ({{ timestamp | date(format="%Y-%m-%d") }})
[Full Changelog](https://github.com/delta-io/delta-kernel-rs/compare/{{ previous.version }}...{{ version }})
[Full Changelog](https://github.com/delta-io/delta-kernel-rs/compare/{{ previous.version }}...v{{ version }})
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
Expand Down
12 changes: 11 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

###################################################################################################
# USAGE:
# 1. on a release branch: ./release.sh <version>
# 1. on a release branch: ./release.sh <version> (example: ./release.sh 0.1.0)
# 2. on main branch (after merging release branch): ./release.sh
###################################################################################################

Expand Down Expand Up @@ -155,6 +155,15 @@ publish() {
fi
}


validate_version() {
local version=$1
# Check if version starts with a number
if [[ ! $version =~ ^[0-9] ]]; then
log_error "Version must start with a number (e.g., '0.1.1'). Got: '$version'"
fi
}

check_requirements

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

0 comments on commit 6ea8dc7

Please sign in to comment.