ci(gitflow): enforce branch and PR governance checks

This commit is contained in:
2026-02-11 12:19:39 +01:00
parent 969e88670f
commit 21cc55a1b9
9 changed files with 204 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#!/usr/bin/env sh
set -eu
body="${1:-}"
if [ -z "$body" ]; then
echo "PR body is empty."
exit 1
fi
if printf "%s" "$body" | grep -Eq 'TODO|todo|\[P[1-3]\]'; then
echo "PR body includes TODO reference."
exit 0
fi
echo "PR body must reference the related TODO item."
exit 1