mirror of
https://github.com/microsoft/graphrag.git
synced 2025-07-03 07:04:19 +00:00
11 lines
367 B
Bash
Executable File
11 lines
367 B
Bash
Executable File
#!/bin/sh
|
|
changes=$(git diff --name-only origin/main)
|
|
has_change_doc=$(echo $changes | grep .semversioner/next-release)
|
|
has_impacting_changes=$(echo $changes | grep graphrag)
|
|
|
|
if [ "$has_impacting_changes" ] && [ -z "$has_change_doc" ]; then
|
|
echo "Check failed. Run 'poetry run semversioner add-change' to update the next release version"
|
|
exit 1
|
|
fi
|
|
echo "OK"
|