forked from rook/rook
Fail if a PR is submitted and has not run "make codegen" Signed-off-by: Sébastien Han <seb@redhat.com>
11 lines
221 B
Bash
Executable File
11 lines
221 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
for file in $(git status --porcelain); do
|
|
if [[ "$file" =~ "zz" ]]; then
|
|
echo "found codegen files!"
|
|
echo "please run 'make codegen' and update your PR"
|
|
exit 1
|
|
fi
|
|
done
|