-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare for 1.22.0-alpha release (#31)
* Prepare for 1.22.0-alpha release * Update CHANGELOG.md Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com> --------- Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)),' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters