bglug.it/.gitea/workflows/markdownlint_pr.sh
paspo 0af9dc613d
All checks were successful
Check for disallowed chars / unicode-check (pull_request) Successful in 3m16s
test 22
2024-08-09 22:25:51 +02:00

15 lines
403 B
Bash

#!/bin/bash
echo "Initial commit: $1"
echo "Final commit: $2"
echo ""
# recupera ogni file modificato in questa PR (tra le 2 commit)
# considera solo i file che terminano con .md
# ogni file viene controllato con markdownlint, con la config comune
while read -r LINE; do
echo ""
markdownlint --config .markdownlint.yaml "$LINE"
done < <(git diff --name-only "$1" "$2" content/ | grep \.md$)