Skip to content

Commit 503bf38

Browse files
jack-bergtrask
andauthored
Prepare for 1.22.0-alpha release (#31)
* Prepare for 1.22.0-alpha release * Update CHANGELOG.md Co-authored-by: Trask Stalnaker <[email protected]> --------- Co-authored-by: Trask Stalnaker <[email protected]>
1 parent f128291 commit 503bf38

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash -e
2+
3+
version=$("$(dirname "$0")/get-version.sh")
4+
5+
if [[ $version =~ ([0-9]+)\.([0-9]+)\.0 ]]; then
6+
major="${BASH_REMATCH[1]}"
7+
minor="${BASH_REMATCH[2]}"
8+
else
9+
echo "unexpected version: $version"
10+
exit 1
11+
fi
12+
13+
if [[ $minor == 0 ]]; then
14+
prior_major=$((major - 1))
15+
prior_minor=$(sed -n "s/^## Version $prior_major\.\([0-9]\+\)\..*/\1/p" CHANGELOG.md | head -1)
16+
if [[ -z $prior_minor ]]; then
17+
# assuming this is the first release
18+
range=
19+
else
20+
range="v$prior_major.$prior_minor.0..HEAD"
21+
fi
22+
else
23+
range="v$major.$((minor - 1)).0..HEAD"
24+
fi
25+
26+
echo "## Unreleased"
27+
echo
28+
29+
git log --reverse \
30+
--perl-regexp \
31+
--author='^(?!renovate\[bot\] )' \
32+
--pretty=format:"* %s" \
33+
"$range" \
34+
| sed -E 's,\(#([0-9]+)\)$,\n ([#\1](https://github.com/open-telemetry/semantic-conventions-java/pull/\1)),'

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
* Update to semconv 1.22
6+
([#29](https://github.com/open-telemetry/semantic-conventions-java/pull/29))
7+
* Compile only opentelemetry-api dependency
8+
([#30](https://github.com/open-telemetry/semantic-conventions-java/pull/30))
9+
510
## Version 1.21.0 (2023-09-01)
611

712
* Move to `io.opentelemetry.semnconv.*` package

0 commit comments

Comments
 (0)