summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-04-13 17:36:30 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-04-27 10:04:55 -0400
commitc7ee0be6bc1573b024f425dcf5fe6d91389e8185 (patch)
treebf4650f870978efe5f33cc32b34c4741c7151648 /.gitlab
parent55c84123fd9af420de1600309a6fbe73f1975094 (diff)
downloadhaskell-c7ee0be6bc1573b024f425dcf5fe6d91389e8185.tar.gz
ci: Add linting job which checks authors are not GHC CI
Diffstat (limited to '.gitlab')
-rwxr-xr-x.gitlab/ci.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitlab/ci.sh b/.gitlab/ci.sh
index 917e9d5e4d..f04b3861e0 100755
--- a/.gitlab/ci.sh
+++ b/.gitlab/ci.sh
@@ -675,6 +675,18 @@ function shell() {
run "$cmd"
}
+function lint_author(){
+ base=$1
+ head=$2
+ for email in $(git log --format='%ae' $base..$head); do
+ if [ $email == "ghc-ci@gitlab-haskell.org" ];
+ then
+ fail "Commit has GHC CI author, please amend the author information."
+ fi
+ done
+}
+
+
setup_locale
# Platform-specific environment initialization
@@ -772,6 +784,7 @@ case $1 in
run_hadrian) shift; run_hadrian "$@" ;;
perf_test) run_perf_test ;;
cabal_test) cabal_test ;;
+ lint_author) shift; lint_author "$@" ;;
clean) clean ;;
save_cache) save_cache ;;
shell) shift; shell "$@" ;;