Skip to content

Commit 8838749

Browse files
committed
update script
1 parent 3ad5086 commit 8838749

1 file changed

Lines changed: 28 additions & 14 deletions

File tree

.github/scripts/draft-change-log-entries.sh

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,37 @@ else
2323
range="v$major.$((minor - 1)).0..HEAD"
2424
fi
2525

26-
echo "# Changelog"
27-
echo
28-
echo "## Unreleased"
29-
echo
26+
sdk_version=$(grep -Po "val otelSdkVersion = \"\K[0-9]+\.[0-9]+\.[0-9]+" dependencyManagement/build.gradle.kts)
27+
28+
cat << EOF
29+
# Changelog
30+
31+
## Unreleased
32+
33+
This release targets the OpenTelemetry SDK $sdk_version.
34+
35+
Note that many artifacts have the \`-alpha\` suffix attached to their version
36+
number, reflecting that they are still alpha quality and will continue to have
37+
breaking changes.
38+
Please see the [VERSIONING.md](VERSIONING.md#opentelemetry-java-instrumentation-versioning)
39+
for more details.
40+
41+
EOF
3042

3143
"$(dirname "$0")/extract-labeled-prs.sh" "$range"
3244

33-
echo "### 🌟 New javaagent instrumentation"
34-
echo
35-
echo "### 🌟 New library instrumentation"
36-
echo
37-
echo "### 📈 Enhancements"
38-
echo
39-
echo "### 🛠️ Bug fixes"
40-
echo
41-
echo "### 🧰 Tooling"
42-
echo
45+
cat << 'EOF'
46+
### 🌟 New javaagent instrumentation
47+
48+
### 🌟 New library instrumentation
49+
50+
### 📈 Enhancements
51+
52+
### 🛠️ Bug fixes
53+
54+
### 🧰 Tooling
55+
56+
EOF
4357

4458
# Group commits by file type and @Deprecated detection
4559
declare -A src_main_commits

0 commit comments

Comments
 (0)