diff --git a/githooks/commit-msg b/githooks/commit-msg index 146aed08dfb9..dfb1b02da454 100755 --- a/githooks/commit-msg +++ b/githooks/commit-msg @@ -52,7 +52,7 @@ IFS=' notes=($($grep -iE '^release note' "$1")) # Set this to 1 to require a release justification note. -require_justification=0 +require_justification=1 justification=($($grep -iE '^release justification: \S+' "$1")) IFS=$saveIFS diff --git a/githooks/prepare-commit-msg b/githooks/prepare-commit-msg index 1a24e426bd2a..cb69ded5ce23 100755 --- a/githooks/prepare-commit-msg +++ b/githooks/prepare-commit-msg @@ -2,7 +2,7 @@ # # Prepare the commit message by adding a release note. -require_justification=0 +require_justification=1 set -euo pipefail if [[ "${2-}" = "message" ]]; then