-
Notifications
You must be signed in to change notification settings - Fork 855
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
…y-java into exp-histogram-benchmark
- Loading branch information
Showing
222 changed files
with
3,545 additions
and
1,754 deletions.
There are no files selected for viewing
File renamed without changes.
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='^(?!dependabot\[bot\] )' \ | ||
--pretty=format:"- %s" \ | ||
"$range" \ | ||
| sed -E 's,\(#([0-9]+)\)$,\n ([#\1](https://github.com/open-telemetry/opentelemetry-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
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,44 @@ | ||
#!/bin/bash -e | ||
|
||
# this script merges release notes for $VERSION into CHANGELOG.md | ||
# the release date for $VERSION should be available in $RELEASE_DATE | ||
# and the release notes for $VERSION should be available in /tmp/changelog-section.md | ||
|
||
if [[ $VERSION =~ ^[0-9]+\.[0-9]+\.0 ]]; then | ||
# this was not a patch release, so the version exists already in the CHANGELOG.md | ||
|
||
# update the release date | ||
sed -Ei "s/## Version $VERSION .*/## Version $VERSION ($RELEASE_DATE)/" CHANGELOG.md | ||
|
||
# the entries are copied over from the release branch to support workflows | ||
# where change log entries may be updated after preparing the release branch | ||
|
||
{ | ||
# copy the portion above the release, up to and including the heading | ||
sed -n "0,/^## Version $VERSION /p" CHANGELOG.md | ||
# copy the release notes for $VERSION | ||
cat /tmp/changelog-section.md | ||
# copy the portion below the release | ||
sed -n "0,/^## Version $VERSION /d;0,/^## Version /{/^## Version/!d};p" CHANGELOG.md | ||
} > /tmp/CHANGELOG.md | ||
|
||
# update the real CHANGELOG.md | ||
cp /tmp/CHANGELOG.md CHANGELOG.md | ||
|
||
else | ||
# this was a patch release, so the version does not exist already in the CHANGELOG.md | ||
|
||
{ | ||
# copy the portion above the top-most release, not including the heading | ||
sed -n "0,/^## Version /{ /^## Version /!p }" CHANGELOG.md | ||
# add the heading | ||
echo "## Version $VERSION ($RELEASE_DATE)" | ||
# copy the release notes for $VERSION | ||
cat /tmp/changelog-section.md | ||
# copy the portion starting from the top-most release | ||
sed -n "/^## Version /,\$p" CHANGELOG.md | ||
} > /tmp/CHANGELOG.md | ||
|
||
# update the real CHANGELOG.md | ||
cp /tmp/CHANGELOG.md CHANGELOG.md | ||
fi |
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
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
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
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
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
Oops, something went wrong.