gitlint enforces 72 char max on commit subject line. Currently pi-review constructs:
$NAMESPACE: $TITLE
Which can exceed 72 chars for long task titles.
Truncate the subject line to 72 chars:
SUBJECT="$COMMIT_PREFIX: $TITLE"
if [ ${#SUBJECT} -gt 72 ]; then
SUBJECT="${SUBJECT:0:69}..."
fi
git commit -m "$SUBJECT" -m "Automated via pi-review." --trailer "Task-Id: $TASK_ID"
This keeps the full title visible in the body via Task-Id lookup, but satisfies gitlint.