You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/post-release-version-bump.yml
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@ on:
6
6
version:
7
7
description: 'Version number (e.g., 1.0.1)'
8
8
required: true
9
+
is_patch:
10
+
description: 'Is this a patch? (true or false)'
11
+
required: true
12
+
default: 'false'
9
13
10
14
env:
11
15
AWS_DEFAULT_REGION: us-east-1
@@ -109,6 +113,17 @@ jobs:
109
113
VERSION="${{ github.event.inputs.version }}"
110
114
npm install
111
115
sed -i "s|\(/aws-observability/adot-autoinstrumentation-node:\)v[0-9]\+\.[0-9]\+\.[0-9]\+|\1v${{github.event.inputs.version}}|g" .github/workflows/daily-scan.yml
116
+
117
+
# for patch releases, avoid merge conflict by manually resolving CHANGELOG with main
118
+
if [[ "${{ github.event.inputs.is_patch }}" == "true" ]]; then
119
+
# Copy the patch release entries
120
+
sed -n "/^## v${VERSION}/,/^## v[0-9]/p" CHANGELOG.md | sed '$d' > /tmp/patch_release_section.txt
121
+
git fetch origin main
122
+
git show origin/main:CHANGELOG.md > CHANGELOG.md
123
+
# Insert the patch release entries after Unreleased
Copy file name to clipboardExpand all lines: .github/workflows/pr-build.yml
+42Lines changed: 42 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,12 @@
1
1
name: JavaScript Instrumentation PR Build
2
2
on:
3
3
pull_request:
4
+
types:
5
+
- opened
6
+
- reopened
7
+
- synchronize
8
+
- labeled
9
+
- unlabeled
4
10
branches:
5
11
- main
6
12
- "release/v*"
@@ -10,6 +16,42 @@ permissions:
10
16
contents: read
11
17
12
18
jobs:
19
+
changelog-check:
20
+
runs-on: ubuntu-latest
21
+
steps:
22
+
- uses: actions/checkout@v4
23
+
with:
24
+
fetch-depth: 0
25
+
26
+
- name: Check CHANGELOG
27
+
run: |
28
+
# Check if PR is from workflows bot or dependabot
29
+
if [[ "${{ github.event.pull_request.user.login }}" == "aws-application-signals-bot" ]]; then
30
+
echo "Skipping check: PR from aws-application-signals-bot"
31
+
exit 0
32
+
fi
33
+
34
+
if [[ "${{ github.event.pull_request.user.login }}" == "dependabot[bot]" ]]; then
35
+
echo "Skipping check: PR from dependabot"
36
+
exit 0
37
+
fi
38
+
39
+
# Check for skip changelog label
40
+
if echo '${{ toJSON(github.event.pull_request.labels.*.name) }}' | jq -r '.[]' | grep -q "skip changelog"; then
41
+
echo "Skipping check: skip changelog label found"
42
+
exit 0
43
+
fi
44
+
45
+
# Fetch base branch and check for CHANGELOG modifications
46
+
git fetch origin ${{ github.base_ref }}
47
+
if git diff --name-only origin/${{ github.base_ref }}..HEAD | grep -q "CHANGELOG.md"; then
48
+
echo "CHANGELOG.md entry found - check passed"
49
+
exit 0
50
+
fi
51
+
52
+
echo "It looks like you didn't add an entry to CHANGELOG.md. If this change affects the SDK behavior, please update CHANGELOG.md and link this PR in your entry. If this PR does not need a CHANGELOG entry, you can add the 'Skip Changelog' label to this PR."
All notable changes to this project will be documented in this file.
4
+
5
+
> **Note:** This CHANGELOG was created starting after version 0.7.0. Earlier changes are not documented here.
6
+
7
+
For any change that affects end users of this package, please add an entry under the **Unreleased** section. Briefly summarize the change and provide the link to the PR. Example:
8
+
9
+
- add GenAI attribute support for Amazon Bedrock models
0 commit comments