Skip to content

Commit 9078b5a

Browse files
authored
fix changelog (open-telemetry#5247)
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
1 parent c2b11f6 commit 9078b5a

3 files changed

Lines changed: 24 additions & 6 deletions

File tree

.github/workflows/prepare-patch-release.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ jobs:
101101
run: .github/scripts/use-cla-approved-github-bot.sh
102102

103103
- name: Backport patch release changelog to main
104+
id: backport_pr
104105
env:
105106
GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }}
106107
run: |
@@ -112,11 +113,19 @@ jobs:
112113
git fetch origin $release_branch
113114
114115
# Copy the updated CHANGELOG.md from the release branch
115-
git checkout $release_branch -- CHANGELOG.md
116+
git checkout FETCH_HEAD -- CHANGELOG.md
116117
git commit -m "$message"
117118
118119
git push origin HEAD:$branch
119-
gh pr create --title "$message" \
120-
--body "$body" \
121-
--head $branch \
122-
--base main
120+
pr_url=$(gh pr create --title "$message" \
121+
--body "$body" \
122+
--head $branch \
123+
--base main)
124+
echo "pr_url=$pr_url" >> $GITHUB_OUTPUT
125+
126+
- name: Add Skip Changelog label to backport PR
127+
if: steps.backport_pr.outputs.pr_url != ''
128+
env:
129+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130+
run: |
131+
gh pr edit ${{ steps.backport_pr.outputs.pr_url }} --add-label "Skip Changelog"

.github/workflows/prepare-release-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,4 @@ jobs:
212212
env:
213213
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
214214
run: |
215-
gh pr edit ${{ steps.create_main_pr.outputs.pr_url }} --add-label "prepare-release"
215+
gh pr edit ${{ steps.create_main_pr.outputs.pr_url }} --add-label "prepare-release" --add-label "Skip Changelog"

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020

2121
<!-- changelog start -->
2222

23+
## Version 1.42.1/0.63b1 (2026-05-21)
24+
25+
### Fixed
26+
27+
- Preserve the random trace ID flag when creating child spans instead of always
28+
setting the random trace id bit depending on the available trace id
29+
generator.
30+
([#5241](https://github.com/open-telemetry/opentelemetry-python/pull/5241))
31+
2332
## Version 1.42.0/0.63b0 (2026-05-19)
2433

2534
### Added

0 commit comments

Comments
 (0)