Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for 1.22.0-alpha release #31

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
34 changes: 34 additions & 0 deletions .github/scripts/draft-change-log-entries.sh
Original file line number Diff line number Diff line change
@@ -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)),'
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

## Unreleased

* Fix maven badge
([#21](https://github.com/open-telemetry/semantic-conventions-java/pull/21))
* Fix readme release reference to include -alpha
([#23](https://github.com/open-telemetry/semantic-conventions-java/pull/23))
* Upgrade to OTEL API 1.31.x
([#26](https://github.com/open-telemetry/semantic-conventions-java/pull/26))
jack-berg marked this conversation as resolved.
Show resolved Hide resolved
* 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
Expand Down