Skip to content

Commit b4280c6

Browse files
authored
ci: Validate ascii only in PR body via CI job (#2405)
## What changes are proposed in this pull request? Ensures PR body has only ascii chars. Let's try and have no more pancakes. ## How was this change tested? Observing the job Failing run with pancakes: https://github.com/delta-io/delta-kernel-rs/actions/runs/24533652511/job/71723095594?pr=2405 Current is green as it's all ascii
1 parent e75e036 commit b4280c6

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Validate PR Body
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited]
6+
merge_group:
7+
8+
jobs:
9+
validate-body:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Validate PR Body
13+
shell: bash
14+
env:
15+
PR_BODY: ${{ github.event.pull_request.body }}
16+
run: |
17+
if LC_ALL=C grep -q '[^[:print:][:space:]]' <<< "$PR_BODY"; then
18+
echo "PR body contains non-ascii characters. Please remove them."
19+
exit 1
20+
else
21+
echo "PR body contains ascii characters only"
22+
fi
23+

0 commit comments

Comments
 (0)