From 503bf3839fe0dd911f6fb5045457ee3e6513f4bb Mon Sep 17 00:00:00 2001 From: jack-berg <34418638+jack-berg@users.noreply.github.com> Date: Thu, 26 Oct 2023 11:36:56 -0500 Subject: [PATCH] Prepare for 1.22.0-alpha release (#31) * Prepare for 1.22.0-alpha release * Update CHANGELOG.md Co-authored-by: Trask Stalnaker --------- Co-authored-by: Trask Stalnaker --- .github/scripts/draft-change-log-entries.sh | 34 +++++++++++++++++++++ CHANGELOG.md | 5 +++ 2 files changed, 39 insertions(+) create mode 100755 .github/scripts/draft-change-log-entries.sh diff --git a/.github/scripts/draft-change-log-entries.sh b/.github/scripts/draft-change-log-entries.sh new file mode 100755 index 0000000..0fe9034 --- /dev/null +++ b/.github/scripts/draft-change-log-entries.sh @@ -0,0 +1,34 @@ +#!/bin/bash -e + +version=$("$(dirname "$0")/get-version.sh") + +if [[ $version =~ ([0-9]+)\.([0-9]+)\.0 ]]; then + major="${BASH_REMATCH[1]}" + minor="${BASH_REMATCH[2]}" +else + echo "unexpected version: $version" + exit 1 +fi + +if [[ $minor == 0 ]]; then + prior_major=$((major - 1)) + prior_minor=$(sed -n "s/^## Version $prior_major\.\([0-9]\+\)\..*/\1/p" CHANGELOG.md | head -1) + if [[ -z $prior_minor ]]; then + # assuming this is the first release + range= + else + range="v$prior_major.$prior_minor.0..HEAD" + fi +else + range="v$major.$((minor - 1)).0..HEAD" +fi + +echo "## Unreleased" +echo + +git log --reverse \ + --perl-regexp \ + --author='^(?!renovate\[bot\] )' \ + --pretty=format:"* %s" \ + "$range" \ + | sed -E 's,\(#([0-9]+)\)$,\n ([#\1](https://github.com/open-telemetry/semantic-conventions-java/pull/\1)),' diff --git a/CHANGELOG.md b/CHANGELOG.md index 827b044..77efe67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +* Update to semconv 1.22 + ([#29](https://github.com/open-telemetry/semantic-conventions-java/pull/29)) +* Compile only opentelemetry-api dependency + ([#30](https://github.com/open-telemetry/semantic-conventions-java/pull/30)) + ## Version 1.21.0 (2023-09-01) * Move to `io.opentelemetry.semnconv.*` package