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
28
+
echo "Skipping check: PR from aws-application-signals-bot"
29
+
exit 0
30
+
fi
31
+
32
+
if [[ "${{ github.event.pull_request.user.login }}" == "dependabot[bot]" ]]; then
33
+
echo "Skipping check: PR from dependabot"
34
+
exit 0
35
+
fi
36
+
37
+
# Check for skip changelog label
38
+
if echo '${{ toJSON(github.event.pull_request.labels.*.name) }}' | jq -r '.[]' | grep -q "skip changelog"; then
39
+
echo "Skipping check: skip changelog label found"
40
+
exit 0
41
+
fi
42
+
43
+
# Fetch base branch and check for CHANGELOG modifications
44
+
git fetch origin ${{ github.base_ref }}
45
+
if git diff --name-only origin/${{ github.base_ref }}..HEAD | grep -q "CHANGELOG.md"; then
46
+
echo "CHANGELOG.md entry found - check passed"
47
+
exit 0
48
+
fi
49
+
50
+
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