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
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."
0 commit comments