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/pr-build.yml
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,42 @@ permissions:
10
10
contents: read
11
11
12
12
jobs:
13
+
changelog-check:
14
+
runs-on: ubuntu-latest
15
+
steps:
16
+
- uses: actions/checkout@v4
17
+
with:
18
+
fetch-depth: 0
19
+
20
+
- name: Check CHANGELOG
21
+
run: |
22
+
# Check if PR is from workflows bot or dependabot
23
+
if [[ "${{ github.event.pull_request.user.login }}" == "aws-application-signals-bot" ]]; then
24
+
echo "Skipping check: PR from aws-application-signals-bot"
25
+
exit 0
26
+
fi
27
+
28
+
if [[ "${{ github.event.pull_request.user.login }}" == "dependabot[bot]" ]]; then
29
+
echo "Skipping check: PR from dependabot"
30
+
exit 0
31
+
fi
32
+
33
+
# Check for skip changelog label
34
+
if echo '${{ toJSON(github.event.pull_request.labels.*.name) }}' | jq -r '.[]' | grep -q "skip changelog"; then
35
+
echo "Skipping check: skip changelog label found"
36
+
exit 0
37
+
fi
38
+
39
+
# Fetch base branch and check for CHANGELOG modifications
40
+
git fetch origin ${{ github.base_ref }}
41
+
if git diff --name-only origin/${{ github.base_ref }}..HEAD | grep -q "CHANGELOG.md"; then
42
+
echo "CHANGELOG.md entry found - check passed"
43
+
exit 0
44
+
fi
45
+
46
+
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 from version 0.12.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
+
- add GenAI attribute support for Amazon Bedrock models
0 commit comments